Skip to content

Commit ce672df

Browse files
committed
Update vimperatorOption with current Vimperator options:
Queried by filtering `options` object keys (strings, numbers, boolean). Thanks to @gkatsev. Would be nice if this could be automated somehow. Object.keys(options).filter(function(key) { return typeof options[key] === 'string'; }) Still required some manual filter, due to internal options not exposed in documentation and such.
1 parent f38bafc commit ce672df

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

syntax/vimperator.vim

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
" Vim syntax file
22
" 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
56

67
" TODO: make this vimperator specific - shared liberator config?
78

89
if exists("b:current_syntax")
9-
finish
10+
finish
1011
endif
1112

1213
let s:cpo_save = &cpo
@@ -51,22 +52,25 @@ syn match vimperatorAutoEventList "\(\a\+,\)*\a\+" contained contains=vimperator
5152
syn region vimperatorSet matchgroup=vimperatorCommand start="\%(^\s*:\=\)\@<=\<\%(setl\%[ocal]\|setg\%[lobal]\|set\=\)\=\>"
5253
\ end="$" keepend oneline contains=vimperatorOption,vimperatorString
5354

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
6062
\ contained nextgroup=vimperatorSetMod
6163

6264
" 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\)\>!\="
6466
\ 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\)\>!\="
6668
\ 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\)\>!\="
6870
\ 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\)\>!\="
7074
\ contained nextgroup=vimperatorSetMod
7175

7276
syn match vimperatorSetMod "\%(\<[a-z_]\+\)\@<=&" contained

0 commit comments

Comments
 (0)