diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-22 00:24:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 00:24:11 -0400 |
commit | 204776c0c4d3cfa273985564b3f1ff5fb6485628 (patch) | |
tree | 90ff15cad37e6ed6bcd7694d9100fd8e0aa4fe7c | |
parent | 25590b18121bf70340f77bb904958fa12bbba677 (diff) | |
parent | 733ccbafc6be54525ead7ed680d887c9741fb1a1 (diff) | |
download | pandoc-204776c0c4d3cfa273985564b3f1ff5fb6485628.tar.gz |
Merge pull request #3987 from wilx/master
Support comments in Pandoc templates in Emacs pandoc-template-mode.
-rw-r--r-- | tools/pandoc-template-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pandoc-template-mode.el b/tools/pandoc-template-mode.el index 7a6346458..c34a8dbfd 100644 --- a/tools/pandoc-template-mode.el +++ b/tools/pandoc-template-mode.el @@ -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) |