X-Debbugs-CC: [email protected] Hi all,
currently, \LaTeX3 is fontified like this:
i.e., the 3 after the macro kills fontification of the macro \LaTeX. It should actually look like this:
This can be achieved with this change: --8<---------------cut here---------------start------------->8--- diff --git a/font-latex.el b/font-latex.el index ffba35cf..054e134c 100644 --- a/font-latex.el +++ b/font-latex.el @@ -1284,7 +1284,9 @@ have changed." (defvar font-latex-syntax-alist ;; Use word syntax for @ because we use \> for matching macros and ;; we don't want \foo@bar to be found if we search for \foo. - '((?\( . ".") (?\) . ".") (?@ . "w")) + '((?\( . ".") (?\) . ".") (?@ . "w") + (?0 . ".") (?1 . ".") (?2 . ".") (?3 . ".") (?4 . ".") + (?5 . ".") (?6 . ".") (?7 . ".") (?8 . ".") (?9 . ".")) "List of specifiers for the syntax alist of `font-lock-defaults'.") (defun font-latex-add-to-syntax-alist (list) --8<---------------cut here---------------end--------------->8--- The patch changes the syntax of all numbers in `font-latex-syntax-alist' to Punctuation so they are not matched by \>. The tests we have pass after this change. Any comments? Best, Arash
_______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
