Ralf Angeli <[EMAIL PROTECTED]> writes:
> Now why is "\(P=\Sexpr{b$p.value}\)" working? The \(...\) pair is not
> fontified syntactically but by means of keywords. And fontification
> of keywords happens after the syntactic pass. That means syntactic
> fontification can take care of the \Sexpr macro and mark it as
> verbatim (disregarding/skipping the $ character). After that keywords
> fontification will mark the \(...\) pair as math.
>
> A remedy for the problem with $...$ could be to fontify this by
> means of keyword fontification as well. But I am afraid that this
> will slow down font locking dramatically.
Is there some way of benchmarking font locking? If there is, then
M-: (query-replace "$" '("\(" "\)")) RET
on a text with many $ signs should result in a text with many \(/\)
sequences. That should help in benchmarking this kind of font locking
without actually implementing it for $.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex