diff options
author | Christophe Rhodes <csr21@cantab.net> | 2014-04-23 17:04:19 +0100 |
---|---|---|
committer | Christophe Rhodes <csr21@cantab.net> | 2014-04-23 17:45:41 +0100 |
commit | ad4eac43a99af8f6d88efefd8921fb71d7626de0 (patch) | |
tree | 215a70f95dc080144f1cd4a8b849488bb0f3fd64 /lisp | |
parent | d752bef547fb696cd1c9151c1c3d00e9a945eadd (diff) | |
download | fork-ledger-ad4eac43a99af8f6d88efefd8921fb71d7626de0.tar.gz fork-ledger-ad4eac43a99af8f6d88efefd8921fb71d7626de0.tar.bz2 fork-ledger-ad4eac43a99af8f6d88efefd8921fb71d7626de0.zip |
add "year" handling to ledger-iterate-regex
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-regex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ledger-regex.el b/lisp/ledger-regex.el index 8d838892..3b43172d 100644 --- a/lisp/ledger-regex.el +++ b/lisp/ledger-regex.el @@ -325,7 +325,7 @@ (note end-note)) (defconst ledger-iterate-regex - (concat "\\(Y\\s-+\\([0-9]+\\)\\|" ;; Catches a Y directive + (concat "\\(\\(?:Y\\|year\\)\\s-+\\([0-9]+\\)\\|" ;; Catches a Y/year directive ledger-iso-date-regexp "\\([ *!]+\\)" ;; mark "\\((.*)\\)?" ;; code |