From 7b437abcf00f68d1c6ff032e118af09fcd6486a5 Mon Sep 17 00:00:00 2001 From: TRSx80 Date: Thu, 1 Aug 2024 22:47:45 -0400 Subject: [PATCH] Fix beancount-transaction-regexp not recognizing 'txn' directive The docs say 'txn' OR flag. Also, 'beancount-flag-regexp' is a single character, thus does not need a shy group enclosing it. --- beancount.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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