diff options
Diffstat (limited to 'lisp/ledger-regex.el')
-rw-r--r-- | lisp/ledger-regex.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ledger-regex.el b/lisp/ledger-regex.el index 1ff731fc..99655716 100644 --- a/lisp/ledger-regex.el +++ b/lisp/ledger-regex.el @@ -338,10 +338,10 @@ )) (defconst ledger-xact-after-date-regex - (concat " ?\\([ *!]\\)" ;; mark, subexp 1 - " ?\\((.*)\\)?" ;; code, subexp 2 - " ?\\([^;\n]+\\)" ;; desc, subexp 3 - "\\(\n\\|;.*\\)" ;; comment, subexp 4 + (concat "\\([ \t]+[*!]\\)?" ;; mark, subexp 1 + "\\([ \t]+(.*?)\\)?" ;; code, subexp 2 + "\\([ \t]+[^;\n]+\\)" ;; desc, subexp 3 + "\\(;[^\n]*\\)?" ;; comment, subexp 4 )) (defconst ledger-posting-regex |