[TxMt] Python bundle syntax highlighting bug

Anand Patil anand.prabhakar.patil at gmail.com
Sun Aug 12 04:04:58 UTC 2007


Hi all,

In the following, everything after the \in is highlighted grey as if it were
a comment.

Thanks for all the good work!

Anand Patil



def half_normal_like(x, tau):
    r"""
    half_normal_like(x, tau)

    Half-normal log-likelihood, a normal distribution with mean 0 and
limited
    to the domain :math:`x \in [0, \Infty)`.

    .. math::
        f(x \mid \tau) = \sqrt{\frac{2\tau}{\pi}}\exp \left\{ {\frac{-x^2
\tau}{2}}\right\}

    :Parameters:
      x : float
        :math:`x \ge 0`
      tau : float
        :math:`\tau > 0`

    """
    # try:
    #     constrain(tau, lower=0)
    #     constrain(x, lower=0, allow_equal=True)
    # except ZeroProbability:
    #     return -Inf
    return flib.hnormal(x, tau)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070811/2faf6ae2/attachment.html>


More information about the textmate mailing list