GNU bug report logs -
#35140
12.1; Scan errors in doctex mode with ^^A-comments after braces
Previous Next
Reported by: Markus Kohm <komascript <at> gmx.info>
Date: Thu, 4 Apr 2019 12:38:02 UTC
Severity: normal
Found in version 12.1
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 35140 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> I'm not sufficiently informed about DocTeX to know what's the right
> thing to do here. Changing the code so it only changes the face but
> without messing with syntax tables would definitely be simpler.
Thanks for your comment. I'm not sure if you want to change this in
tex-mode.el as well, but the current code of
`doctex-syntax-propertize-rules' should be changed like this:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index ab94036d01..d43eb5f4cc 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -3019,7 +3019,7 @@ doctex-font-lock-syntactic-face-function
(syntax-propertize-precompile-rules
latex-syntax-propertize-rules
;; For DocTeX comment-in-doc.
- ("\\(\\^\\)\\^A" (1 (doctex-font-lock-^^A))))))
+ ("\\(\\^\\)\\^[AX]" (1 (doctex-font-lock-^^A))))))
(defvar doctex-font-lock-keywords
(append tex-font-lock-keywords
--8<---------------cut here---------------end--------------->8---
^^X is also a comment starter beginning with doc.sty v3 (which will be
part of next LaTeX release).
Best, Arash
This bug report was last modified 3 years and 138 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.