Merge pull request #280 from csrhodes/fix-ledger-iterate-regex
Fix ledger iterate regex
This commit is contained in:
commit
62bdb2f13a
1 changed files with 3 additions and 3 deletions
|
|
@ -178,8 +178,8 @@
|
||||||
(ledger-define-regexp iso-date
|
(ledger-define-regexp iso-date
|
||||||
( let ((sep '(or ?- ?/)))
|
( let ((sep '(or ?- ?/)))
|
||||||
(rx (group
|
(rx (group
|
||||||
(and (group (? (= 4 num)))
|
(and (? (and (group (= 4 num)))
|
||||||
(eval sep)
|
(eval sep))
|
||||||
(group (and num (? num)))
|
(group (and num (? num)))
|
||||||
(eval sep)
|
(eval sep)
|
||||||
(group (and num (? num)))))))
|
(group (and num (? num)))))))
|
||||||
|
|
@ -325,7 +325,7 @@
|
||||||
(note end-note))
|
(note end-note))
|
||||||
|
|
||||||
(defconst ledger-iterate-regex
|
(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
|
ledger-iso-date-regexp
|
||||||
"\\([ *!]+\\)" ;; mark
|
"\\([ *!]+\\)" ;; mark
|
||||||
"\\((.*)\\)?" ;; code
|
"\\((.*)\\)?" ;; code
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue