From 8c0f6cb9e9d9fb36f29c797e7dc4ab2319fa7ef1 Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Mon, 21 Nov 2011 08:57:20 -0700 Subject: [PATCH] Fixed font-lock REGEX to allow account names with spaces --- lisp/ledger.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)