branch: externals/auctex
commit ccfd3d91a57102b03d488828ba93ec7494daea26
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Restore syntax fontify in Texinfo mode
* tex-info.el (TeX-texinfo-mode): Set `syntax-propertize-function',
mimicking texinfo.el. Now comments in Texinfo mode buffer are
displayed with comment face again.
---
tex-info.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tex-info.el b/tex-info.el
index f7da017..4f8165d 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -664,6 +664,8 @@ value of `Texinfo-mode-hook'."
(set (make-local-variable 'font-lock-defaults)
'(texinfo-font-lock-keywords nil nil nil backward-paragraph))
+ (set (make-local-variable 'syntax-propertize-function)
+ texinfo-syntax-propertize-function)
;; Outline settings.
(set (make-local-variable 'outline-regexp)