From 2d9cdc6bc854f2cb4f271a066a75585c42b432fd Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Sun, 29 Jun 2014 11:00:33 -0700 Subject: context was not handling decimal-comma properly. --- lisp/ledger-context.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp') diff --git a/lisp/ledger-context.el b/lisp/ledger-context.el index 3efeab7f..893fdbac 100644 --- a/lisp/ledger-context.el +++ b/lisp/ledger-context.el @@ -33,8 +33,8 @@ ;; elements (defconst ledger-indent-string "\\(^[ \t]+\\)") (defconst ledger-status-string "\\([*! ]?\\)") -(defconst ledger-account-string "[\\[(]?\\(.*?\\)[])]?") -(defconst ledger-amount-string "[ \t]?\\(-?[0-9]+\\.[0-9]*\\)") +(defconst ledger-account-string "[\\[(]?\\(.*?\\)[])]? ") +(defconst ledger-amount-string "[ \t]?\\(-?[0-9]+[\\.,][0-9]*\\)") (defconst ledger-comment-string "[ \t]*;[ \t]*\\(.*?\\)") (defconst ledger-nil-string "\\([ \t]+\\)") (defconst ledger-commodity-string "\\(.+?\\)") -- cgit v1.2.3