summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorChristophe Rhodes <csr21@cantab.net>2014-04-23 17:04:19 +0100
committerChristophe Rhodes <csr21@cantab.net>2014-04-23 17:45:41 +0100
commitad4eac43a99af8f6d88efefd8921fb71d7626de0 (patch)
tree215a70f95dc080144f1cd4a8b849488bb0f3fd64 /lisp
parentd752bef547fb696cd1c9151c1c3d00e9a945eadd (diff)
downloadfork-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.el2
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