diff options
author | Craig Earls <enderw88@gmail.com> | 2014-01-01 13:26:19 -0800 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-01-01 13:26:19 -0800 |
commit | 876cfa1f78d4c036332f3d918a88817fe72353e4 (patch) | |
tree | acc405b9370387e21c4a97c3e74776dda8cdcb39 /lisp/ledger-regex.el | |
parent | c00e4eb8c69c5e55a3283cf692df2146c6bc8d9f (diff) | |
parent | e00ed8c77039eb3bee1c4ad70a4c3adb5eb922c9 (diff) | |
download | fork-ledger-876cfa1f78d4c036332f3d918a88817fe72353e4.tar.gz fork-ledger-876cfa1f78d4c036332f3d918a88817fe72353e4.tar.bz2 fork-ledger-876cfa1f78d4c036332f3d918a88817fe72353e4.zip |
Merge pull request #227 from 4ourbit/patch-2
More context-aware ledger pcomplete rules.
Thanks.
Diffstat (limited to 'lisp/ledger-regex.el')
-rw-r--r-- | lisp/ledger-regex.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ledger-regex.el b/lisp/ledger-regex.el index 06564a4a..cf10895a 100644 --- a/lisp/ledger-regex.el +++ b/lisp/ledger-regex.el @@ -79,6 +79,8 @@ (defconst ledger-account-cleared-regex "\\(^[ \t]+\\)\\(*\\s-*.*?\\)\\( \\|\t\\|$\\)") +(defconst ledger-metadata-regex + "[ \t]+\\(?2:;[ \t]+.+\\)$") (defmacro ledger-define-regexp (name regex docs &rest args) "Simplify the creation of a Ledger regex and helper functions." |