context was not handling decimal-comma properly.

This commit is contained in:
Craig Earls 2014-06-29 11:00:33 -07:00
parent 0b8e79ec8b
commit 2d9cdc6bc8

View file

@ -34,7 +34,7 @@
(defconst ledger-indent-string "\\(^[ \t]+\\)") (defconst ledger-indent-string "\\(^[ \t]+\\)")
(defconst ledger-status-string "\\([*! ]?\\)") (defconst ledger-status-string "\\([*! ]?\\)")
(defconst ledger-account-string "[\\[(]?\\(.*?\\)[])]? ") (defconst ledger-account-string "[\\[(]?\\(.*?\\)[])]? ")
(defconst ledger-amount-string "[ \t]?\\(-?[0-9]+\\.[0-9]*\\)") (defconst ledger-amount-string "[ \t]?\\(-?[0-9]+[\\.,][0-9]*\\)")
(defconst ledger-comment-string "[ \t]*;[ \t]*\\(.*?\\)") (defconst ledger-comment-string "[ \t]*;[ \t]*\\(.*?\\)")
(defconst ledger-nil-string "\\([ \t]+\\)") (defconst ledger-nil-string "\\([ \t]+\\)")
(defconst ledger-commodity-string "\\(.+?\\)") (defconst ledger-commodity-string "\\(.+?\\)")