Support comments in Pandoc templates in Emacs pandoc-template-mode.
commit733ccbafc6be54525ead7ed680d887c9741fb1a1
authorVaclav Haisman <vhaisman@gmail.com>
dateSun 22 Oct 2017, 01:16 (9 years ago)
parent25590b1
tools/pandoc-template-mode.el+3−1
@@ -27,7 +27,9 @@
2727 ;;; Code:
2828
2929(defvar pandoc-template-font-lock-keywords
30− '(("\\(\\$\\)\\(if\\|for\\)(\\([^)]+\\))\\(\\$\\)"
30+ '(("\\(\\$--.*\\)$"
31+ (1 font-lock-comment-face))
32+ ("\\(\\$\\)\\(if\\|for\\)(\\([^)]+\\))\\(\\$\\)"
3133 (1 font-lock-preprocessor-face)
3234 (2 font-lock-keyword-face)
3335 (3 font-lock-variable-name-face)