summaryrefslogtreecommitdiff
path: root/lisp/ledger-regex.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-01-01 13:26:19 -0800
committerCraig Earls <enderw88@gmail.com>2014-01-01 13:26:19 -0800
commit876cfa1f78d4c036332f3d918a88817fe72353e4 (patch)
treeacc405b9370387e21c4a97c3e74776dda8cdcb39 /lisp/ledger-regex.el
parentc00e4eb8c69c5e55a3283cf692df2146c6bc8d9f (diff)
parente00ed8c77039eb3bee1c4ad70a4c3adb5eb922c9 (diff)
downloadfork-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.el2
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."