aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-11-12 19:40:42 +0100
committerTeddy Wing2018-11-12 19:40:42 +0100
commitcd8f363bb16c21f0ff8002eb2cc5ad43934d8215 (patch)
tree3ba73f1b250491fcb4993c2d77737921838a109d
parente5a9d9a1876a139c673207e712dfa8d8a6fee1c2 (diff)
downloadvim-dome-key-cd8f363bb16c21f0ff8002eb2cc5ad43934d8215.tar.bz2
syntax/dome_key.vim: Highlight modifiers in special keys
Modifier keys prefix special key keywords, and can be `D-`, `A-`, `C-`, `S-`.
-rw-r--r--syntax/dome_key.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/syntax/dome_key.vim b/syntax/dome_key.vim
index 609487e..4948cf7 100644
--- a/syntax/dome_key.vim
+++ b/syntax/dome_key.vim
@@ -7,7 +7,8 @@ syntax region domeKeyComment display start="#" end="$" contains=@Spell
" Special keys
syntax match domeKeySpecialKeyEscape display "\\<"he=e-1
syntax match domeKeySpecialKeyEscape display "\\\\"
-syntax region domeKeySpecialKey display matchgroup=domeKeySpecialKeyGroup start="[^\\]<" end=">" contained contains=domeKeySpecialKeyKeyword
+syntax region domeKeySpecialKey display matchgroup=domeKeySpecialKeyGroup start="[^\\]<" end=">" contained contains=domeKeySpecialKeyKeyword,domeKeySpecialKeyModifier
+syntax match domeKeySpecialKeyModifier display "\c[DACS]-" contained
syntax match domeKeyDefinitionTrigger "\c\(<\(Up\|Play\|Down\)>\)\+" contained
@@ -58,6 +59,7 @@ highlight default link domeKeyType Statement
highlight default link domeKeySpecialKeyGroup Special
highlight default link domeKeySpecialKeyKeyword domeKeySpecialKeyGroup
highlight default link domeKeyDefinitionTrigger domeKeySpecialKeyGroup
+highlight default link domeKeySpecialKeyModifier domeKeySpecialKeyGroup
highlight default link domeKeySpecialKeyEscape Special