diff options
author | Teddy Wing | 2018-11-11 18:22:30 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-11 18:22:30 +0100 |
commit | f100f737b020fc1d5034415fa660c418460412cd (patch) | |
tree | 9f8ddc14980fe4e664921d0a14ea2684fb8f73f4 /syntax | |
parent | 9a0216cbaab8299ce87dee17c1650ce5521763e3 (diff) | |
download | vim-dome-key-f100f737b020fc1d5034415fa660c418460412cd.tar.bz2 |
syntax/dome_key.vim: Don't highlight non-keywords in `<…>`
Things like `<asdf>` shouldn't be highlighted.
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/dome_key.vim | 6 |
1 files changed, 3 insertions, 3 deletions
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 |