summaryrefslogtreecommitdiff
path: root/lisp/ldg-mode.el
diff options
context:
space:
mode:
authorGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-21 14:14:08 +0100
committerGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-21 14:14:08 +0100
commitebdff209ab8762367ce0db66ad0fa386642e61ad (patch)
tree528e4a2aafd2c785a580cc807a17c5b681dfc2b0 /lisp/ldg-mode.el
parent1761e6a447c6514a4260746e6a78e400be5c0e4e (diff)
downloadfork-ledger-ebdff209ab8762367ce0db66ad0fa386642e61ad.tar.gz
fork-ledger-ebdff209ab8762367ce0db66ad0fa386642e61ad.tar.bz2
fork-ledger-ebdff209ab8762367ce0db66ad0fa386642e61ad.zip
Add highlighting for multiple line comments
Diffstat (limited to 'lisp/ldg-mode.el')
-rw-r--r--lisp/ldg-mode.el4
1 files changed, 4 insertions, 0 deletions
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)