Fix comment regex to include all line comment types

This commit is contained in:
George Kettleborough 2013-04-11 10:50:38 +01:00
parent 90d2750988
commit 6396fe2bd7
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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]\\)")