From ebdff209ab8762367ce0db66ad0fa386642e61ad Mon Sep 17 00:00:00 2001 From: George Kettleborough Date: Sun, 21 Apr 2013 14:14:08 +0100 Subject: Add highlighting for multiple line comments --- lisp/ldg-mode.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp/ldg-mode.el') diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el index 2b707e26..160296c3 100644 --- a/lisp/ldg-mode.el +++ b/lisp/ldg-mode.el @@ -110,6 +110,10 @@ Can indent, complete or align depending on context." (if (boundp 'font-lock-defaults) (set (make-local-variable 'font-lock-defaults) '(ledger-font-lock-keywords nil t))) + (setq font-lock-extend-region-functions + (list #'font-lock-extend-region-wholelines + #'ledger-extend-region-multiline-comment)) + (setq font-lock-multiline nil) (set (make-local-variable 'pcomplete-parse-arguments-function) 'ledger-parse-arguments) -- cgit v1.2.3