add "year" handling to ledger-iterate-regex

This commit is contained in:
Christophe Rhodes 2014-04-23 17:04:19 +01:00
parent d752bef547
commit ad4eac43a9

View file

@ -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