[emacs] Fix bug 1108, enabling correct account context.
The old way of working was keeping spaces before and after the account. Now the space before is associated to the "status" and "separator" is enlarged to not be maxed to 2 chars [ci skip]
This commit is contained in:
parent
c7fa772310
commit
d3344243c9
1 changed files with 2 additions and 2 deletions
|
|
@ -32,9 +32,9 @@
|
|||
;; `ledger-single-line-config' macro to form the regex and list of
|
||||
;; elements
|
||||
(defconst ledger-indent-string "\\(^[ \t]+\\)")
|
||||
(defconst ledger-status-string "\\([*! ]?\\)")
|
||||
(defconst ledger-status-string "\\(* \\|! \\)?")
|
||||
(defconst ledger-account-string "[\\[(]?\\(.*?\\)[])]?")
|
||||
(defconst ledger-separator-string "\\s-\\s-")
|
||||
(defconst ledger-separator-string "\\s-\\s-+")
|
||||
(defconst ledger-amount-string "\\(-?[0-9]+[\\.,][0-9]*\\)")
|
||||
(defconst ledger-comment-string "[ \t]*;[ \t]*\\(.*?\\)")
|
||||
(defconst ledger-nil-string "\\([ \t]\\)")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue