Skip to content

Commit

Permalink
Fix beancount-transaction-regexp not recognizing 'txn' directive
Browse files Browse the repository at this point in the history
The docs say 'txn' OR flag.  Also, 'beancount-flag-regexp' is a single
character, thus does not need a shy group enclosing it.
  • Loading branch information
TRSx80 authored and blais committed Aug 2, 2024
1 parent 71c1622 commit 7b437ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions beancount.el
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ _not_ followed by an account.")

(defconst beancount-transaction-regexp
(concat "^\\(" beancount-date-regexp "\\) +"
"\\(?:txn +\\)?"
"\\(" beancount-flag-regexp "\\) +"
"\\(\\(?:txn+\\)\\|" beancount-flag-regexp "\\) +"
"\\(\".*\"\\)"))

(defconst beancount-posting-regexp
Expand Down

0 comments on commit 7b437ab

Please sign in to comment.