From ad4eac43a99af8f6d88efefd8921fb71d7626de0 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Wed, 23 Apr 2014 17:04:19 +0100 Subject: add "year" handling to ledger-iterate-regex --- lisp/ledger-regex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') 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 -- cgit v1.2.3