summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2011-11-21 08:57:20 -0700
committerJohn Wiegley <johnw@newartisans.com>2012-02-10 09:36:36 -1000
commit8c0f6cb9e9d9fb36f29c797e7dc4ab2319fa7ef1 (patch)
tree99a3eec62b100485a367a0b037a343091af6f49d /lisp
parenta3fb26559b7b3aea1de376a11a28bb4140c9a940 (diff)
downloadledger-8c0f6cb9e9d9fb36f29c797e7dc4ab2319fa7ef1.tar.gz
ledger-8c0f6cb9e9d9fb36f29c797e7dc4ab2319fa7ef1.tar.bz2
ledger-8c0f6cb9e9d9fb36f29c797e7dc4ab2319fa7ef1.zip
Fixed font-lock REGEX to allow account names with spaces
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ledger.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ledger.el b/lisp/ledger.el
index a1fdd9c9..5c2465d6 100644
--- a/lisp/ledger.el
+++ b/lisp/ledger.el
@@ -132,7 +132,7 @@ text that should replace the format specifier."
("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" 2 bold)
;;("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)"
;; 2 font-lock-type-face)
- ("^\\s-+\\([*]\\s-*\\)?\\(\\([[(]\\)?\\([A-Za-z]\\|\\s-\\)+?:[^]);
+ ("^\\s-+\\([*]\\s-*\\)?\\(\\([[(]\\)?\\([^*;]\\)+?\\(:\\|\\s-\\)[^]);
]+?\\([])]\\)?\\)\\( \\| \\|$\\)"
2 font-lock-keyword-face)
("^\\([~=].+\\)" 1 font-lock-function-name-face)