From f100f737b020fc1d5034415fa660c418460412cd Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 11 Nov 2018 18:22:30 +0100 Subject: syntax/dome_key.vim: Don't highlight non-keywords in `<…>` Things like `` shouldn't be highlighted. --- syntax/dome_key.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'syntax') diff --git a/syntax/dome_key.vim b/syntax/dome_key.vim index 93ffe1a..c1e1930 100644 --- a/syntax/dome_key.vim +++ b/syntax/dome_key.vim @@ -3,7 +3,7 @@ if exists('b:current_syntax') endif syntax region domeKeyComment display start="#" end="$" contains=@Spell -syntax region domeKeySpecialKey display start="<" end=">" contained contains=domeKeySpecialKeyKeyword +syntax region domeKeySpecialKey display matchgroup=domeKeySpecialKeyGroup start="<" end=">" contained contains=domeKeySpecialKeyKeyword syntax match domeKeyDefinitionTrigger "\c\(<\(Up\|Play\|Down\)>\)\+" contained contains=domeKeySpecialKey @@ -38,8 +38,8 @@ syntax case match highlight default link domeKeyComment Comment highlight default link domeKeyType Statement -highlight default link domeKeySpecialKey Special -highlight default link domeKeySpecialKeyKeyword domeKeySpecialKey +highlight default link domeKeySpecialKeyGroup Special +highlight default link domeKeySpecialKeyKeyword domeKeySpecialKeyGroup " TODO: " - Escaping only in actions -- cgit v1.2.3