git.iko.soy/typeable/pandoc
on master help sign in
pandoc-template-mode.el: Improve.

Avoid highlighting of "strings" by deriving from `text-mode-syntax-table`. This fixes missing highlighting in default.html5 tag attributes. Define comment starting and ending sequences to allow use of M-q (auto-fill) on comments.

commit916a80ea7685262bc4fda2565deacdcb1c6e623c authorVaclav Haisman <vhaisman@gmail.com> dateFri 3 Nov 2017, 01:16 (9 years ago) parent3eaa6ff
1 file changed+6−2
tools/pandoc-template-mode.el+6−2
tools/pandoc-template-mode.el+6−2
@@ -52,9 +52,13 @@
5252 ;;;###autoload
5353(define-derived-mode pandoc-template-mode fundamental-mode "Pandoc-Template"
5454 "A major mode for editing Pandoc-Template files."
55− :syntax-table nil
55+ :syntax-table text-mode-syntax-table
5656 (setq-local font-lock-defaults
57− '(pandoc-template-font-lock-keywords)))
57+ '(pandoc-template-font-lock-keywords))
58+ (setq-local comment-start "$--")
59+ (setq-local comment-start-skip "\\$--[ \t]*")
60+ (setq-local comment-end "")
61+ (setq-local comment-end-skip "[ \t]*$"))
5862
5963(provide 'pandoc-template-mode)
6064 ;;; pandoc-template.el ends here