diff options
author | John Wiegley <johnw@newartisans.com> | 2011-10-11 15:33:44 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-10-11 15:33:44 -0500 |
commit | 24d6619a52d1239f4df3371e4ef69e4a8fd930a1 (patch) | |
tree | 130573c15e3f00f123c10ef9ef2547782a3d0981 | |
parent | 102a26d99ea61c85035ef3d9c0e98fed29a84930 (diff) | |
parent | 8e969a8655eb72a68e6af144c3b3f50c4eb70db5 (diff) | |
download | ledger-24d6619a52d1239f4df3371e4ef69e4a8fd930a1.tar.gz ledger-24d6619a52d1239f4df3371e4ef69e4a8fd930a1.tar.bz2 ledger-24d6619a52d1239f4df3371e4ef69e4a8fd930a1.zip |
Merge branch 'next' of github.com:jwiegley/ledger into next
-rw-r--r-- | doc/ledger.texi | 5 | ||||
-rw-r--r-- | lisp/ldg-mode.el | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/ledger.texi b/doc/ledger.texi index ac7bfc5f..8389c383 100644 --- a/doc/ledger.texi +++ b/doc/ledger.texi @@ -1305,8 +1305,9 @@ The format of each following posting is: ACCOUNT AMOUNT [; NOTE] @end example -The @samp{ACCOUNT} may be surrounded by parentheses if it is a virtual -postings, or square brackets if it is a virtual postings that +Note that there must be at least two spaces between @samp{ACCOUNT} and +@samp{AMOUNT}. The @samp{ACCOUNT} may be surrounded by parentheses if it +is a virtual posting or square brackets if it is a virtual posting that must balance. The @samp{AMOUNT} can be followed by a per-unit posting cost, by specifying @samp{@@ AMOUNT}, or a complete posting cost with @samp{@@@@ AMOUNT}. Lastly, the @samp{NOTE} may diff --git a/lisp/ldg-mode.el b/lisp/ldg-mode.el index 3e9a9106..cc9e8d92 100644 --- a/lisp/ldg-mode.el +++ b/lisp/ldg-mode.el @@ -10,8 +10,8 @@ ;;("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" ;; 2 font-lock-type-face) ("^\\s-+\\([*]\\s-*\\)?\\(\\([[(]\\)?[^*: - ]+?:[^]); - ]+?\\([])]\\)?\\)\\( \\| \\|$\\)" + ]+?:\\([^]); + ]\\|\\s-\\)+?\\([])]\\)?\\)\\( \\| \\|$\\)" 2 font-lock-keyword-face) ("^\\([~=].+\\)" 1 font-lock-function-name-face) ("^\\([A-Za-z]+ .+\\)" 1 font-lock-function-name-face)) |