aboutsummaryrefslogtreecommitdiff
path: root/tools/pandoc-template-mode.el
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-02 23:03:30 -0400
committerGitHub <noreply@github.com>2017-11-02 23:03:30 -0400
commit22389fdda5d2b32267a376ef64bc35f965ec9d81 (patch)
tree3df0eebbf53e475125d5743f5ee331246c44ce2a /tools/pandoc-template-mode.el
parent5dfe131ee07065dc7b68912d9a068508e29e18a4 (diff)
parent1089fab0835aa12b91a924913b00039e42ff7891 (diff)
downloadpandoc-22389fdda5d2b32267a376ef64bc35f965ec9d81.tar.gz
Merge pull request #4032 from wilx/master
pandoc-template-mode: Comments auto-fill and HTML attributes highlighting fixes.
Diffstat (limited to 'tools/pandoc-template-mode.el')
-rw-r--r--tools/pandoc-template-mode.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/pandoc-template-mode.el b/tools/pandoc-template-mode.el
index c34a8dbfd..c0f1c6e39 100644
--- a/tools/pandoc-template-mode.el
+++ b/tools/pandoc-template-mode.el
@@ -52,9 +52,13 @@
;;;###autoload
(define-derived-mode pandoc-template-mode fundamental-mode "Pandoc-Template"
"A major mode for editing Pandoc-Template files."
- :syntax-table nil
+ :syntax-table text-mode-syntax-table
(setq-local font-lock-defaults
- '(pandoc-template-font-lock-keywords)))
+ '(pandoc-template-font-lock-keywords))
+ (setq-local comment-start "$--")
+ (setq-local comment-start-skip "\\$--[ \t]*")
+ (setq-local comment-end "")
+ (setq-local comment-end-skip "[ \t]*$"))
(provide 'pandoc-template-mode)
;;; pandoc-template.el ends here