Support comments in Pandoc templates in Emacs pandoc-template-mode.

This commit is contained in:
Vaclav Haisman 2017-10-22 01:16:03 +02:00
parent 25590b1812
commit 733ccbafc6

View file

@ -27,7 +27,9 @@
;;; Code:
(defvar pandoc-template-font-lock-keywords
'(("\\(\\$\\)\\(if\\|for\\)(\\([^)]+\\))\\(\\$\\)"
'(("\\(\\$--.*\\)$"
(1 font-lock-comment-face))
("\\(\\$\\)\\(if\\|for\\)(\\([^)]+\\))\\(\\$\\)"
(1 font-lock-preprocessor-face)
(2 font-lock-keyword-face)
(3 font-lock-variable-name-face)