update of packages
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
(defvar ledger-iso-date-regexp)
|
||||
|
||||
(defconst ledger-amount-decimal-comma-regex
|
||||
"-?[1-9][0-9.]*[,]?[0-9]*")
|
||||
"-?\\(?:[1-9][0-9.]\\|0\\)*[,]?[0-9]*")
|
||||
|
||||
(defconst ledger-amount-decimal-period-regex
|
||||
"-?[1-9][0-9,]*[.]?[0-9]*")
|
||||
"-?\\(?:[1-9][0-9,]*\\|0\\)[.]?[0-9]*")
|
||||
|
||||
(defconst ledger-other-entries-regex
|
||||
"\\(^[~=A-Za-z].+\\)+")
|
||||
@@ -192,7 +192,7 @@
|
||||
(group (and num (? num)))
|
||||
(eval sep)
|
||||
(group (and num (? num)))))))
|
||||
"Match a single date, in its 'written' form.")
|
||||
"Match a single date, in its \"written\" form.")
|
||||
|
||||
(ledger-define-regexp full-date
|
||||
(macroexpand
|
||||
@@ -344,7 +344,7 @@
|
||||
(note end-note))
|
||||
|
||||
(defconst ledger-amount-regex
|
||||
(concat "\\( \\|\t\\| \t\\)[ \t]*-?"
|
||||
(concat "\\( \\|\t\\| \t\\)[ \t]*[-+=]? *"
|
||||
"\\(?:" ledger-commodity-regexp " *\\)?"
|
||||
;; We either match just a number after the commodity with no
|
||||
;; decimal or thousand separators or a number with thousand
|
||||
@@ -352,7 +352,7 @@
|
||||
;; or `.', because the match is non-greedy, it must leave at
|
||||
;; least one of those symbols for the following capture
|
||||
;; group, which then finishes the decimal part.
|
||||
"\\(-?\\(?:[0-9]+\\|[0-9,.]+?\\)\\)"
|
||||
"\\([-+=]? *\\(?:[0-9]+\\|[0-9,.]+?\\)\\)"
|
||||
"\\([,.][0-9)]+\\)?"
|
||||
"\\(?: *" ledger-commodity-regexp "\\)?"
|
||||
"\\([ \t]*[@={]@?[^\n;]+?\\)?"
|
||||
@@ -401,12 +401,14 @@
|
||||
))
|
||||
|
||||
(defconst ledger-posting-regex
|
||||
(concat "^[[:blank:]]+" ; initial white space
|
||||
"\\(\\([*!]\\)?" ; state and account 1, state 2
|
||||
"[[:blank:]]*\\(.*?\\)\\)?" ; account 3
|
||||
"\\(?:\\(?:\t\\|[[:blank:]]\\{2,\\}\\)" ; column separator
|
||||
"\\([^;\n]*?\\)" ; amount 4
|
||||
"[[:blank:]]*\\(;.*\\)?\\)?$" ; comment 5
|
||||
(concat "^[[:blank:]]+" ; initial white space
|
||||
;; state and account, subexp 1
|
||||
"\\(\\([*!]\\)?" ; state, subexp 2
|
||||
"[[:blank:]]*\\(.*?\\)\\)?" ; account, subexp 3
|
||||
"\\(?:\\(?:\t\\|[[:blank:]]\\{2,\\}\\)"
|
||||
"\\([^;\n]*?\\)\\)?" ; amount, subexp 4
|
||||
"\\(?:\\(?:\t\\|[[:blank:]]\\{2,\\}\\)"
|
||||
"\\(;.*\\)\\)?$" ; comment, subexp 5
|
||||
))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user