branch: elpa/beancount commit ddd4b8725703cf17a665b56cc26a3f9f95642424 Author: Lover O'Bean <loverob...@users.noreply.github.com> Commit: Martin Blais <bl...@furius.ca>
Allow single-letter subaccount names. Ignore Emacs backup files. --- .gitignore | 1 + beancount.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bdc4ea6af6..d6016d7db3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*~ *.elc /beancount-autoloads.el /beancount-pkg.el diff --git a/beancount.el b/beancount.el index 00402a6d8f..fb6ecf44dd 100644 --- a/beancount.el +++ b/beancount.el @@ -223,7 +223,7 @@ _not_ followed by an account.") (defconst beancount-account-regexp (concat (regexp-opt beancount-account-categories) - "\\(?::[[:upper:][:digit:]][[:alnum:]-_]+\\)+") + "\\(?::[[:upper:][:digit:]][[:alnum:]-_]*\\)+") "A regular expression to match account names.") (defconst beancount-number-regexp "[-+]?[0-9]+\\(?:,[0-9]\\{3\\}\\)*\\(?:\\.[0-9]*\\)?"