summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2014-11-30 14:52:22 +0100
committerDavid Kastrup <dak@gnu.org>2014-12-06 13:25:26 +0100
commit18b7b506b791e3cd53191832c2daba2a8a40ab9f (patch)
treef4786eac4beb099d99da7233cd61cf2ccfbc395e /elisp
parenta2c45742078a527a0f418ac45239467e0c5c380f (diff)
Issue 4208/3: Emacs mode: recognize \this-is-a-command syntax
This is a late followup for Issue 2702: Unify the lexer's idea of words and commands across all modes.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/lilypond-font-lock.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/lilypond-font-lock.el b/elisp/lilypond-font-lock.el
index 73a8df8f7d..be7b592635 100644
--- a/elisp/lilypond-font-lock.el
+++ b/elisp/lilypond-font-lock.el
@@ -58,8 +58,8 @@
;; ... keywords (defined above, see kwregex)
(cons (concat "\\(\\([_^-]?\\(" kwregex "\\)\\)+\\)\\($\\|[] \t(~{}>\\\\_()^*-]\\)") '(1 font-lock-keyword-face))
-;; ... user defined identifiers \[a-zA-Z]+
- '("\\([_^-]?\\\\\\([a-zA-Z][a-zA-Z]*\\)\\)" 1 font-lock-constant-face)
+;; ... user defined identifiers, roughly \[a-zA-Z]+ with single - or _ in between.
+ '("\\([_^-]?\\\\\\([a-zA-Z[:nonascii:]]\\(?:[-_]?[a-zA-Z[:nonascii:]]\\)*\\)\\)" 1 font-lock-constant-face)
;; ... the left side of '=' -mark
'("\\([_a-zA-Z.0-9-]+\\)[ \t]*=[ \t]*" 1 font-lock-variable-name-face)