branch: externals/auctex
commit ccfd3d91a57102b03d488828ba93ec7494daea26
Author: Ikumi Keita <ik...@ikumi.que.jp>
Commit: Ikumi Keita <ik...@ikumi.que.jp>

    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)

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to