diff options
| author | Teddy Wing | 2018-11-11 17:48:48 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-11-11 17:50:02 +0100 | 
| commit | 9966bc804176b70f0cd03965b97b13e555961479 (patch) | |
| tree | 40ec89da5a0d64ddf6dffa81ba7387eb5de147d7 | |
| parent | 41d35b3dcfc068180fbf6bf53aae4b4ddb13c70f (diff) | |
| download | vim-dome-key-9966bc804176b70f0cd03965b97b13e555961479.tar.bz2 | |
syntax/dome_key.vim: Remove unmatched `domeKeyTriggerKeyKeyword`
Since `Up`, `Play`, and `Down` are also defined in
`domeKeySpecialKeyKeyword`, `domeKeyTriggerKeyKeyword` would never get
matched. Remove it since it doesn't get used. We already have the
`domeKeyDefinitionTrigger` matcher to restrict the possible trigger
keywords.
| -rw-r--r-- | syntax/dome_key.vim | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/syntax/dome_key.vim b/syntax/dome_key.vim index 2a114c9..00f2946 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=domeKeyTriggerKeyKeyword,domeKeySpecialKeyKeyword +syntax region domeKeySpecialKey display start="<" end=">" contained contains=domeKeySpecialKeyKeyword  syntax match domeKeyDefinitionTrigger "\c\(<\(Up\|Play\|Down\)>\)\+" contained contains=domeKeySpecialKey @@ -14,8 +14,6 @@ syntax match domeKeyMapDefinitionAction ".*$" contained contains=domeKeySpecialK  syntax keyword domeKeyType contained containedin=domeKeyMapDefinitionStart map cmd mode  syntax case ignore -syntax keyword domeKeyTriggerKeyKeyword contained Up Play Down -  syntax keyword domeKeySpecialKeyKeyword contained F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12  syntax keyword domeKeySpecialKeyKeyword contained Left Right Down Up  syntax keyword domeKeySpecialKeyKeyword contained Home End PageUp PageDown @@ -40,7 +38,6 @@ syntax case match  highlight default link domeKeyComment Comment  highlight default link domeKeyType Statement  highlight default link domeKeySpecialKey Special -highlight default link domeKeyTriggerKeyKeyword domeKeySpecialKey  highlight default link domeKeySpecialKeyKeyword domeKeySpecialKey  " TODO: | 
