emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tex-mode.el] Subscript in math not fully matched


From: Stefan Monnier
Subject: Re: [tex-mode.el] Subscript in math not fully matched
Date: Mon, 17 Apr 2006 08:10:17 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Matching multiple characters of a complemented character alternative
> is really more efficient than a call to stuff like `scan-lists'?  Okay
> there is some additional code involved as well, but anyway.

Maybe you're right.

>       * textmodes/tex-mode.el (tex-font-lock-match-suscript): New
>       function.
>       (tex-font-lock-keywords-3): Use it.

Thanks, installed.

> +\\\\\\(address@hidden|[^ \t\n]\\)\\|{[^{]*}\\|\\({\\)\\)" limit t)
                                       ^^^
I've just fixed it by adding \ to the exceptions so we don't match {foo\}


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]