Merge pull request #3987 from wilx/master
Support comments in Pandoc templates in Emacs pandoc-template-mode.
commit204776c0c4d3cfa273985564b3f1ff5fb6485628
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 22 Oct 2017, 00:24 (9 years ago)
parent25590b1733ccba
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)