summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ldg-fonts.el2
-rw-r--r--lisp/ldg-regex.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ldg-fonts.el b/lisp/ldg-fonts.el
index cb7a81c0..8ba84c84 100644
--- a/lisp/ldg-fonts.el
+++ b/lisp/ldg-fonts.el
@@ -113,7 +113,7 @@
(defvar ledger-font-lock-keywords
`( ;; (,ledger-other-entries-regex 1
;; ledger-font-other-face)
- (,ledger-comment-regex 2
+ (,ledger-comment-regex 0
'ledger-font-comment-face)
(,ledger-payee-pending-regex 2
'ledger-font-payee-pending-face) ; Works
diff --git a/lisp/ldg-regex.el b/lisp/ldg-regex.el
index c17582eb..8e843ae5 100644
--- a/lisp/ldg-regex.el
+++ b/lisp/ldg-regex.el
@@ -43,7 +43,7 @@
"\\(^[~=A-Za-z].+\\)+")
(defconst ledger-comment-regex
- "\\( \\| \\|^\\)\\(;.*\\)")
+ "^[;#|\\*%].*\\|[ \t]+;.*")
(defconst ledger-payee-any-status-regex
"^[0-9/.=-]+\\(\\s-+\\*\\)?\\(\\s-+(.*?)\\)?\\s-+\\(.+?\\)\\(\t\\|\n\\| [ \t]\\)")