diff --git a/beancount.el b/beancount.el index 597aa0a..969e6cc 100644 --- a/beancount.el +++ b/beancount.el @@ -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