I'm using the git ledger 3.0, and notice that account names with spaces in them are not highlighted properly. I'm quite sure single spaces are allowed in account names, and it troubles my little mind when they are not highlighted properly. I suspect the following font-lock statement:
#+begin_src lisp (defvar ledger-font-lock-keywords '(("\\( \\| \\|^\\)\\(;.*\\)" 2 font-lock-comment-face) ("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" 2 bold) ;;("^[0-9]+[-/.=][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([*].+?\\)\\(\\( ;\\| ;\\|$\\)\\)" ;; 2 font-lock-type-face) ("^\\s-+\\([*]\\s-*\\)?\\(\\([[(]\\)?[^*: ]+?:[^]); ]+?\\([])]\\)?\\)\\( \\| \\|$\\)" 2 font-lock-keyword-face) ("^\\([~=].+\\)" 1 font-lock-function-name-face) ("^\\([A-Za-z]+ .+\\)" 1 font-lock-function-name-face)) "Expressions to highlight in Ledger mode.") #+end_src In particular, the "font-lock-keyword-face" part. After staring at the regexp, however, I can't tell where the whitespace counter should be inserted. Can someone fix it? Sorry for the petty confusion, but it does make a difference… Thank