|
1 | 1 | " Vim syntax file
|
2 | 2 | " Language: VIMperator configuration file
|
3 |
| -" Maintainer: Doug Kearns <[email protected]> |
4 |
| -" Last Change: 2009 Nov 14 |
| 3 | +" Author: Doug Kearns <[email protected]> |
| 4 | +" Maintainer: timss <[email protected]> |
| 5 | +" Last Change: 2016 March 18 |
5 | 6 |
|
6 | 7 | " TODO: make this vimperator specific - shared liberator config?
|
7 | 8 |
|
8 | 9 | if exists("b:current_syntax")
|
9 |
| - finish |
| 10 | + finish |
10 | 11 | endif
|
11 | 12 |
|
12 | 13 | let s:cpo_save = &cpo
|
@@ -51,22 +52,25 @@ syn match vimperatorAutoEventList "\(\a\+,\)*\a\+" contained contains=vimperator
|
51 | 52 | syn region vimperatorSet matchgroup=vimperatorCommand start="\%(^\s*:\=\)\@<=\<\%(setl\%[ocal]\|setg\%[lobal]\|set\=\)\=\>"
|
52 | 53 | \ end="$" keepend oneline contains=vimperatorOption,vimperatorString
|
53 | 54 |
|
54 |
| -syn keyword vimperatorOption ac act activate animations autocomplete cd cdpath complete cpt defsearch ds editor eht ei enc encoding |
55 |
| - \ eventignore extendedhinttags fenc fileencoding fh followhints go guioptions helpfile hf hi hin hintinputs hintmatching hinttags |
56 |
| - \ hinttimeout history hm ht hto maxitems messages msgs newtab nextpattern pa pageinfo popups pps previouspattern |
57 |
| - \ rtp runtimepath si sanitizeitems sts sanitizetimespan scr scroll scrollbars sh shcf shell shellcmdflag showstatuslinks |
58 |
| - \ stal status suggestengines titlestring toolbars urlseparator vbs verbose wildmode wim |
59 |
| - \ wordseparators wsp |
| 55 | +" string/number options |
| 56 | +syn keyword vimperatorOption ac act activate autocomplete cd cdpath complete cpt defsearch ds editor eht ei enc |
| 57 | + \ encoding eventignore extendedhinttags fenc fh fileencoding followhints go gui hc helpfile hf hi hin hintchars |
| 58 | + \ hintinputs hintmatching hinttags hinttimeout history hm ht hto maxitems messages messagetimeout msgs mto newtab nextpattern |
| 59 | + \ pa pageinfo passthrough popups pps previouspattern rtp runtimepath sanitizeitems sanitizetimespan scr scroll sh shcf shell |
| 60 | + \ shellcmdflag showstatuslinks si slv smallicons stal status statuslinevisibility sts suggestengines tabnumbers titlestring |
| 61 | + \ tn toolbars urlseparator vbs verbose wildmode wim wordseparators wsp yankencodedurl |
60 | 62 | \ contained nextgroup=vimperatorSetMod
|
61 | 63 |
|
62 | 64 | " toggle options
|
63 |
| -syn match vimperatorOption "\<\%(no\|inv\)\=\%(errorbells\|eb\|exrc\|ex\|focuscontent\|fc\|fullscreen\|fs\|ignorecase\|ic\)\>!\=" |
| 65 | +syn match vimperatorOption "\<\%(no\|inv\)\=\%(animations\|ani\|apptab\|app\|autocomplete\|ac\|errorbells\|eb\|exrc\|ex\)\>!\=" |
64 | 66 | \ contained nextgroup=vimperatorSetMod
|
65 |
| -syn match vimperatorOption "\<\%(no\|inv\)\=\%(incsearch\|is\|insertmode\|im\|hlsearch\|hls\|linksearch\|lks\)\>!\=" |
| 67 | +syn match vimperatorOption "\<\%(no\|inv\)\=\%(focuscontent\|fc\|fullscreen\|fs\|hlsearch\|hls\|ignorecase\|ic\)\>!\=" |
66 | 68 | \ contained nextgroup=vimperatorSetMod
|
67 |
| -syn match vimperatorOption "\<\%(no\|inv\)\=\%(loadplugins\|lpl\|more\|online\|private\|showmode\|smd\|smartcase\|scs\)\>!\=" |
| 69 | +syn match vimperatorOption "\<\%(no\|inv\)\=\%(incsearch\|is\ insertmode\|im\|linksearch\|lks\|loadplugins\|lpl\|online\)\>!\=" |
68 | 70 | \ contained nextgroup=vimperatorSetMod
|
69 |
| -syn match vimperatorOption "\<\%(no\|inv\)\=\%(online\|scrollbars\|visualbell\|vb\|usermode\|um\)\>!\=" |
| 71 | +syn match vimperatorOption "\<\%(no\|inv\)\=\%(passthrough\|scrollbars\|sb\|showmode\|smd\|smallicons\|si\|smartcase\|scs\)\>!\=" |
| 72 | + \ contained nextgroup=vimperatorSetMod |
| 73 | +syn match vimperatorOption "\<\%(no\|inv\)\=\%(tabnumbers\|tn\|usermode\|um\|visualbell\|vb\|yankencodedurl\)\>!\=" |
70 | 74 | \ contained nextgroup=vimperatorSetMod
|
71 | 75 |
|
72 | 76 | syn match vimperatorSetMod "\%(\<[a-z_]\+\)\@<=&" contained
|
|
0 commit comments