summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-06-29 11:00:33 -0700
committerCraig Earls <enderw88@gmail.com>2014-06-29 11:00:33 -0700
commit2d9cdc6bc854f2cb4f271a066a75585c42b432fd (patch)
tree81c6b4910a8b45f60199ce036cc108ed419819e5 /lisp
parent0b8e79ec8b94204ef3a5ebebe465675f70b34be7 (diff)
downloadfork-ledger-2d9cdc6bc854f2cb4f271a066a75585c42b432fd.tar.gz
fork-ledger-2d9cdc6bc854f2cb4f271a066a75585c42b432fd.tar.bz2
fork-ledger-2d9cdc6bc854f2cb4f271a066a75585c42b432fd.zip
context was not handling decimal-comma properly.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ledger-context.el4
1 files changed, 2 insertions, 2 deletions
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 "\\(.+?\\)")