From cd8f363bb16c21f0ff8002eb2cc5ad43934d8215 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 12 Nov 2018 19:40:42 +0100 Subject: syntax/dome_key.vim: Highlight modifiers in special keys Modifier keys prefix special key keywords, and can be `D-`, `A-`, `C-`, `S-`. --- syntax/dome_key.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'syntax') 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 -- cgit v1.2.3