Mercurial > vim
comparison runtime/syntax/vim.vim @ 7183:ffad29dc7eee
commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 30 14:37:44 2015 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 30 Oct 2015 14:45:04 +0100 |
parents | b2673982c625 |
children | 873eae260c97 |
comparison
equal
deleted
inserted
replaced
7182:c6a1a1ea7c19 | 7183:ffad29dc7eee |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Vim 7.4 script | 2 " Language: Vim 7.4 script |
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> | 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> |
4 " Last Change: Apr 02, 2015 | 4 " Last Change: October 19, 2015 |
5 " Version: 7.4-33 | 5 " Version: 7.4-35 |
6 " Automatically generated keyword lists: {{{1 | 6 " Automatically generated keyword lists: {{{1 |
7 | 7 |
8 " Quit when a syntax file was already loaded {{{2 | 8 " Quit when a syntax file was already loaded {{{2 |
9 if exists("b:current_syntax") | 9 if exists("b:current_syntax") |
10 finish | 10 finish |
26 syn keyword vimCommand contained ar argg[lobal] bad[d] bm[odified] breaka[dd] buf c cat[ch] cex[pr] c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] le[ft] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new nor omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] ret[ab] | 26 syn keyword vimCommand contained ar argg[lobal] bad[d] bm[odified] breaka[dd] buf c cat[ch] cex[pr] c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] le[ft] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new nor omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] ret[ab] |
27 syn match vimCommand contained "\<z[-+^.=]\=\>" | 27 syn match vimCommand contained "\<z[-+^.=]\=\>" |
28 syn keyword vimStdPlugin contained DiffOrig Man N[ext] P[rint] S TOhtml XMLent XMLns | 28 syn keyword vimStdPlugin contained DiffOrig Man N[ext] P[rint] S TOhtml XMLent XMLns |
29 | 29 |
30 " vimOptions are caught only when contained in a vimSet {{{2 | 30 " vimOptions are caught only when contained in a vimSet {{{2 |
31 syn keyword vimOption contained acd ambw ari aw backupext beval biosk breakindent bsdir cb cfu cinkeys cmdheight colorcolumn completefunc copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg laststatus lisp loadplugins macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape remap rightleftcmd rtp sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tb termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan | 31 syn keyword vimOption contained acd ambw arshape background ballooneval bg bkc bri bt ccv charconvert cinoptions cmp com concealcursor cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg laststatus lisp loadplugins macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape remap rightleftcmd rtp sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tb termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan |
32 syn keyword vimOption contained ai anti arshape awa backupskip bex bioskey breakindentopt bsk cc ch cino cmdwinheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lazyredraw lispwords lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt renderoptions rl ru sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tbi termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write | 32 syn keyword vimOption contained ai anti autochdir backspace balloonexpr bh bl briopt bufhidden cd ci cinw cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lazyredraw lispwords lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt renderoptions rl ru sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tbi termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write |
33 syn keyword vimOption contained akm antialias autochdir background balloondelay bexpr bk bri bt ccv charconvert cinoptions cmp com concealcursor cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lbr list ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt re report rlc ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax taglength tbidi terse tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany | 33 syn keyword vimOption contained akm antialias autoindent backup bdir bin bo brk buflisted cdpath cin cinwords co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lbr list ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt re report rlc ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax taglength tbidi terse tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany |
34 syn keyword vimOption contained al ar autoindent backspace ballooneval bg bkc briopt bufhidden cd ci cinw cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp lcs listchars lsp makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pfn popt printfont pumheight readonly restorescreen rnu ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta tagrelative tbis textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup | 34 syn keyword vimOption contained al ar autoread backupcopy bdlay binary bomb browsedir buftype cedit cindent clipboard cocu compatible consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp lcs listchars lsp makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pfn popt printfont pumheight readonly restorescreen rnu ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta tagrelative tbis textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup |
35 syn keyword vimOption contained aleph arab autoread backup balloonexpr bh bl brk buflisted cdpath cin cinwords co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap linebreak lm lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode ph preserveindent printheader pvh redrawtime revins ro rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tags tbs textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay | 35 syn keyword vimOption contained aleph arab autowrite backupdir belloff biosk breakat bs casemap cf cink cm cole complete conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fixendofline fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap linebreak lm lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode ph preserveindent printheader pvh redrawtime revins ro rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tags tbs textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay |
36 syn keyword vimOption contained allowrevins arabic autowrite backupcopy bdir bin bomb browsedir buftype cedit cindent clipboard cocu compatible consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu lines lmap lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path pheader previewheight printmbcharset pvw regexpengine ri rop runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tagstack tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws | 36 syn keyword vimOption contained allowrevins arabic autowriteall backupext beval bioskey breakindent bsdir cb cfu cinkeys cmdheight colorcolumn completefunc copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fixeol foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu lines lmap lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path pheader previewheight printmbcharset pvw regexpengine ri rop runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tagstack tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws |
37 syn keyword vimOption contained altkeymap arabicshape autowriteall backupdir bdlay binary breakat bs casemap cf cink cm cole complete conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel langnoremap linespace lnr ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe relativenumber rightleft rs sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tal term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww | 37 syn keyword vimOption contained altkeymap arabicshape aw backupskip bex bk breakindentopt bsk cc ch cino cmdwinheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel langnoremap linespace lnr ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe relativenumber rightleft rs sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tal term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww |
38 syn keyword vimOption contained ambiwidth fixeol fixendofline | 38 syn keyword vimOption contained ambiwidth ari awa balloondelay bexpr |
39 | 39 |
40 " vimOptions: These are the turn-off setting variants {{{2 | 40 " vimOptions: These are the turn-off setting variants {{{2 |
41 syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noerrorbells noex nofen nofk nogd nohid nohkmap nohkp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup | 41 syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noerrorbells noex nofen nofixendofline nofkmap nogdefault nohidden nohkmapp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup |
42 syn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobiosk nobl nocf nocindent noconsk nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noeol noesckeys noexpandtab nofic nofkmap nogdefault nohidden nohkmapp nohls noic noignorecase noimc noimd noincsearch noinfercase nois nojs nolbr nolisp noloadplugins nolz nomacatsui nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nosn nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notf notildeop notitle notop nottimeout nottyfast noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows | 42 syn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobiosk nobl nocf nocindent noconsk nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noeol noesckeys noexpandtab nofic nofixeol nofoldenable noguipty nohk nohkp noic noignorecase noimc noimd noincsearch noinfercase nois nojs nolbr nolisp noloadplugins nolz nomacatsui nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nosn nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notf notildeop notitle notop nottimeout nottyfast noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows |
43 syn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobioskey nobomb noci nocompatible noconskey nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noequalalways noet noexrc nofileignorecase nofoldenable noguipty nohk nofixeol nofixendofline | 43 syn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobioskey nobomb noci nocompatible noconskey nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noequalalways noet noexrc nofileignorecase nofk nogd nohid nohkmap nohls |
44 | 44 |
45 " vimOptions: These are the invertible variants {{{2 | 45 " vimOptions: These are the invertible variants {{{2 |
46 syn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbuflisted invcin invconfirm invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invendofline inverrorbells invex invfen invfk invgd invhid invhkmap invhkp invhlsearch invicon invim invimcmdline invimdisable invinf invinsertmode invjoinspaces invlazyredraw invlinebreak invlist invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshortname invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbi invtbs invterse invtextmode invtgst invtimeout invto invtr invttybuiltin invtx invundofile invvisualbell invwarn invweirdinvert invwfw invwildignorecase invwinfixheight invwiv invwrap invwrite invwritebackup | 46 syn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbuflisted invcin invconfirm invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invendofline inverrorbells invex invfen invfixendofline invfkmap invgdefault invhidden invhkmapp invhlsearch invicon invim invimcmdline invimdisable invinf invinsertmode invjoinspaces invlazyredraw invlinebreak invlist invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshortname invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbi invtbs invterse invtextmode invtgst invtimeout invto invtr invttybuiltin invtx invundofile invvisualbell invwarn invweirdinvert invwfw invwildignorecase invwinfixheight invwiv invwrap invwrite invwritebackup |
47 syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbiosk invbl invcf invcindent invconsk invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible inveol invesckeys invexpandtab invfic invfkmap invgdefault invhidden invhkmapp invhls invic invignorecase invimc invimd invincsearch invinfercase invis invjs invlbr invlisp invloadplugins invlz invmacatsui invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invsn invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtf invtildeop invtitle invtop invttimeout invttyfast invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws | 47 syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbiosk invbl invcf invcindent invconsk invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible inveol invesckeys invexpandtab invfic invfixeol invfoldenable invguipty invhk invhkp invic invignorecase invimc invimd invincsearch invinfercase invis invjs invlbr invlisp invloadplugins invlz invmacatsui invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invsn invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtf invtildeop invtitle invtop invttimeout invttyfast invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws |
48 syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invci invcompatible invconskey invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfoldenable invguipty invhk | 48 syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invci invcompatible invconskey invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfk invgd invhid invhkmap invhls |
49 | 49 |
50 " termcap codes (which can also be set) {{{2 | 50 " termcap codes (which can also be set) {{{2 |
51 syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_da t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xn t_xs t_ZH t_ZR | 51 syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RB t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_SR t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xn t_xs t_ZH t_ZR |
52 syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs t_CS | 52 syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs t_CS t_da t_dl |
53 syn match vimOption contained "t_%1" | 53 syn match vimOption contained "t_%1" |
54 syn match vimOption contained "t_#2" | 54 syn match vimOption contained "t_#2" |
55 syn match vimOption contained "t_#4" | 55 syn match vimOption contained "t_#4" |
56 syn match vimOption contained "t_@7" | 56 syn match vimOption contained "t_@7" |
57 syn match vimOption contained "t_*7" | 57 syn match vimOption contained "t_*7" |
62 " unsupported settings: these are supported by vi but don't do anything in vim {{{2 | 62 " unsupported settings: these are supported by vi but don't do anything in vim {{{2 |
63 syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 | 63 syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 |
64 | 64 |
65 " AutoCmd Events {{{2 | 65 " AutoCmd Events {{{2 |
66 syn case ignore | 66 syn case ignore |
67 syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdUndefined CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave | 67 syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdUndefined CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup OptionSet QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave |
68 | 68 |
69 " Highlight commonly used Groupnames {{{2 | 69 " Highlight commonly used Groupnames {{{2 |
70 syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo | 70 syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo |
71 | 71 |
72 " Default highlighting groups {{{2 | 72 " Default highlighting groups {{{2 |
73 syn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC TabLine TabLineFill TabLineSel Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu | 73 syn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC TabLine TabLineFill TabLineSel Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu |
74 syn match vimHLGroup contained "Conceal" | 74 syn match vimHLGroup contained "Conceal" |
75 syn case match | 75 syn case match |
76 | 76 |
77 " Function Names {{{2 | 77 " Function Names {{{2 |
78 syn keyword vimFuncName contained abs and argidx asin browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy glob2regpat has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matcharg matchlist min mzeval or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setline setpos settabvar sha256 simplify sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack systemlist tabpagenr tagfiles tan tempname toupper trunc undofile uniq virtcol wildmenumode wincol winline winrestcmd winsaveview writefile | 78 syn keyword vimFuncName contained abs and argidx asin browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdline getcmdwintype getfontname getftime getloclist getpos getregtype getwinposx glob has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime luaeval mapcheck matchaddpos matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcharsearch setloclist setqflist settabwinvar shellescape sin soundfold split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack systemlist tabpagenr tagfiles tan tempname toupper trunc undofile uniq virtcol wildmenumode wincol winline winrestcmd winsaveview writefile |
79 syn keyword vimFuncName contained acos append arglistid atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getcwd getfsize getline getpid getreg gettabwinvar getwinvar globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setloclist setqflist settabwinvar shellescape sin soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree values visualmode winbufnr winheight winnr winrestview winwidth xor | 79 syn keyword vimFuncName contained acos append arglistid atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdpos getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy glob2regpat has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matcharg matchlist min mzeval or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setmatches setreg setwinvar shiftwidth sinh spellbadword sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree values visualmode winbufnr winheight winnr winrestview winwidth xor |
80 syn keyword vimFuncName contained add argc argv atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exepath expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcmdwintype getfontname getftime getloclist getpos getregtype getwinposx glob has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime luaeval mapcheck matchaddpos matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcmdpos setmatches setreg setwinvar shiftwidth sinh | 80 syn keyword vimFuncName contained add argc argv atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exepath expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcharsearch getcmdtype getcwd getfsize getline getpid getreg gettabwinvar getwinvar globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setline setpos settabvar sha256 simplify sort spellsuggest |
81 | 81 |
82 "--- syntax here and above generated by mkvimvim --- | 82 "--- syntax here and above generated by mkvimvim --- |
83 " Special Vim Highlighting (not automatic) {{{1 | 83 " Special Vim Highlighting (not automatic) {{{1 |
84 | |
85 " Set up folding commands | |
86 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ '[aflmpPrt]' | |
87 if g:vimsyn_folding =~ 'a' | |
88 com! -nargs=* VimFolda <args> fold | |
89 else | |
90 com! -nargs=* VimFolda <args> | |
91 endif | |
92 if g:vimsyn_folding =~ 'f' | |
93 com! -nargs=* VimFoldf <args> fold | |
94 else | |
95 com! -nargs=* VimFoldf <args> | |
96 endif | |
97 if g:vimsyn_folding =~ 'l' | |
98 com! -nargs=* VimFoldl <args> fold | |
99 else | |
100 com! -nargs=* VimFoldl <args> | |
101 endif | |
102 if g:vimsyn_folding =~ 'm' | |
103 com! -nargs=* VimFoldm <args> fold | |
104 else | |
105 com! -nargs=* VimFoldm <args> | |
106 endif | |
107 if g:vimsyn_folding =~ 'p' | |
108 com! -nargs=* VimFoldp <args> fold | |
109 else | |
110 com! -nargs=* VimFoldp <args> | |
111 endif | |
112 if g:vimsyn_folding =~ 'P' | |
113 com! -nargs=* VimFoldP <args> fold | |
114 else | |
115 com! -nargs=* VimFoldP <args> | |
116 endif | |
117 if g:vimsyn_folding =~ 'r' | |
118 com! -nargs=* VimFoldr <args> fold | |
119 else | |
120 com! -nargs=* VimFoldr <args> | |
121 endif | |
122 if g:vimsyn_folding =~ 't' | |
123 com! -nargs=* VimFoldt <args> fold | |
124 else | |
125 com! -nargs=* VimFoldt <args> | |
126 endif | |
127 else | |
128 com! -nargs=* VimFolda <args> | |
129 com! -nargs=* VimFoldf <args> | |
130 com! -nargs=* VimFoldl <args> | |
131 com! -nargs=* VimFoldm <args> | |
132 com! -nargs=* VimFoldp <args> | |
133 com! -nargs=* VimFoldP <args> | |
134 com! -nargs=* VimFoldr <args> | |
135 com! -nargs=* VimFoldt <args> | |
136 endif | |
84 | 137 |
85 " commands not picked up by the generator (due to non-standard format) | 138 " commands not picked up by the generator (due to non-standard format) |
86 syn keyword vimCommand contained py3 | 139 syn keyword vimCommand contained py3 |
87 | 140 |
88 " Deprecated variable options {{{2 | 141 " Deprecated variable options {{{2 |
102 syn match vimNumber "-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand | 155 syn match vimNumber "-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand |
103 syn match vimNumber "\<0[xX]\x\+" | 156 syn match vimNumber "\<0[xX]\x\+" |
104 syn match vimNumber "\%(^\|[^a-zA-Z]\)\zs#\x\{6}" | 157 syn match vimNumber "\%(^\|[^a-zA-Z]\)\zs#\x\{6}" |
105 | 158 |
106 " All vimCommands are contained by vimIsCommands. {{{2 | 159 " All vimCommands are contained by vimIsCommands. {{{2 |
107 syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd | 160 syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd |
108 syn match vimIsCommand "\<\h\w*\>" contains=vimCommand | 161 syn match vimIsCommand "\<\h\w*\>" contains=vimCommand |
109 syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" | 162 syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" |
110 syn match vimVar "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>" | 163 syn match vimVar "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>" |
111 syn match vimFBVar contained "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>" | 164 syn match vimFBVar contained "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>" |
112 syn keyword vimCommand contained in | 165 syn keyword vimCommand contained in |
135 syn keyword vimFTOption contained detect indent off on plugin | 188 syn keyword vimFTOption contained detect indent off on plugin |
136 | 189 |
137 " Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2 | 190 " Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2 |
138 " ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking. | 191 " ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking. |
139 syn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue | 192 syn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue |
140 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'a' | 193 VimFolda syn region vimAugroup matchgroup=vimStatement start="\<aug\%[roup]\ze\s\+\%([eE][nN][dD]\>\)\@3<!\h\w*" matchgroup=vimStatement end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList |
141 syn region vimAugroup fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList | 194 syn match vimAugroup "aug\%[roup]!" contains=vimAugroupKey |
142 else | |
143 syn region vimAugroup matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList | |
144 endif | |
145 syn match vimAugroup "aug\%[roup]!" contains=vimAugroupKey | |
146 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror") | 195 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror") |
147 syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>" | 196 syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>" |
148 endif | 197 endif |
149 syn keyword vimAugroupKey contained aug[roup] | 198 syn keyword vimAugroupKey contained aug[roup] |
150 | 199 |
151 " Operators: {{{2 | 200 " Operators: {{{2 |
152 " ========= | 201 " ========= |
202 " COMBAK: vimOperParen used to have "oneline" | |
153 syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue | 203 syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue |
154 syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile | 204 syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile |
155 syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile | 205 syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile |
156 syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup | 206 syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup |
157 syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar | 207 syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar |
158 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror") | 208 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror") |
159 syn match vimOperError ")" | 209 syn match vimOperError ")" |
160 endif | 210 endif |
161 | 211 |
162 " Functions : Tag is provided for those who wish to highlight tagged functions {{{2 | 212 " Functions : Tag is provided for those who wish to highlight tagged functions {{{2 |
163 " ========= | 213 " ========= |
164 syn cluster vimFuncList contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID | 214 syn cluster vimFuncList contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID |
165 syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vimComment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimExecute,vimIf,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimGlobal,vimHighlight,vimIsCommand,vimLet,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand | 215 syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vimComment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimExecute,vimIf,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimHighlight,vimIsCommand,vimLet,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSearch,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand |
166 syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody | 216 syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody |
167 | 217 |
168 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'f' | 218 VimFoldf syn region vimFuncBody contained start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList |
169 syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList | 219 syn match vimFuncVar contained "a:\(\h\w*\|\d\+\)" |
170 else | |
171 syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList | |
172 endif | |
173 syn match vimFuncVar contained "a:\(\K\k*\|\d\+\)" | |
174 syn match vimFuncSID contained "\c<sid>\|\<s:" | 220 syn match vimFuncSID contained "\c<sid>\|\<s:" |
175 syn keyword vimFuncKey contained fu[nction] | 221 syn keyword vimFuncKey contained fu[nction] |
176 syn match vimFuncBlank contained "\s\+" | 222 syn match vimFuncBlank contained "\s\+" |
177 | 223 |
178 syn keyword vimPattern contained start skip end | 224 syn keyword vimPattern contained start skip end |
189 | 235 |
190 " User-Specified Commands: {{{2 | 236 " User-Specified Commands: {{{2 |
191 " ======================= | 237 " ======================= |
192 syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine | 238 syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine |
193 syn keyword vimUserCommand contained com[mand] | 239 syn keyword vimUserCommand contained com[mand] |
194 syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList | 240 syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserCommand,@vimUserCmdList |
195 syn match vimUserAttrbError contained "-\a\+\ze\s" | 241 syn match vimUserAttrb contained "-n\%[args]=[01*?+]" contains=vimUserAttrbKey,vimOper |
196 syn match vimUserAttrb contained "-nargs=[01*?+]" contains=vimUserAttrbKey,vimOper | 242 syn match vimUserAttrb contained "-com\%[plete]=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError |
197 syn match vimUserAttrb contained "-complete=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError | 243 syn match vimUserAttrb contained "-ra\%[nge]\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey |
198 syn match vimUserAttrb contained "-range\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey | 244 syn match vimUserAttrb contained "-cou\%[nt]=\d\+" contains=vimNumber,vimOper,vimUserAttrbKey |
199 syn match vimUserAttrb contained "-count\(=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey | 245 syn match vimUserAttrb contained "-bang\=\>" contains=vimOper,vimUserAttrbKey |
200 syn match vimUserAttrb contained "-bang\>" contains=vimOper,vimUserAttrbKey | 246 syn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey |
201 syn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey | 247 syn match vimUserAttrb contained "-re\%[gister]\>" contains=vimOper,vimUserAttrbKey |
202 syn match vimUserAttrb contained "-buffer\>" contains=vimOper,vimUserAttrbKey | |
203 syn match vimUserAttrb contained "-register\>" contains=vimOper,vimUserAttrbKey | |
204 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") | 248 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") |
205 syn match vimUserCmdError contained "\S\+\>" | 249 syn match vimUserCmdError contained "\S\+\>" |
206 endif | 250 endif |
207 syn case ignore | 251 syn case ignore |
208 syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister] | 252 syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister] |
272 syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst | 316 syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst |
273 syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst | 317 syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst |
274 syn match vimMarkNumber "[-+]\d\+" nextgroup=vimSubst contained contains=vimOper | 318 syn match vimMarkNumber "[-+]\d\+" nextgroup=vimSubst contained contains=vimOper |
275 syn match vimPlainMark contained "'[a-zA-Z0-9]" | 319 syn match vimPlainMark contained "'[a-zA-Z0-9]" |
276 | 320 |
277 syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]' | 321 syn match vimRegister '[^,;[{]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]' |
278 syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]' | 322 syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]' |
279 syn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]' | 323 syn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]' |
280 syn match vimRegister '@"' | 324 syn match vimRegister '@"' |
281 syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]' | 325 syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]' |
282 | 326 |
292 | 336 |
293 " Set command and associated set-options (vimOptions) with comment {{{2 | 337 " Set command and associated set-options (vimOptions) with comment {{{2 |
294 syn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\." end="$" matchgroup=vimNotation end="<[cC][rR]>" keepend oneline contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vimSetString,vimSetMod | 338 syn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\." end="$" matchgroup=vimNotation end="<[cC][rR]>" keepend oneline contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vimSetString,vimSetMod |
295 syn region vimSetEqual contained start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar oneline | 339 syn region vimSetEqual contained start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar oneline |
296 syn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar | 340 syn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar |
297 syn match vimSetSep contained "[,:]" skipwhite nextgroup=vimCommand | 341 syn match vimSetSep contained "[,:]" |
298 syn match vimSetMod contained "&vim\=\|[!&?<]\|all&" | 342 syn match vimSetMod contained "&vim\=\|[!&?<]\|all&" |
299 | 343 |
300 " Let {{{2 | 344 " Let {{{2 |
301 " === | 345 " === |
302 syn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar | 346 syn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar |
327 syn keyword vimMap cm[ap] cno[remap] im[ap] ino[remap] lm[ap] ln[oremap] nm[ap] nn[oremap] no[remap] om[ap] ono[remap] smap snor[emap] vm[ap] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs | 371 syn keyword vimMap cm[ap] cno[remap] im[ap] ino[remap] lm[ap] ln[oremap] nm[ap] nn[oremap] no[remap] om[ap] ono[remap] smap snor[emap] vm[ap] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs |
328 syn keyword vimMap mapc[lear] smapc[lear] | 372 syn keyword vimMap mapc[lear] smapc[lear] |
329 syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs | 373 syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs |
330 syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs | 374 syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs |
331 syn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs | 375 syn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs |
332 syn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|nowait\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs | 376 syn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs |
333 syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend | 377 syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend |
334 syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue | 378 syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimNotation,vimCtrlChar,vimContinue skipnl nextgroup=vimMapRhsExtend |
335 syn case ignore | 379 syn case ignore |
336 syn keyword vimMapModKey contained buffer expr leader localleader nowait plug script sid silent unique | 380 syn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique |
337 syn case match | 381 syn case match |
338 | 382 |
339 " Menus {{{2 | 383 " Menus {{{2 |
340 " ===== | 384 " ===== |
341 syn cluster vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod | 385 syn cluster vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod |
361 syn case match | 405 syn case match |
362 | 406 |
363 " User Function Highlighting {{{2 | 407 " User Function Highlighting {{{2 |
364 " (following Gautam Iyer's suggestion) | 408 " (following Gautam Iyer's suggestion) |
365 " ========================== | 409 " ========================== |
366 syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute | 410 syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute |
367 syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation | 411 syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation |
368 syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" | 412 syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" |
369 | 413 |
370 " Errors And Warnings: {{{2 | 414 " Errors And Warnings: {{{2 |
371 " ==================== | 415 " ==================== |
372 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") | 416 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") |
408 " Syntax: clear {{{2 | 452 " Syntax: clear {{{2 |
409 syn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList | 453 syn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList |
410 | 454 |
411 " Syntax: cluster {{{2 | 455 " Syntax: cluster {{{2 |
412 syn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName | 456 syn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName |
413 syn region vimClusterName contained matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError | 457 syn region vimClusterName contained matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError |
414 syn match vimGroupAdd contained "add=" nextgroup=vimGroupList | 458 syn match vimGroupAdd contained "add=" nextgroup=vimGroupList |
415 syn match vimGroupRem contained "remove=" nextgroup=vimGroupList | 459 syn match vimGroupRem contained "remove=" nextgroup=vimGroupList |
416 syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem | 460 syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem |
417 | 461 |
418 " Syntax: include {{{2 | 462 " Syntax: include {{{2 |
420 syn cluster vimFuncBodyList add=vimSynType | 464 syn cluster vimFuncBodyList add=vimSynType |
421 | 465 |
422 " Syntax: keyword {{{2 | 466 " Syntax: keyword {{{2 |
423 syn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin | 467 syn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin |
424 syn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion | 468 syn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion |
425 syn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup | 469 syn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup |
426 syn match vimSynKeyOpt contained "\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>" | 470 syn match vimSynKeyOpt contained "\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>" |
427 syn cluster vimFuncBodyList add=vimSynType | 471 syn cluster vimFuncBodyList add=vimSynType |
428 | 472 |
429 " Syntax: match {{{2 | 473 " Syntax: match {{{2 |
430 syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation | 474 syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation |
431 syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion | 475 syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion |
432 syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup | 476 syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\h\w*" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup |
433 syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" | 477 syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" |
434 if has("conceal") | 478 if has("conceal") |
435 syn match vimSynMtchOpt contained "\<cchar=" nextgroup=vimSynMtchCchar | 479 syn match vimSynMtchOpt contained "\<cchar=" nextgroup=vimSynMtchCchar |
436 syn match vimSynMtchCchar contained "\S" | 480 syn match vimSynMtchCchar contained "\S" |
437 endif | 481 endif |
442 | 486 |
443 " Syntax: region {{{2 | 487 " Syntax: region {{{2 |
444 syn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation | 488 syn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation |
445 syn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp | 489 syn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp |
446 syn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion | 490 syn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion |
447 syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup | 491 syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup |
448 syn match vimSynRegOpt contained "\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>" | 492 syn match vimSynRegOpt contained "\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>" |
449 syn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat | 493 syn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat |
450 syn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup | 494 syn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup |
451 syn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg | 495 syn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg |
452 syn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=" | 496 syn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=" |
468 syn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName | 512 syn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName |
469 syn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg | 513 syn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg |
470 syn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber | 514 syn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber |
471 syn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat | 515 syn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat |
472 syn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber | 516 syn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber |
473 syn match vimSyncGroupName contained "\k\+" skipwhite nextgroup=vimSyncKey | 517 syn match vimSyncGroupName contained "\h\w*" skipwhite nextgroup=vimSyncKey |
474 syn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup | 518 syn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup |
475 syn match vimSyncGroup contained "\k\+" skipwhite nextgroup=vimSynRegPat,vimSyncNone | 519 syn match vimSyncGroup contained "\h\w*" skipwhite nextgroup=vimSynRegPat,vimSyncNone |
476 syn keyword vimSyncNone contained NONE | 520 syn keyword vimSyncNone contained NONE |
477 | 521 |
478 " Additional IsCommand, here by reasons of precedence {{{2 | 522 " Additional IsCommand, here by reasons of precedence {{{2 |
479 " ==================== | 523 " ==================== |
480 syn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation | 524 syn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation |
551 " lua | 595 " lua |
552 | 596 |
553 " Allows users to specify the type of embedded script highlighting | 597 " Allows users to specify the type of embedded script highlighting |
554 " they want: (perl/python/ruby/tcl support) | 598 " they want: (perl/python/ruby/tcl support) |
555 " g:vimsyn_embed == 0 : don't embed any scripts | 599 " g:vimsyn_embed == 0 : don't embed any scripts |
556 " g:vimsyn_embed =~ 'l' : embed lua (but only if vim supports it) | 600 " g:vimsyn_embed ~= 'l' : embed lua (but only if vim supports it) |
557 " g:vimsyn_embed =~ 'm' : embed mzscheme (but only if vim supports it) | 601 " g:vimsyn_embed ~= 'm' : embed mzscheme (but only if vim supports it) |
558 " g:vimsyn_embed =~ 'p' : embed perl (but only if vim supports it) | 602 " g:vimsyn_embed ~= 'p' : embed perl (but only if vim supports it) |
559 " g:vimsyn_embed =~ 'P' : embed python (but only if vim supports it) | 603 " g:vimsyn_embed ~= 'P' : embed python (but only if vim supports it) |
560 " g:vimsyn_embed =~ 'r' : embed ruby (but only if vim supports it) | 604 " g:vimsyn_embed ~= 'r' : embed ruby (but only if vim supports it) |
561 " g:vimsyn_embed =~ 't' : embed tcl (but only if vim supports it) | 605 " g:vimsyn_embed ~= 't' : embed tcl (but only if vim supports it) |
606 if !exists("g:vimsyn_embed") | |
607 let g:vimsyn_embed= "lmpPr" | |
608 endif | |
609 | |
610 " [-- lua --] {{{3 | |
611 let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim") | |
612 if !filereadable(s:luapath) | |
613 for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n") | |
614 if filereadable(fnameescape(s:luapath)) | |
615 let s:luapath= fnameescape(s:luapath) | |
616 break | |
617 endif | |
618 endfor | |
619 endif | |
620 if (g:vimsyn_embed =~ 'l' && has("lua")) && filereadable(s:luapath) | |
621 unlet! b:current_syntax | |
622 exe "syn include @vimLuaScript ".s:luapath | |
623 VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript | |
624 VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript | |
625 syn cluster vimFuncBodyList add=vimLuaRegion | |
626 else | |
627 syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
628 syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+ | |
629 endif | |
630 unlet s:luapath | |
631 | |
632 " [-- perl --] {{{3 | |
633 let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim") | |
634 if !filereadable(s:perlpath) | |
635 for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n") | |
636 if filereadable(fnameescape(s:perlpath)) | |
637 let s:perlpath= fnameescape(s:perlpath) | |
638 break | |
639 endif | |
640 endfor | |
641 endif | |
642 if (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath) | |
643 unlet! b:current_syntax | |
644 exe "syn include @vimPerlScript ".s:perlpath | |
645 VimFoldp syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript | |
646 VimFoldp syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript | |
647 syn cluster vimFuncBodyList add=vimPerlRegion | |
648 else | |
649 syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
650 syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ | |
651 endif | |
652 unlet s:perlpath | |
653 | |
654 " [-- ruby --] {{{3 | |
655 let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim") | |
656 if !filereadable(s:rubypath) | |
657 for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n") | |
658 if filereadable(fnameescape(s:rubypath)) | |
659 let s:rubypath= fnameescape(s:rubypath) | |
660 break | |
661 endif | |
662 endfor | |
663 endif | |
664 if (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath) | |
665 unlet! b:current_syntax | |
666 exe "syn include @vimRubyScript ".s:rubypath | |
667 VimFoldr syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript | |
668 syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript | |
669 syn cluster vimFuncBodyList add=vimRubyRegion | |
670 else | |
671 syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
672 syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+ | |
673 endif | |
674 unlet s:rubypath | |
675 | |
676 " [-- python --] {{{3 | |
677 let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim") | |
678 if !filereadable(s:pythonpath) | |
679 for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n") | |
680 if filereadable(fnameescape(s:pythonpath)) | |
681 let s:pythonpath= fnameescape(s:pythonpath) | |
682 break | |
683 endif | |
684 endfor | |
685 endif | |
686 if g:vimsyn_embed =~ 'P' && (has("python") || has("python3")) && filereadable(s:pythonpath) | |
687 unlet! b:current_syntax | |
688 exe "syn include @vimPythonScript ".s:pythonpath | |
689 VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript | |
690 VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript | |
691 syn cluster vimFuncBodyList add=vimPythonRegion | |
692 else | |
693 syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
694 syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ | |
695 endif | |
696 unlet s:pythonpath | |
697 | |
698 " [-- tcl --] {{{3 | |
562 if has("win32") || has("win95") || has("win64") || has("win16") | 699 if has("win32") || has("win95") || has("win64") || has("win16") |
563 " apparently has("tcl") has been hanging vim on some windows systems with cygwin | 700 " apparently has("tcl") has been hanging vim on some windows systems with cygwin |
564 let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$') | 701 let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$') |
565 else | 702 else |
566 let s:trytcl= 1 | 703 let s:trytcl= 1 |
567 endif | 704 endif |
568 if !exists("g:vimsyn_embed") | |
569 " for default g:vimsyn_embed, determine what to allow based on whether this vim supports it | |
570 let g:vimsyn_embed= "" | |
571 if has("lua") |let g:vimsyn_embed= g:vimsyn_embed."l"|endif | |
572 if has("mzscheme") |let g:vimsyn_embed= g:vimsyn_embed."m"|endif | |
573 if has("perl") |let g:vimsyn_embed= g:vimsyn_embed."p"|endif | |
574 if has("python") |let g:vimsyn_embed= g:vimsyn_embed."P" | |
575 elseif has("python3")|let g:vimsyn_embed= g:vimsyn_embed."P"|endif | |
576 if has("ruby") |let g:vimsyn_embed= g:vimsyn_embed."r"|endif | |
577 if s:trytcl | |
578 if has("tcl") |let g:vimsyn_embed= g:vimsyn_embed."t"|endif | |
579 endif | |
580 endif | |
581 | |
582 " [-- lua --] {{{3 | |
583 let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim") | |
584 if !filereadable(s:luapath) | |
585 for luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n") | |
586 if filereadable(luapath) | |
587 let s:luapath= fnameescape(luapath) | |
588 break | |
589 endif | |
590 endfor | |
591 endif | |
592 if g:vimsyn_embed =~ 'l' && has("lua") && filereadable(s:luapath) | |
593 unlet! b:current_syntax | |
594 exe "syn include @vimLuaScript ".s:luapath | |
595 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'l' | |
596 syn region vimLuaRegion fold matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript | |
597 syn region vimLuaRegion fold matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript | |
598 else | |
599 syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript | |
600 syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript | |
601 endif | |
602 syn cluster vimFuncBodyList add=vimLuaRegion | |
603 else | |
604 syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
605 syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+ | |
606 endif | |
607 unlet s:luapath | |
608 | |
609 " [-- perl --] {{{3 | |
610 let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim") | |
611 if !filereadable(s:perlpath) | |
612 for perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n") | |
613 if filereadable(fnameescape(perlpath)) | |
614 let s:perlpath= fnameescape(perlpath) | |
615 break | |
616 endif | |
617 endfor | |
618 endif | |
619 if g:vimsyn_embed =~ 'p' && has("perl") && filereadable(s:perlpath) | |
620 unlet! b:current_syntax | |
621 exe "syn include @vimPerlScript ".s:perlpath | |
622 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p' | |
623 syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript | |
624 syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript | |
625 else | |
626 syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript | |
627 syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript | |
628 endif | |
629 syn cluster vimFuncBodyList add=vimPerlRegion | |
630 else | |
631 syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
632 syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ | |
633 endif | |
634 unlet s:perlpath | |
635 | |
636 " [-- ruby --] {{{3 | |
637 let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim") | |
638 if !filereadable(s:rubypath) | |
639 for rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n") | |
640 if filereadable(fnameescape(rubypath)) | |
641 let s:rubypath= fnameescape(rubypath) | |
642 break | |
643 endif | |
644 endfor | |
645 endif | |
646 if g:vimsyn_embed =~ 'r' && has("ruby") && filereadable(s:rubypath) | |
647 unlet! b:current_syntax | |
648 exe "syn include @vimRubyScript ".s:rubypath | |
649 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r' | |
650 syn region vimRubyRegion fold matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript | |
651 else | |
652 syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript | |
653 endif | |
654 syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript | |
655 syn cluster vimFuncBodyList add=vimRubyRegion | |
656 else | |
657 syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
658 syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+ | |
659 endif | |
660 unlet s:rubypath | |
661 | |
662 " [-- python --] {{{3 | |
663 let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim") | |
664 if !filereadable(s:pythonpath) | |
665 for pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n") | |
666 if filereadable(fnameescape(pythonpath)) | |
667 let s:pythonpath= fnameescape(pythonpath) | |
668 break | |
669 endif | |
670 endfor | |
671 endif | |
672 if g:vimsyn_embed =~ 'P' && (has("python") || has("python3")) && filereadable(s:pythonpath) | |
673 unlet! b:current_syntax | |
674 exe "syn include @vimPythonScript ".s:pythonpath | |
675 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P' | |
676 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript | |
677 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript | |
678 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript | |
679 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript | |
680 else | |
681 syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript | |
682 syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript | |
683 syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript | |
684 syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript | |
685 endif | |
686 syn cluster vimFuncBodyList add=vimPythonRegion | |
687 else | |
688 syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
689 syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ | |
690 syn region vimEmbedError start=+Py\%[thon]2or3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ | |
691 syn region vimEmbedError start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ | |
692 endif | |
693 unlet s:pythonpath | |
694 | |
695 " [-- tcl --] {{{3 | |
696 if s:trytcl | 705 if s:trytcl |
697 let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim") | 706 let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim") |
698 if !filereadable(s:tclpath) | 707 if !filereadable(s:tclpath) |
699 for tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n") | 708 for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n") |
700 if filereadable(fnameescape(tclpath)) | 709 if filereadable(fnameescape(s:tclpath)) |
701 let s:tclpath= fnameescape(tclpath) | 710 let s:tclpath= fnameescape(s:tclpath) |
702 break | 711 break |
703 endif | 712 endif |
704 endfor | 713 endfor |
705 endif | 714 endif |
706 if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath) | 715 if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath) |
707 unlet! b:current_syntax | 716 unlet! b:current_syntax |
708 exe "syn include @vimTclScript ".s:tclpath | 717 exe "syn include @vimTclScript ".s:tclpath |
709 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 't' | 718 VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript |
710 syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript | 719 VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript |
711 syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript | |
712 else | |
713 syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript | |
714 syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript | |
715 endif | |
716 syn cluster vimFuncBodyList add=vimTclScript | 720 syn cluster vimFuncBodyList add=vimTclScript |
717 else | 721 else |
718 syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ | 722 syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ |
719 syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ | 723 syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ |
720 endif | 724 endif |
726 unlet s:trytcl | 730 unlet s:trytcl |
727 | 731 |
728 " [-- mzscheme --] {{{3 | 732 " [-- mzscheme --] {{{3 |
729 let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim") | 733 let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim") |
730 if !filereadable(s:mzschemepath) | 734 if !filereadable(s:mzschemepath) |
731 for mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n") | 735 for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n") |
732 if filereadable(fnameescape(mzschemepath)) | 736 if filereadable(fnameescape(s:mzschemepath)) |
733 let s:mzschemepath= fnameescape(mzschemepath) | 737 let s:mzschemepath= fnameescape(s:mzschemepath) |
734 break | 738 break |
735 endif | 739 endif |
736 endfor | 740 endfor |
737 endif | 741 endif |
738 if (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath) | 742 if (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath) |
739 unlet! b:current_syntax | 743 unlet! b:current_syntax |
740 let iskKeep= &isk | 744 let iskKeep= &isk |
741 exe "syn include @vimMzSchemeScript ".s:mzschemepath | 745 exe "syn include @vimMzSchemeScript ".s:mzschemepath |
742 let &isk= iskKeep | 746 let &isk= iskKeep |
743 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'm' | 747 VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript |
744 syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript | 748 VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript |
745 syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript | |
746 else | |
747 syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript | |
748 syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript | |
749 endif | |
750 syn cluster vimFuncBodyList add=vimMzSchemeRegion | 749 syn cluster vimFuncBodyList add=vimMzSchemeRegion |
751 else | 750 else |
752 syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ | 751 syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ |
753 syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ | 752 syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ |
754 endif | 753 endif |
768 syn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]" | 767 syn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]" |
769 | 768 |
770 " ==================== | 769 " ==================== |
771 " Highlighting Settings {{{2 | 770 " Highlighting Settings {{{2 |
772 " ==================== | 771 " ==================== |
772 | |
773 | 773 |
774 if !exists("g:vimsyn_noerror") | 774 if !exists("g:vimsyn_noerror") |
775 hi def link vimBehaveError vimError | 775 hi def link vimBehaveError vimError |
776 hi def link vimCollClassErr vimError | 776 hi def link vimCollClassErr vimError |
777 hi def link vimErrSetting vimError | 777 hi def link vimErrSetting vimError |
789 hi def link vimBufnrWarn vimWarn | 789 hi def link vimBufnrWarn vimWarn |
790 endif | 790 endif |
791 | 791 |
792 hi def link vimAbb vimCommand | 792 hi def link vimAbb vimCommand |
793 hi def link vimAddress vimMark | 793 hi def link vimAddress vimMark |
794 hi def link vimAugroupError vimError | |
794 hi def link vimAugroupKey vimCommand | 795 hi def link vimAugroupKey vimCommand |
795 hi def link vimAuHighlight vimHighlight | 796 hi def link vimAuHighlight vimHighlight |
796 hi def link vimAutoCmdOpt vimOption | 797 hi def link vimAutoCmdOpt vimOption |
797 hi def link vimAutoCmd vimCommand | 798 hi def link vimAutoCmd vimCommand |
798 hi def link vimAutoEvent Type | 799 hi def link vimAutoEvent Type |
922 hi def link vimUnmap vimMap | 923 hi def link vimUnmap vimMap |
923 hi def link vimUserAttrbCmpltFunc Special | 924 hi def link vimUserAttrbCmpltFunc Special |
924 hi def link vimUserAttrbCmplt vimSpecial | 925 hi def link vimUserAttrbCmplt vimSpecial |
925 hi def link vimUserAttrbKey vimOption | 926 hi def link vimUserAttrbKey vimOption |
926 hi def link vimUserAttrb vimSpecial | 927 hi def link vimUserAttrb vimSpecial |
927 hi def link vimUserAttrbError Error | |
928 hi def link vimUserCmdError Error | 928 hi def link vimUserCmdError Error |
929 hi def link vimUserCommand vimCommand | 929 hi def link vimUserCommand vimCommand |
930 hi def link vimUserFunc Normal | 930 hi def link vimUserFunc Normal |
931 hi def link vimVar Identifier | 931 hi def link vimVar Identifier |
932 hi def link vimWarn WarningMsg | 932 hi def link vimWarn WarningMsg |
934 " Current Syntax Variable: {{{2 | 934 " Current Syntax Variable: {{{2 |
935 let b:current_syntax = "vim" | 935 let b:current_syntax = "vim" |
936 | 936 |
937 " --------------------------------------------------------------------- | 937 " --------------------------------------------------------------------- |
938 " Cleanup: {{{1 | 938 " Cleanup: {{{1 |
939 delc VimFolda | |
940 delc VimFoldf | |
941 delc VimFoldl | |
942 delc VimFoldm | |
943 delc VimFoldp | |
944 delc VimFoldP | |
945 delc VimFoldr | |
946 delc VimFoldt | |
939 let &cpo = s:keepcpo | 947 let &cpo = s:keepcpo |
940 unlet s:keepcpo | 948 unlet s:keepcpo |
941 " vim:ts=18 fdm=marker | 949 " vim:ts=18 fdm=marker |