xref: /vim-8.2.3635/runtime/syntax/vim.vim (revision e4a3bcf2)
1071d4279SBram Moolenaar" Vim syntax file
27cba6c06SBram Moolenaar" Language:	Vim 7.4 script
37cba6c06SBram Moolenaar" Maintainer:	Charles E. Campbell <[email protected]>
4*e4a3bcf2SBram Moolenaar" Last Change:	August 26, 2016
5*e4a3bcf2SBram Moolenaar" Version:	7.4-52
6071d4279SBram Moolenaar" Automatically generated keyword lists: {{{1
7071d4279SBram Moolenaar
8071d4279SBram Moolenaar" Quit when a syntax file was already loaded {{{2
9071d4279SBram Moolenaarif exists("b:current_syntax")
10071d4279SBram Moolenaar  finish
11071d4279SBram Moolenaarendif
126be7f873SBram Moolenaarlet s:keepcpo= &cpo
136be7f873SBram Moolenaarset cpo&vim
14071d4279SBram Moolenaar
15071d4279SBram Moolenaar" vimTodo: contains common special-notices for comments {{{2
16071d4279SBram Moolenaar" Use the vimCommentGroup cluster to add your own.
17e2719096SBram Moolenaarsyn keyword vimTodo contained	COMBAK	FIXME	TODO	XXX
18217ad920SBram Moolenaarsyn cluster vimCommentGroup	contains=vimTodo,@Spell
19071d4279SBram Moolenaar
20071d4279SBram Moolenaar" regular vim commands {{{2
21*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	a arga[dd] argu[ment] bad[d] bn[ext] breakd[el] bw[ipeout] cadde[xpr] cc cf[ile] changes cla[st] cnf[ile] comp[iler] cq[uit] cw[indow] delep dell diffg[et] dig[raphs] doau ea el[se] endt[ry] f[ile] fina[lly] foldd[oopen] go[to] ha[rdcopy] hid[e] ij[ump] isp[lit] keepa l[ist] lat lcl[ose] lex[pr] lgetb[uffer] lhi[story] lmapc[lear] loadk lop[en] lt[ag] lvimgrepa[dd] marks mk[exrc] mod[e] nbc[lose] noautocmd nu[mber] opt[ions] pc[lose] popu[p] prof[ile] ptN[ext] ptn[ext] pw[d] pyf[ile] r[ead] redraws[tatus] rew[ind] rubyd[o] sIc sIp san[dbox] sbf[irst] sbr[ewind] sci scs setl[ocal] sgc sgp sie sin sm[agic] sn[ext] sor[t] spellr[epall] srI srl star[tinsert] sts[elect] sv[iew] syncbind tab tabf[ind] tabnew tags tf[irst] tn[ext] ts[elect] undol[ist] up[date] vi[sual] vmapc[lear] wa[ll] winp[os] ws[verb] xmapc[lear] xprop
22*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	ab argd[elete] as[cii] bd[elete] bo[tright] breakl[ist] cN[ext] caddf[ile] ccl[ose] cfdo chd[ir] cle[arjumps] co[py] con[tinue] cr[ewind] d[elete] deletel delm[arks] diffo[ff] dir dp earlier elsei[f] endw[hile] files fini[sh] folddoc[losed] gr[ep] helpc[lose] his[tory] il[ist] iuna[bbrev] keepalt la[st] later lcs lf[ile] lgete[xpr] ll lne[xt] loadkeymap lp[revious] lua lw[indow] mat[ch] mks[ession] mz[scheme] nbs[tart] noh[lsearch] o[pen] ownsyntax pe[rl] pp[op] profd[el] pta[g] ptp[revious] py3 python3 rec[over] reg[isters] ri[ght] rubyf[ile] sIe sIr sav[eas] sbl[ast] sc scl scscope sf[ind] sge sgr sig sip sm[ap] sno[magic] sp[lit] spellu[ndo] src srn startg[replace] sun[hide] sw[apname] syntime tabN[ext] tabfir[st] tabo[nly] tc[l] th[row] to[pleft] tu[nmenu] unh[ide] v vie[w] vne[w] wh[ile] wn[ext] wundo xme xunme
23*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	abc[lear] argdo au bel[owright] bp[revious] bro[wse] cNf[ile] cal[l] cd cfir[st] che[ckpath] clo[se] col[der] conf[irm] cs debug deletep delp diffp[atch] dj[ump] dr[op] ec em[enu] ene[w] filet fir[st] foldo[pen] grepa[dd] helpf[ind] i imapc[lear] j[oin] keepj[umps] lad[dexpr] lb[uffer] lcscope lfdo lgr[ep] lla[st] lnew[er] loc[kmarks] lpf[ile] luado m[ove] menut[ranslate] mksp[ell] mzf[ile] new nor ol[dfiles] p[rint] ped[it] pre[serve] promptf[ind] ptf[irst] ptr[ewind] py3do q[uit] red[o] res[ize] rightb[elow] rundo sIg sN[ext] sbN[ext] sbm[odified] scI scp se[t] sfir[st] sgi sh[ell] sign sir sme snoreme spe[llgood] spellw[rong] sre[wind] srp startr[eplace] sunme sy t tabc[lose] tabl[ast] tabp[revious] tcld[o] tj[ump] tp[revious] u[ndo] unl ve[rsion] vim[grep] vs[plit] win[size] wp[revious] wv[iminfo] xmenu xunmenu
24*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	abo[veleft] arge[dit] bN[ext] bf[irst] br[ewind] bufdo c[hange] cat[ch] cdo cg[etfile] checkt[ime] cmapc[lear] colo[rscheme] cope[n] cscope debugg[reedy] deletl dep diffpu[t] dl ds[earch] echoe[rr] en[dif] ex filetype fix[del] for gui helpg[rep] ia in ju[mps] keepp[atterns] laddb[uffer] lbo[ttom] ld[o] lfir[st] lgrepa[dd] lli[st] lnf[ile] lockv[ar] lr[ewind] luafile ma[rk] mes mkv[imrc] n[ext] nmapc[lear] nore omapc[lear] pa[ckadd] perld[o] prev[ious] promptr[epl] ptj[ump] pts[elect] py[thon] qa[ll] redi[r] ret[ab] ru[ntime] rv[iminfo] sIl sa[rgument] sb[uffer] sbn[ext] sce scr[iptnames] setf[iletype] sg sgl si sil[ent] sl[eep] smenu snoremenu spelld[ump] spr[evious] srg st[op] stj[ump] sunmenu syn tN[ext] tabd[o] tabm[ove] tabr[ewind] tclf[ile] tl[ast] tr[ewind] una[bbreviate] unlo[ckvar] verb[ose] vimgrepa[dd] wN[ext] winc[md] wq x[it] xnoreme xwininfo
25*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	al[l] argg[lobal] b[uffer] bl[ast] brea[k] buffers cabc[lear] cb[uffer] ce[nter] cgetb[uffer] chi[story] cn[ext] com cp[revious] cstag delc[ommand] deletp di[splay] diffs[plit] dli[st] dsp[lit] echom[sg] endf[unction] exi[t] filt[er] fo[ld] fu[nction] gvim helpt[ags] iabc[lear] intro k lN[ext] laddf[ile] lc[d] le[ft] lg[etfile] lh[elpgrep] lmak[e] lo[adview] lol[der] ls lv[imgrep] mak[e] messages mkvie[w] nb[key] noa nos[wapfile] on[ly] packl[oadall] po[p] pro ps[earch] ptl[ast] pu[t] pydo quita[ll] redr[aw] retu[rn] rub[y] sI sIn sal[l] sba[ll] sbp[revious] scg scripte[ncoding] setg[lobal] sgI sgn sic sim[alt] sla[st] smile so[urce] spelli[nfo] sr sri sta[g] stopi[nsert] sus[pend] sync ta[g] tabe[dit] tabn[ext] tabs te[aroff] tm[enu] try undoj[oin] uns[ilent] vert[ical] viu[sage] w[rite] windo wqa[ll] xa[ll] xnoremenu y[ank]
26*e4a3bcf2SBram Moolenaarsyn keyword vimCommand contained	ar[gs] argl[ocal] ba[ll] bm[odified] breaka[dd] bun[load] cad[dbuffer] cbo[ttom] cex[pr] cgete[xpr] cl[ist] cnew[er] comc[lear] cpf[ile] cuna[bbrev] delel delf[unction] dif[fupdate] difft[his] do e[dit] echon endfo[r] exu[sage] fin[d] foldc[lose] g h[elp] hi if is[earch] kee[pmarks] lNf[ile] lan[guage] lch[dir] lefta[bove]
27e2719096SBram Moolenaarsyn match   vimCommand contained	"\<z[-+^.=]\=\>"
28a6878375SBram Moolenaarsyn keyword vimStdPlugin contained	DiffOrig Man N[ext] P[rint] S TOhtml XMLent XMLns
29071d4279SBram Moolenaar
30071d4279SBram Moolenaar" vimOptions are caught only when contained in a vimSet {{{2
31*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	acd ambw arshape background ballooneval bg bomb bs cb ch cinoptions cms commentstring copyindent cscopepathcomp csprg cursorbind delcombine diffopt ea efm 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 ma matchtime mco ml modeline mousefocus mousetime nrformats ofu packpath path ph pp printfont pumheight rdt renderoptions rl ru sbo scrollbind secure shcf shelltemp shortmess showtabline sj smd spell splitbelow ssl stl sw sxe tabpagemax tags tbs termguicolors tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan
32*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	ai anti autochdir backspace balloonexpr bh breakat bsdir cc charconvert cinw co compatible cot cscopeprg csqf cursorcolumn dex digraph ead ei 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 macatsui maxcombine mef mls modelines mousehide mp nu omnifunc para pdev pheader preserveindent printheader pvh re report rlc rubydll sbr scrolljump sel shell shelltype shortname shq slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tagstack tc terse thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write
33*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	akm antialias autoindent backup bdir bin breakindent bsk ccv ci cinwords cocu complete cp cscopequickfix csre cursorline dg dip eadirection ek 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 magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paragraphs penc pi previewheight printmbcharset pvw readonly restorescreen rnu ruf sc scrolloff selection shellcmdflag shellxescape showbreak si sm so spellfile spr st sts swapsync syn tag tal tcldll textauto tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany
34*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	al ar autoread backupcopy bdlay binary breakindentopt bt cd cin clipboard cole completefunc cpo cscoperelative cst cwh dict dir eb emo 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 makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc paste perldll pm previewwindow printmbfont pythondll redrawtime revins ro ruler scb scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tb tenc textmode timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup
35*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	aleph arab autowrite backupdir belloff bk bri bufhidden cdpath cindent cm colorcolumn completeopt cpoptions cscopetag csto debug dictionary directory ed emoji 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 luadll makeprg maxmem mh mmp more mouses mzq nuw opfunc pastetoggle pex pmbcs printdevice printoptions pythonthreedll regexpengine ri rop rulerformat scl scs sessionoptions shellquote shiftround showfulltag sidescrolloff smartindent sol spellsuggest sr stal sua swf syntax tagcase tbi term textwidth timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay
36*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	allowrevins arabic autowriteall backupext beval bkc briopt buflisted cedit cink cmdheight columns concealcursor cpt cscopetagorder csverb deco diff display edcompatible 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 lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchexpr pexpr pmbfn printencoding prompt qe relativenumber rightleft rs runtimepath scr sect sft shellredir shiftwidth showmatch signcolumn smarttab sp spf srr startofline suffixes switchbuf ta taglength tbidi termbidi tf title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws
37*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	altkeymap arabicshape aw backupskip bex bl brk buftype cf cinkeys cmdwinheight com conceallevel crb cscopeverbose cuc def diffexpr dy ef 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 lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa patchmode pfn popt printexpr pt quoteescape remap rightleftcmd rtp sb scroll sections sh shellslash shm showmode siso smc spc spl ss statusline suffixesadd sws tabline tagrelative tbis termencoding tgc titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww
38*e4a3bcf2SBram Moolenaarsyn keyword vimOption contained	ambiwidth ari awa balloondelay bexpr bo browsedir casemap cfu cino cmp comments confirm cryptmethod cspc cul define
39071d4279SBram Moolenaar
40071d4279SBram Moolenaar" vimOptions: These are the turn-off setting variants {{{2
4191c4937bSBram Moolenaarsyn keyword vimOption contained	noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobomb nobuflisted nocin noconfirm nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noendofline noerrorbells noex nofen nofixendofline nofkmap nofsync noguipty nohk nohkp noic noim noimd noinf noinsertmode nojoinspaces nolangnoremap nolbr nolisp nolnr 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
4291c4937bSBram Moolenaarsyn keyword vimOption contained	noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobk nobreakindent nocf nocindent nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noemo noeol noesckeys noexpandtab nofic nofixeol nofoldenable nogd nohid nohkmap nohls noicon noimc noimdisable noinfercase nois nojs nolazyredraw nolinebreak nolist 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
4391c4937bSBram Moolenaarsyn keyword vimOption contained	noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobl nobri noci nocompatible nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noemoji noequalalways noet noexrc nofileignorecase nofk nofs nogdefault nohidden nohkmapp nohlsearch noignorecase noimcmdline noincsearch
44071d4279SBram Moolenaar
45071d4279SBram Moolenaar" vimOptions: These are the invertible variants {{{2
4691c4937bSBram Moolenaarsyn keyword vimOption contained	invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbomb invbuflisted invcin invconfirm invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invendofline inverrorbells invex invfen invfixendofline invfkmap invfsync invguipty invhk invhkp invic invim invimd invinf invinsertmode invjoinspaces invlangnoremap invlbr invlisp invlnr 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
4791c4937bSBram Moolenaarsyn keyword vimOption contained	invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbk invbreakindent invcf invcindent invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invemo inveol invesckeys invexpandtab invfic invfixeol invfoldenable invgd invhid invhkmap invhls invicon invimc invimdisable invinfercase invis invjs invlazyredraw invlinebreak invlist 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
4891c4937bSBram Moolenaarsyn keyword vimOption contained	invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbl invbri invci invcompatible invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible invemoji invequalalways invet invexrc invfileignorecase invfk invfs invgdefault invhidden invhkmapp invhlsearch invignorecase invimcmdline invincsearch
49071d4279SBram Moolenaar
50071d4279SBram Moolenaar" termcap codes (which can also be set) {{{2
5191c4937bSBram Moolenaarsyn keyword vimOption contained	t_8b t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_db t_DL 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
5291c4937bSBram Moolenaarsyn keyword vimOption contained	t_8f t_AF t_AL t_cd t_Ce t_cm t_cs t_CS t_da t_dl t_EI
53071d4279SBram Moolenaarsyn match   vimOption contained	"t_%1"
54071d4279SBram Moolenaarsyn match   vimOption contained	"t_#2"
55071d4279SBram Moolenaarsyn match   vimOption contained	"t_#4"
56071d4279SBram Moolenaarsyn match   vimOption contained	"t_@7"
57071d4279SBram Moolenaarsyn match   vimOption contained	"t_*7"
58071d4279SBram Moolenaarsyn match   vimOption contained	"t_&8"
59071d4279SBram Moolenaarsyn match   vimOption contained	"t_%i"
60071d4279SBram Moolenaarsyn match   vimOption contained	"t_k;"
61071d4279SBram Moolenaar
6203413f44SBram Moolenaar" unsupported settings: some were supported by vi but don't do anything in vim {{{2
6303413f44SBram Moolenaar" others have been dropped along with msdos support
6403413f44SBram Moolenaarsyn keyword vimErrSetting contained	bioskey biosk conskey consk autoprint beautify flash graphic hardtabs mesg novice open op optimize redraw slow slowopen sourceany w300 w1200 w9600 hardtabs ht nobioskey nobiosk noconskey noconsk noautoprint nobeautify noflash nographic nohardtabs nomesg nonovice noopen noop nooptimize noredraw noslow noslowopen nosourceany now300 now1200 now9600 w1200 w300 w9600
65071d4279SBram Moolenaar
6680a94a58SBram Moolenaar" AutoCmd Events {{{2
67071d4279SBram Moolenaarsyn case ignore
68*e4a3bcf2SBram Moolenaarsyn 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 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 TabClosed TabEnter TabLeave TabNew TermChanged TermResponse TextChanged TextChangedI User VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave WinNew
69071d4279SBram Moolenaar
70071d4279SBram Moolenaar" Highlight commonly used Groupnames {{{2
71b2c0350cSBram Moolenaarsyn 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
72071d4279SBram Moolenaar
73071d4279SBram Moolenaar" Default highlighting groups {{{2
74*e4a3bcf2SBram Moolenaarsyn keyword vimHLGroup contained	ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer 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
75293ee4d4SBram Moolenaarsyn match vimHLGroup contained	"Conceal"
76071d4279SBram Moolenaarsyn case match
77071d4279SBram Moolenaar
78071d4279SBram Moolenaar" Function Names {{{2
79*e4a3bcf2SBram Moolenaarsyn keyword vimFuncName contained	abs append argv assert_fails assert_notequal atan2 buflisted bufwinid byteidxcomp char2nr ch_getbufnr ch_logfile ch_sendexpr cindent complete_add cos cursor diff_filler eval exepath extend filter floor foldclosed foldtextresult garbagecollect getbufvar getcmdline getcompletion getfperm getline getpos gettabinfo getwinposx glob2regpat haslocaldir histget hostname input inputsave isdirectory job_getchannel job_status js_decode json_encode libcall line2byte log map match matcharg matchlist max mode nr2char perleval printf pyeval reltime remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setloclist setqflist settabwinvar shellescape sin soundfold split str2nr strdisplaywidth stridx strpart strwidth synconcealed synIDtrans systemlist tabpagewinnr tan test_alloc_fail test_garbagecollect_now test_null_job test_null_string timer_pause timer_stopall tr undofile values wildmenumode win_findbuf winheight winline winrestview wordcount
80*e4a3bcf2SBram Moolenaarsyn keyword vimFuncName contained	acos argc asin assert_false assert_notmatch browse bufloaded bufwinnr call ch_close ch_getjob ch_open ch_sendraw clearmatches complete_check cosh deepcopy diff_hlID eventhandler exists feedkeys finddir fmod foldclosedend foreground get getchar getcmdpos getcurpos getfsize getloclist getqflist gettabvar getwinposy globpath hasmapto histnr iconv inputdialog inputsecret islocked job_info job_stop js_encode keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr min mzeval or pow pumvisible range reltimefloat remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setfperm setmatches setreg setwinvar shiftwidth sinh spellbadword sqrt strcharpart strftime string strridx submatch synID synstack tabpagebuflist tagfiles tanh test_autochdir test_null_channel test_null_list test_settime timer_start tolower trunc undotree virtcol winbufnr win_getid win_id2tabwin winnr winsaveview writefile
81*e4a3bcf2SBram Moolenaarsyn keyword vimFuncName contained	add argidx assert_equal assert_inrange assert_true browsedir bufname byte2line ceil ch_evalexpr ch_info ch_read ch_setoptions col confirm count delete empty executable exp filereadable findfile fnameescape foldlevel funcref getbufinfo getcharmod getcmdtype getcwd getftime getmatches getreg gettabwinvar getwinvar has histadd hlexists indent inputlist insert isnan job_setoptions join json_decode len line localtime luaeval mapcheck matchaddpos matchend matchstrpos mkdir nextnonblank pathshorten prevnonblank py3eval readfile reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcharsearch setline setpos settabvar sha256 simplify sort spellsuggest str2float strchars strgetchar strlen strtrans substitute synIDattr system tabpagenr taglist tempname test_disable_char_avail test_null_dict test_null_partial timer_info timer_stop toupper type uniq visualmode wincol win_gotoid win_id2win winrestcmd winwidth xor
82*e4a3bcf2SBram Moolenaarsyn keyword vimFuncName contained	and arglistid assert_exception assert_match atan bufexists bufnr byteidx changenr ch_evalraw ch_log ch_readraw ch_status complete copy cscope_connection did_filetype escape execute expand filewritable float2nr fnamemodify foldtext function getbufline getcharsearch getcmdwintype getfontname getftype getpid getregtype getwininfo glob has_key histdel hlID index inputrestore invert items job_start
83071d4279SBram Moolenaar
84ac7bd638SBram Moolenaar"--- syntax here and above generated by mkvimvim ---
85cfbc5ee4SBram Moolenaar" Special Vim Highlighting (not automatic) {{{1
86071d4279SBram Moolenaar
87a0f849eeSBram Moolenaar" Set up folding commands
88f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[aflmpPrt]'
89f391327aSBram Moolenaar if g:vimsyn_folding =~# 'a'
90a0f849eeSBram Moolenaar  com! -nargs=* VimFolda <args> fold
91a0f849eeSBram Moolenaar else
92a0f849eeSBram Moolenaar  com! -nargs=* VimFolda <args>
93a0f849eeSBram Moolenaar endif
94f391327aSBram Moolenaar if g:vimsyn_folding =~# 'f'
95a0f849eeSBram Moolenaar  com! -nargs=* VimFoldf <args> fold
96a0f849eeSBram Moolenaar else
97a0f849eeSBram Moolenaar  com! -nargs=* VimFoldf <args>
98a0f849eeSBram Moolenaar endif
99f391327aSBram Moolenaar if g:vimsyn_folding =~# 'l'
100a0f849eeSBram Moolenaar  com! -nargs=* VimFoldl <args> fold
101a0f849eeSBram Moolenaar else
102a0f849eeSBram Moolenaar  com! -nargs=* VimFoldl <args>
103a0f849eeSBram Moolenaar endif
104f391327aSBram Moolenaar if g:vimsyn_folding =~# 'm'
105a0f849eeSBram Moolenaar  com! -nargs=* VimFoldm <args> fold
106a0f849eeSBram Moolenaar else
107a0f849eeSBram Moolenaar  com! -nargs=* VimFoldm <args>
108a0f849eeSBram Moolenaar endif
109f391327aSBram Moolenaar if g:vimsyn_folding =~# 'p'
110a0f849eeSBram Moolenaar  com! -nargs=* VimFoldp <args> fold
111a0f849eeSBram Moolenaar else
112a0f849eeSBram Moolenaar  com! -nargs=* VimFoldp <args>
113a0f849eeSBram Moolenaar endif
114f391327aSBram Moolenaar if g:vimsyn_folding =~# 'P'
115a0f849eeSBram Moolenaar  com! -nargs=* VimFoldP <args> fold
116a0f849eeSBram Moolenaar else
117a0f849eeSBram Moolenaar  com! -nargs=* VimFoldP <args>
118a0f849eeSBram Moolenaar endif
119f391327aSBram Moolenaar if g:vimsyn_folding =~# 'r'
120a0f849eeSBram Moolenaar  com! -nargs=* VimFoldr <args> fold
121a0f849eeSBram Moolenaar else
122a0f849eeSBram Moolenaar  com! -nargs=* VimFoldr <args>
123a0f849eeSBram Moolenaar endif
124f391327aSBram Moolenaar if g:vimsyn_folding =~# 't'
125a0f849eeSBram Moolenaar  com! -nargs=* VimFoldt <args> fold
126a0f849eeSBram Moolenaar else
127a0f849eeSBram Moolenaar  com! -nargs=* VimFoldt <args>
128a0f849eeSBram Moolenaar endif
129a0f849eeSBram Moolenaarelse
130a0f849eeSBram Moolenaar com! -nargs=*	VimFolda	<args>
131a0f849eeSBram Moolenaar com! -nargs=*	VimFoldf	<args>
132a0f849eeSBram Moolenaar com! -nargs=*	VimFoldl	<args>
133a0f849eeSBram Moolenaar com! -nargs=*	VimFoldm	<args>
134a0f849eeSBram Moolenaar com! -nargs=*	VimFoldp	<args>
135a0f849eeSBram Moolenaar com! -nargs=*	VimFoldP	<args>
136a0f849eeSBram Moolenaar com! -nargs=*	VimFoldr	<args>
137a0f849eeSBram Moolenaar com! -nargs=*	VimFoldt	<args>
138a0f849eeSBram Moolenaarendif
139a0f849eeSBram Moolenaar
140fa01c39dSBram Moolenaar" commands not picked up by the generator (due to non-standard format)
141fa01c39dSBram Moolenaarsyn keyword vimCommand contained	py3
142fa01c39dSBram Moolenaar
1433577c6faSBram Moolenaar" Deprecated variable options {{{2
1443577c6faSBram Moolenaarif exists("g:vim_minlines")
1453577c6faSBram Moolenaar let g:vimsyn_minlines= g:vim_minlines
1463577c6faSBram Moolenaarendif
1473577c6faSBram Moolenaarif exists("g:vim_maxlines")
1483577c6faSBram Moolenaar let g:vimsyn_maxlines= g:vim_maxlines
1493577c6faSBram Moolenaarendif
1503577c6faSBram Moolenaarif exists("g:vimsyntax_noerror")
1513577c6faSBram Moolenaar let g:vimsyn_noerror= g:vimsyntax_noerror
1523577c6faSBram Moolenaarendif
1533577c6faSBram Moolenaar
15403413f44SBram Moolenaar" Variable options {{{2
15503413f44SBram Moolenaarif exists("g:vim_maxlines")
15603413f44SBram Moolenaar let s:vimsyn_maxlines= g:vim_maxlines
15703413f44SBram Moolenaarelse
15803413f44SBram Moolenaar let s:vimsyn_maxlines= 60
15903413f44SBram Moolenaarendif
16003413f44SBram Moolenaar
161cfbc5ee4SBram Moolenaar" Numbers {{{2
162071d4279SBram Moolenaar" =======
1639da7ff70SBram Moolenaarsyn match vimNumber	"\<\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
1649da7ff70SBram Moolenaarsyn match vimNumber	"-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\="  skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
165071d4279SBram Moolenaarsyn match vimNumber	"\<0[xX]\x\+"
166e2719096SBram Moolenaarsyn match vimNumber	"\%(^\|[^a-zA-Z]\)\zs#\x\{6}"
167071d4279SBram Moolenaar
168cfbc5ee4SBram Moolenaar" All vimCommands are contained by vimIsCommands. {{{2
169b4ff518dSBram Moolenaarsyn match vimCmdSep	"[:|]\+"	skipwhite nextgroup=vimAddress,vimAutoCmd,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
170293ee4d4SBram Moolenaarsyn match vimIsCommand	"\<\h\w*\>"	contains=vimCommand
17183d1b190SBram Moolenaarsyn match vimVar        contained	"\<\h[a-zA-Z0-9#_]*\>"
17283d1b190SBram Moolenaarsyn match vimVar		"\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
17383d1b190SBram Moolenaarsyn match vimFBVar      contained   "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
1743b1ddfedSBram Moolenaarsyn keyword vimCommand  contained	in
175071d4279SBram Moolenaar
176cfbc5ee4SBram Moolenaar" Insertions And Appends: insert append {{{2
177071d4279SBram Moolenaar" =======================
178071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$"	matchgroup=vimCommand end="^\.$""
179071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$"	matchgroup=vimCommand end="^\.$""
180071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$"	matchgroup=vimCommand end="^\.$""
181071d4279SBram Moolenaar
182cfbc5ee4SBram Moolenaar" Behave! {{{2
183071d4279SBram Moolenaar" =======
184071d4279SBram Moolenaarsyn match   vimBehave	"\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError
185071d4279SBram Moolenaarsyn keyword vimBehaveModel contained	mswin	xterm
1866be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror")
187071d4279SBram Moolenaar syn match   vimBehaveError contained	"[^ ]\+"
188cfbc5ee4SBram Moolenaarendif
189071d4279SBram Moolenaar
190cfbc5ee4SBram Moolenaar" Filetypes {{{2
191071d4279SBram Moolenaar" =========
192293ee4d4SBram Moolenaarsyn match   vimFiletype	"\<filet\%[ype]\(\s\+\I\i*\)*"	skipwhite contains=vimFTCmd,vimFTOption,vimFTError
1936be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimFTError")
194071d4279SBram Moolenaar syn match   vimFTError  contained	"\I\i*"
195cfbc5ee4SBram Moolenaarendif
196071d4279SBram Moolenaarsyn keyword vimFTCmd    contained	filet[ype]
197071d4279SBram Moolenaarsyn keyword vimFTOption contained	detect indent off on plugin
198071d4279SBram Moolenaar
199cfbc5ee4SBram Moolenaar" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
200071d4279SBram Moolenaar" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
201e2719096SBram Moolenaarsyn 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
202f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'a'
203b4ff518dSBram Moolenaar syn region  vimAugroup	fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>"	contains=vimAutoCmd,@vimAugroupList
204b4ff518dSBram Moolenaarelse
205b4ff518dSBram Moolenaar syn region  vimAugroup	matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>"		contains=vimAutoCmd,@vimAugroupList
206b4ff518dSBram Moolenaarendif
2073b1ddfedSBram Moolenaarsyn match   vimAugroup	"aug\%[roup]!"	contains=vimAugroupKey
2086be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror")
209071d4279SBram Moolenaar syn match   vimAugroupError	"\<aug\%[roup]\>\s\+[eE][nN][dD]\>"
210cfbc5ee4SBram Moolenaarendif
21183d1b190SBram Moolenaarsyn keyword vimAugroupKey contained	aug[roup]
212071d4279SBram Moolenaar
213cfbc5ee4SBram Moolenaar" Operators: {{{2
214071d4279SBram Moolenaar" =========
2159da7ff70SBram Moolenaarsyn cluster	vimOperGroup	contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue
216071d4279SBram Moolenaarsyn match	vimOper	"\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}"	skipwhite nextgroup=vimString,vimSpecFile
217071d4279SBram Moolenaarsyn match	vimOper	"||\|&&\|[-+.]"	skipwhite nextgroup=vimString,vimSpecFile
21883d1b190SBram Moolenaarsyn region	vimOperParen 	matchgroup=vimParenSep	start="(" end=")" contains=@vimOperGroup
21983d1b190SBram Moolenaarsyn region	vimOperParen	matchgroup=vimSep		start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
2206be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
221071d4279SBram Moolenaar syn match	vimOperError	")"
222cfbc5ee4SBram Moolenaarendif
223071d4279SBram Moolenaar
2243577c6faSBram Moolenaar" Functions : Tag is provided for those who wish to highlight tagged functions {{{2
2253577c6faSBram Moolenaar" =========
2265c73622aSBram Moolenaarsyn cluster	vimFuncList	contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID
227b4ff518dSBram Moolenaarsyn 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
2285c73622aSBram Moolenaarsyn match	vimFunction	"\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*("	contains=@vimFuncList nextgroup=vimFuncBody
2295c73622aSBram Moolenaar
230f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f'
231b4ff518dSBram Moolenaar syn region	vimFuncBody  contained	fold start="\ze\s*("	matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)"		contains=@vimFuncBodyList
232b4ff518dSBram Moolenaarelse
233b4ff518dSBram Moolenaar syn region	vimFuncBody  contained	start="\ze\s*("	matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)"		contains=@vimFuncBodyList
234b4ff518dSBram Moolenaarendif
235b4ff518dSBram Moolenaarsyn match	vimFuncVar   contained	"a:\(\K\k*\|\d\+\)"
2363577c6faSBram Moolenaarsyn match	vimFuncSID   contained	"\c<sid>\|\<s:"
2373577c6faSBram Moolenaarsyn keyword	vimFuncKey   contained	fu[nction]
2383577c6faSBram Moolenaarsyn match	vimFuncBlank contained	"\s\+"
2393577c6faSBram Moolenaar
2403577c6faSBram Moolenaarsyn keyword	vimPattern   contained	start	skip	end
2413577c6faSBram Moolenaar
242cfbc5ee4SBram Moolenaar" Special Filenames, Modifiers, Extension Removal: {{{2
243071d4279SBram Moolenaar" ===============================================
244071d4279SBram Moolenaarsyn match	vimSpecFile	"<c\(word\|WORD\)>"	nextgroup=vimSpecFileMod,vimSubst
245071d4279SBram Moolenaarsyn match	vimSpecFile	"<\([acs]file\|amatch\|abuf\)>"	nextgroup=vimSpecFileMod,vimSubst
246071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%[ \t:]"ms=s+1,me=e-1	nextgroup=vimSpecFileMod,vimSubst
247071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%$"ms=s+1	nextgroup=vimSpecFileMod,vimSubst
248071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%<"ms=s+1,me=e-1	nextgroup=vimSpecFileMod,vimSubst
249071d4279SBram Moolenaarsyn match	vimSpecFile	"#\d\+\|[#%]<\>"	nextgroup=vimSpecFileMod,vimSubst
250071d4279SBram Moolenaarsyn match	vimSpecFileMod	"\(:[phtre]\)\+"	contained
251071d4279SBram Moolenaar
252cfbc5ee4SBram Moolenaar" User-Specified Commands: {{{2
253071d4279SBram Moolenaar" =======================
2545c73622aSBram Moolenaarsyn 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
255071d4279SBram Moolenaarsyn keyword	vimUserCommand	contained	com[mand]
256b4ff518dSBram Moolenaarsyn match	vimUserCmd	"\<com\%[mand]!\=\>.*$"	contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList
257b4ff518dSBram Moolenaarsyn match	vimUserAttrbError	contained	"-\a\+\ze\s"
258b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-nargs=[01*?+]"	contains=vimUserAttrbKey,vimOper
259b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-complete="		contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError
260b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-range\(=%\|=\d\+\)\="	contains=vimNumber,vimOper,vimUserAttrbKey
261b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-count\(=\d\+\)\="	contains=vimNumber,vimOper,vimUserAttrbKey
262b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-bang\>"		contains=vimOper,vimUserAttrbKey
263071d4279SBram Moolenaarsyn match	vimUserAttrb	contained	"-bar\>"		contains=vimOper,vimUserAttrbKey
264b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-buffer\>"		contains=vimOper,vimUserAttrbKey
265b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-register\>"		contains=vimOper,vimUserAttrbKey
2666be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror")
267071d4279SBram Moolenaar syn match	vimUserCmdError	contained	"\S\+\>"
268cfbc5ee4SBram Moolenaarendif
269071d4279SBram Moolenaarsyn case ignore
270071d4279SBram Moolenaarsyn keyword	vimUserAttrbKey   contained	bar	ban[g]	cou[nt]	ra[nge] com[plete]	n[args]	re[gister]
271bc8801c9SBram Moolenaarsyn keyword	vimUserAttrbCmplt contained	augroup buffer behave color command compiler cscope dir environment event expression file file_in_path filetype function help highlight history locale mapping menu option packadd shellcmd sign syntax syntime tag tag_listfiles user var
272a93fa7eeSBram Moolenaarsyn keyword	vimUserAttrbCmplt contained	custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError
2739da7ff70SBram Moolenaarsyn match	vimUserAttrbCmpltFunc contained	",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1 nextgroup=vimUserCmdError
274a93fa7eeSBram Moolenaar
275071d4279SBram Moolenaarsyn case match
276071d4279SBram Moolenaarsyn match	vimUserAttrbCmplt contained	"custom,\u\w*"
277071d4279SBram Moolenaar
278cfbc5ee4SBram Moolenaar" Lower Priority Comments: after some vim commands... {{{2
279071d4279SBram Moolenaar" =======================
280071d4279SBram Moolenaarsyn match	vimComment	excludenl +\s"[^\-:.%#=*].*$+lc=1	contains=@vimCommentGroup,vimCommentString
281071d4279SBram Moolenaarsyn match	vimComment	+\<endif\s\+".*$+lc=5	contains=@vimCommentGroup,vimCommentString
282071d4279SBram Moolenaarsyn match	vimComment	+\<else\s\+".*$+lc=4	contains=@vimCommentGroup,vimCommentString
2834770d09aSBram Moolenaarsyn region	vimCommentString	contained oneline start='\S\s\+"'ms=e	end='"'
284071d4279SBram Moolenaar
285cfbc5ee4SBram Moolenaar" Environment Variables: {{{2
286071d4279SBram Moolenaar" =====================
287071d4279SBram Moolenaarsyn match	vimEnvvar	"\$\I\i*"
288071d4279SBram Moolenaarsyn match	vimEnvvar	"\${\I\i*}"
289071d4279SBram Moolenaar
290cfbc5ee4SBram Moolenaar" In-String Specials: {{{2
291071d4279SBram Moolenaar" Try to catch strings, if nothing else matches (therefore it must precede the others!)
292071d4279SBram Moolenaar"  vimEscapeBrace handles ["]  []"] (ie. "s don't terminate string inside [])
293d68071d8SBram Moolenaarsyn region	vimEscapeBrace	oneline   contained transparent start="[^\\]\(\\\\\)*\[\zs\^\=\]\=" skip="\\\\\|\\\]" end="]"me=e-1
294071d4279SBram Moolenaarsyn match	vimPatSepErr	contained	"\\)"
295071d4279SBram Moolenaarsyn match	vimPatSep	contained	"\\|"
296383f9bc3SBram Moolenaarsyn region	vimPatSepZone	oneline   contained   matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\]['"]"	contains=@vimStringGroup
297383f9bc3SBram Moolenaarsyn region	vimPatRegion	contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)"	contains=@vimSubstList oneline
298071d4279SBram Moolenaarsyn match	vimNotPatSep	contained	"\\\\"
2999964e468SBram Moolenaarsyn cluster	vimStringGroup	contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell
3009da7ff70SBram Moolenaarsyn region	vimString	oneline keepend	start=+[^:a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"+ end=+"+	contains=@vimStringGroup
3019da7ff70SBram Moolenaarsyn region	vimString	oneline keepend	start=+[^:a-zA-Z>!\\@]'+lc=1 end=+'+
302071d4279SBram Moolenaarsyn region	vimString	oneline	start=+=!+lc=1	skip=+\\\\\|\\!+ end=+!+	contains=@vimStringGroup
303071d4279SBram Moolenaarsyn region	vimString	oneline	start="=+"lc=1	skip="\\\\\|\\+" end="+"	contains=@vimStringGroup
304071d4279SBram Moolenaarsyn region	vimString	oneline	start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/"	contains=@vimStringGroup
305071d4279SBram Moolenaarsyn match	vimString	contained	+"[^"]*\\$+	skipnl nextgroup=vimStringCont
306071d4279SBram Moolenaarsyn match	vimStringCont	contained	+\(\\\\\|.\)\{-}[^\\]"+
307071d4279SBram Moolenaar
308cfbc5ee4SBram Moolenaar" Substitutions: {{{2
309071d4279SBram Moolenaar" =============
310071d4279SBram Moolenaarsyn cluster	vimSubstList	contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation
311071d4279SBram Moolenaarsyn cluster	vimSubstRepList	contains=vimSubstSubstr,vimSubstTwoBS,vimNotation
312071d4279SBram Moolenaarsyn cluster	vimSubstList	add=vimCollection
31391c4937bSBram Moolenaarsyn match	vimSubst	"\(:\+\s*\|^\s*\||\s*\)\<\%(\<s\%[ubstitute]\>\|\<sm\%[agic]\>\|\<sno\%[magic]\>\)[:#[:alpha:]]\@!" nextgroup=vimSubstPat
31491c4937bSBram Moolenaarsyn match	vimSubst	"\%(^\|[^\\]\)\<s\%[ubstitute]\>[:#[:alpha:]]\@!"	nextgroup=vimSubstPat contained
31591c4937bSBram Moolenaarsyn match	vimSubst	"/\zs\<s\%[ubstitute]\>\ze/"		nextgroup=vimSubstPat
31691c4937bSBram Moolenaarsyn match	vimSubst	"\(:\+\s*\|^\s*\)s\ze#.\{-}#.\{-}#"		nextgroup=vimSubstPat
31791c4937bSBram Moolenaarsyn match	vimSubst1       contained	"\<s\%[ubstitute]\>"	nextgroup=vimSubstPat
318071d4279SBram Moolenaarsyn region	vimSubstPat     contained	matchgroup=vimSubstDelim start="\z([^a-zA-Z( \t[\]&]\)"rs=s+1 skip="\\\\\|\\\z1" end="\z1"re=e-1,me=e-1	 contains=@vimSubstList	nextgroup=vimSubstRep4	oneline
319071d4279SBram Moolenaarsyn region	vimSubstRep4    contained	matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList	nextgroup=vimSubstFlagErr	oneline
320071d4279SBram Moolenaarsyn region	vimCollection   contained transparent	start="\\\@<!\[" skip="\\\[" end="\]"	contains=vimCollClass
321071d4279SBram Moolenaarsyn match	vimCollClassErr contained	"\[:.\{-\}:\]"
322071d4279SBram Moolenaarsyn match	vimCollClass    contained transparent	"\[:\(alnum\|alpha\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\|return\|tab\|escape\|backspace\):\]"
323071d4279SBram Moolenaarsyn match	vimSubstSubstr  contained	"\\z\=\d"
324071d4279SBram Moolenaarsyn match	vimSubstTwoBS   contained	"\\\\"
325a5792f58SBram Moolenaarsyn match	vimSubstFlagErr contained	"[^< \t\r|]\+" contains=vimSubstFlags
326071d4279SBram Moolenaarsyn match	vimSubstFlags   contained	"[&cegiIpr]\+"
327071d4279SBram Moolenaar
328cfbc5ee4SBram Moolenaar" 'String': {{{2
3298b6144bdSBram Moolenaarsyn match	vimString	"[^(,]'[^']\{-}\zs'"
330071d4279SBram Moolenaar
331cfbc5ee4SBram Moolenaar" Marks, Registers, Addresses, Filters: {{{2
332071d4279SBram Moolenaarsyn match	vimMark	"'[a-zA-Z0-9]\ze[-+,!]"	nextgroup=vimOper,vimMarkNumber,vimSubst
333071d4279SBram Moolenaarsyn match	vimMark	"'[<>]\ze[-+,!]"		nextgroup=vimOper,vimMarkNumber,vimSubst
334071d4279SBram Moolenaarsyn match	vimMark	",\zs'[<>]\ze"		nextgroup=vimOper,vimMarkNumber,vimSubst
335071d4279SBram Moolenaarsyn match	vimMark	"[!,:]\zs'[a-zA-Z0-9]"	nextgroup=vimOper,vimMarkNumber,vimSubst
336071d4279SBram Moolenaarsyn match	vimMark	"\<norm\%[al]\s\zs'[a-zA-Z0-9]"	nextgroup=vimOper,vimMarkNumber,vimSubst
337071d4279SBram Moolenaarsyn match	vimMarkNumber	"[-+]\d\+"		nextgroup=vimSubst contained contains=vimOper
338071d4279SBram Moolenaarsyn match	vimPlainMark contained	"'[a-zA-Z0-9]"
339071d4279SBram Moolenaar
340b4ff518dSBram Moolenaarsyn match	vimRegister	'[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
3415b8d8fdbSBram Moolenaarsyn match	vimRegister	'\<norm\s\+\zs"[a-zA-Z0-9]'
3425b8d8fdbSBram Moolenaarsyn match	vimRegister	'\<normal\s\+\zs"[a-zA-Z0-9]'
343cfbc5ee4SBram Moolenaarsyn match	vimRegister	'@"'
344071d4279SBram Moolenaarsyn match	vimPlainRegister contained	'"[a-zA-Z0-9\-:.%#*+=]'
345071d4279SBram Moolenaar
3465b8d8fdbSBram Moolenaarsyn match	vimAddress	",\zs[.$]"	skipwhite nextgroup=vimSubst1
3475b8d8fdbSBram Moolenaarsyn match	vimAddress	"%\ze\a"	skipwhite nextgroup=vimString,vimSubst1
348071d4279SBram Moolenaar
349071d4279SBram Moolenaarsyn match	vimFilter contained	"^!.\{-}\(|\|$\)"		contains=vimSpecFile
350d960d76dSBram Moolenaarsyn match	vimFilter contained	"\A!.\{-}\(|\|$\)"ms=s+1	contains=vimSpecFile,vimFunction,vimFuncName,vimOperParen
351071d4279SBram Moolenaar
352cfbc5ee4SBram Moolenaar" Complex repeats (:h complex-repeat) {{{2
3536be7f873SBram Moolenaarsyn match	vimCmplxRepeat	'[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1
3546be7f873SBram Moolenaarsyn match	vimCmplxRepeat	'@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\>\)'
355071d4279SBram Moolenaar
356cfbc5ee4SBram Moolenaar" Set command and associated set-options (vimOptions) with comment {{{2
35774cbdf03SBram Moolenaarsyn 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
3589da7ff70SBram Moolenaarsyn region	vimSetEqual	contained	start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar oneline
359071d4279SBram Moolenaarsyn region	vimSetString	contained	start=+="+hs=s+1	skip=+\\\\\|\\"+  end=+"+	contains=vimCtrlChar
360b4ff518dSBram Moolenaarsyn match	vimSetSep	contained	"[,:]" skipwhite nextgroup=vimCommand
3615c73622aSBram Moolenaarsyn match	vimSetMod	contained	"&vim\=\|[!&?<]\|all&"
362071d4279SBram Moolenaar
363cfbc5ee4SBram Moolenaar" Let {{{2
364071d4279SBram Moolenaar" ===
3655c73622aSBram Moolenaarsyn keyword	vimLet	let	unl[et]	skipwhite nextgroup=vimVar,vimFuncVar
366071d4279SBram Moolenaar
367e37d50a5SBram Moolenaar" Abbreviations {{{2
368e37d50a5SBram Moolenaar" =============
369e37d50a5SBram Moolenaarsyn keyword vimAbb	ab[breviate] ca[bbrev] inorea[bbrev] cnorea[bbrev] norea[bbrev] ia[bbrev] skipwhite nextgroup=vimMapMod,vimMapLhs
370e37d50a5SBram Moolenaar
371cfbc5ee4SBram Moolenaar" Autocmd {{{2
372071d4279SBram Moolenaar" =======
373071d4279SBram Moolenaarsyn match	vimAutoEventList	contained	"\(!\s\+\)\=\(\a\+,\)*\a\+"	contains=vimAutoEvent nextgroup=vimAutoCmdSpace
374071d4279SBram Moolenaarsyn match	vimAutoCmdSpace	contained	"\s\+"	nextgroup=vimAutoCmdSfxList
375071d4279SBram Moolenaarsyn match	vimAutoCmdSfxList	contained	"\S*"
376071d4279SBram Moolenaarsyn keyword	vimAutoCmd	au[tocmd] do[autocmd] doautoa[ll]	skipwhite nextgroup=vimAutoEventList
377071d4279SBram Moolenaar
378cfbc5ee4SBram Moolenaar" Echo and Execute -- prefer strings! {{{2
379071d4279SBram Moolenaar" ================
3805c73622aSBram Moolenaarsyn region	vimEcho	oneline excludenl matchgroup=vimCommand start="\<ec\%[ho]\>" skip="\(\\\\\)*\\|" end="$\||" contains=vimFunc,vimFuncVar,vimString,vimVar
3815c73622aSBram Moolenaarsyn region	vimExecute	oneline excludenl matchgroup=vimCommand start="\<exe\%[cute]\>" skip="\(\\\\\)*\\|" end="$\||\|<[cC][rR]>" contains=vimFuncVar,vimIsCommand,vimOper,vimNotation,vimOperParen,vimString,vimVar
382071d4279SBram Moolenaarsyn match	vimEchoHL	"echohl\="	skipwhite nextgroup=vimGroup,vimHLGroup,vimEchoHLNone
383071d4279SBram Moolenaarsyn case ignore
384071d4279SBram Moolenaarsyn keyword	vimEchoHLNone	none
385071d4279SBram Moolenaarsyn case match
386071d4279SBram Moolenaar
387cfbc5ee4SBram Moolenaar" Maps {{{2
388071d4279SBram Moolenaar" ====
3893577c6faSBram Moolenaarsyn match	vimMap		"\<map\>!\=\ze\s*[^(]" skipwhite nextgroup=vimMapMod,vimMapLhs
3905c73622aSBram Moolenaarsyn 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
39181af9250SBram Moolenaarsyn keyword	vimMap		mapc[lear] smapc[lear]
3925c73622aSBram Moolenaarsyn 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
393b8a7b560SBram Moolenaarsyn match	vimMapLhs	contained	"\S\+"			contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs
394b8a7b560SBram Moolenaarsyn match	vimMapBang	contained	"!"			skipwhite nextgroup=vimMapMod,vimMapLhs
395b4ff518dSBram Moolenaarsyn match	vimMapMod	contained	"\c<\(buffer\|expr\|\(local\)\=leader\|nowait\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs
396b8a7b560SBram Moolenaarsyn match	vimMapRhs	contained	".*" contains=vimNotation,vimCtrlChar	skipnl nextgroup=vimMapRhsExtend
397b4ff518dSBram Moolenaarsyn match	vimMapRhsExtend	contained	"^\s*\\.*$"			contains=vimContinue
398071d4279SBram Moolenaarsyn case ignore
399b4ff518dSBram Moolenaarsyn keyword	vimMapModKey	contained	buffer	expr	leader	localleader	nowait	plug	script	sid	silent	unique
400071d4279SBram Moolenaarsyn case match
401071d4279SBram Moolenaar
402cfbc5ee4SBram Moolenaar" Menus {{{2
403071d4279SBram Moolenaar" =====
404071d4279SBram Moolenaarsyn cluster	vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod
405071d4279SBram Moolenaarsyn keyword	vimCommand	am[enu] an[oremenu] aun[menu] cme[nu] cnoreme[nu] cunme[nu] ime[nu] inoreme[nu] iunme[nu] me[nu] nme[nu] nnoreme[nu] noreme[nu] nunme[nu] ome[nu] onoreme[nu] ounme[nu] unme[nu] vme[nu] vnoreme[nu] vunme[nu] skipwhite nextgroup=@vimMenuList
406071d4279SBram Moolenaarsyn match	vimMenuName	"[^ \t\\<]\+"	contained nextgroup=vimMenuNameMore,vimMenuMap
407071d4279SBram Moolenaarsyn match	vimMenuPriority	"\d\+\(\.\d\+\)*"	contained skipwhite nextgroup=vimMenuName
408071d4279SBram Moolenaarsyn match	vimMenuNameMore	"\c\\\s\|<tab>\|\\\."	contained nextgroup=vimMenuName,vimMenuNameMore contains=vimNotation
409071d4279SBram Moolenaarsyn match	vimMenuMod    contained	"\c<\(script\|silent\)\+>"  skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMenuList
410071d4279SBram Moolenaarsyn match	vimMenuMap	"\s"	contained skipwhite nextgroup=vimMenuRhs
411071d4279SBram Moolenaarsyn match	vimMenuRhs	".*$"	contained contains=vimString,vimComment,vimIsCommand
412071d4279SBram Moolenaarsyn match	vimMenuBang	"!"	contained skipwhite nextgroup=@vimMenuList
413071d4279SBram Moolenaar
414cfbc5ee4SBram Moolenaar" Angle-Bracket Notation (tnx to Michael Geddes) {{{2
415071d4279SBram Moolenaar" ======================
416071d4279SBram Moolenaarsyn case ignore
41783d1b190SBram Moolenaarsyn match	vimNotation	"\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>" contains=vimBracket
418071d4279SBram Moolenaarsyn match	vimNotation	"\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"	contains=vimBracket
419071d4279SBram Moolenaarsyn match	vimNotation	"\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"		contains=vimBracket
420071d4279SBram Moolenaarsyn match	vimNotation	'\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1			contains=vimBracket
421bc8801c9SBram Moolenaarsyn match	vimNotation	'\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|mods\|f-args\|f-mods\|lt\)>'	contains=vimBracket
422071d4279SBram Moolenaarsyn match	vimNotation	"\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>"		contains=vimBracket
423071d4279SBram Moolenaarsyn match	vimBracket contained	"[\\<>]"
424071d4279SBram Moolenaarsyn case match
425071d4279SBram Moolenaar
4263577c6faSBram Moolenaar" User Function Highlighting {{{2
4273577c6faSBram Moolenaar" (following Gautam Iyer's suggestion)
428071d4279SBram Moolenaar" ==========================
429a0f849eeSBram Moolenaarsyn match vimFunc		"\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*("		contains=vimFuncName,vimUserFunc,vimExecute
430a0f849eeSBram Moolenaarsyn match vimUserFunc contained	"\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>"	contains=vimNotation
4315c73622aSBram Moolenaarsyn match vimNotFunc	"\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>"
432071d4279SBram Moolenaar
4333577c6faSBram Moolenaar" Errors And Warnings: {{{2
4343577c6faSBram Moolenaar" ====================
4356be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
4365c73622aSBram Moolenaar syn match	vimFunctionError	"\s\zs[a-z0-9]\i\{-}\ze\s*("			contained contains=vimFuncKey,vimFuncBlank
4375c73622aSBram Moolenaar" syn match	vimFunctionError	"\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)[0-9]\i\{-}\ze\s*("	contained contains=vimFuncKey,vimFuncBlank
4383577c6faSBram Moolenaar syn match	vimElseIfErr	"\<else\s\+if\>"
4393577c6faSBram Moolenaar syn match	vimBufnrWarn	/\<bufnr\s*(\s*["']\.['"]\s*)/
4403577c6faSBram Moolenaarendif
4413577c6faSBram Moolenaar
4423577c6faSBram Moolenaar" Norm {{{2
44305159a0cSBram Moolenaar" ====
44405159a0cSBram Moolenaarsyn match	vimNorm		"\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds
44505159a0cSBram Moolenaarsyn match	vimNormCmds contained	".*$"
44605159a0cSBram Moolenaar
447cfbc5ee4SBram Moolenaar" Syntax {{{2
448071d4279SBram Moolenaar"=======
449071d4279SBram Moolenaarsyn match	vimGroupList	contained	"@\=[^ \t,]*"	contains=vimGroupSpecial,vimPatSep
450071d4279SBram Moolenaarsyn match	vimGroupList	contained	"@\=[^ \t,]*,"	nextgroup=vimGroupList contains=vimGroupSpecial,vimPatSep
4515c73622aSBram Moolenaarsyn keyword	vimGroupSpecial	contained	ALL	ALLBUT	CONTAINED	TOP
4526be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynerror")
453071d4279SBram Moolenaar syn match	vimSynError	contained	"\i\+"
454071d4279SBram Moolenaar syn match	vimSynError	contained	"\i\+="	nextgroup=vimGroupList
455cfbc5ee4SBram Moolenaarendif
456071d4279SBram Moolenaarsyn match	vimSynContains	contained	"\<contain\(s\|edin\)="	nextgroup=vimGroupList
457071d4279SBram Moolenaarsyn match	vimSynKeyContainedin	contained	"\<containedin="	nextgroup=vimGroupList
458071d4279SBram Moolenaarsyn match	vimSynNextgroup	contained	"nextgroup="	nextgroup=vimGroupList
459071d4279SBram Moolenaar
460071d4279SBram Moolenaarsyn match	vimSyntax	"\<sy\%[ntax]\>"	contains=vimCommand skipwhite nextgroup=vimSynType,vimComment
461071d4279SBram Moolenaarsyn match	vimAuSyntax	contained	"\s+sy\%[ntax]"	contains=vimCommand skipwhite nextgroup=vimSynType,vimComment
462d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSyntax
463071d4279SBram Moolenaar
464cfbc5ee4SBram Moolenaar" Syntax: case {{{2
465071d4279SBram Moolenaarsyn keyword	vimSynType	contained	case	skipwhite nextgroup=vimSynCase,vimSynCaseError
4666be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncaseerror")
467071d4279SBram Moolenaar syn match	vimSynCaseError	contained	"\i\+"
468cfbc5ee4SBram Moolenaarendif
469071d4279SBram Moolenaarsyn keyword	vimSynCase	contained	ignore	match
470071d4279SBram Moolenaar
471cfbc5ee4SBram Moolenaar" Syntax: clear {{{2
472071d4279SBram Moolenaarsyn keyword	vimSynType	contained	clear	skipwhite nextgroup=vimGroupList
473071d4279SBram Moolenaar
474cfbc5ee4SBram Moolenaar" Syntax: cluster {{{2
475071d4279SBram Moolenaarsyn keyword	vimSynType	contained	cluster	skipwhite nextgroup=vimClusterName
476a0f849eeSBram Moolenaarsyn region	vimClusterName	contained	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError
477071d4279SBram Moolenaarsyn match	vimGroupAdd	contained	"add="	nextgroup=vimGroupList
478071d4279SBram Moolenaarsyn match	vimGroupRem	contained	"remove="	nextgroup=vimGroupList
479d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
480071d4279SBram Moolenaar
48113d5aeefSBram Moolenaar" Syntax: iskeyword {{{2
48213d5aeefSBram Moolenaarsyn keyword	vimSynType	contained	iskeyword	skipwhite nextgroup=vimIskList
48313d5aeefSBram Moolenaarsyn match	vimIskList	contained	'\S\+'	contains=vimIskSep
48413d5aeefSBram Moolenaarsyn match	vimIskSep	contained	','
48513d5aeefSBram Moolenaar
486cfbc5ee4SBram Moolenaar" Syntax: include {{{2
487071d4279SBram Moolenaarsyn keyword	vimSynType	contained	include	skipwhite nextgroup=vimGroupList
488d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
489071d4279SBram Moolenaar
490cfbc5ee4SBram Moolenaar" Syntax: keyword {{{2
491071d4279SBram Moolenaarsyn cluster	vimSynKeyGroup	contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin
492071d4279SBram Moolenaarsyn keyword	vimSynType	contained	keyword	skipwhite nextgroup=vimSynKeyRegion
493a0f849eeSBram Moolenaarsyn region	vimSynKeyRegion	contained oneline keepend	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup
494071d4279SBram Moolenaarsyn match	vimSynKeyOpt	contained	"\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>"
495d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
496071d4279SBram Moolenaar
497cfbc5ee4SBram Moolenaar" Syntax: match {{{2
498071d4279SBram Moolenaarsyn cluster	vimSynMtchGroup	contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation
499071d4279SBram Moolenaarsyn keyword	vimSynType	contained	match	skipwhite nextgroup=vimSynMatchRegion
500a0f849eeSBram Moolenaarsyn region	vimSynMatchRegion	contained keepend	matchgroup=vimGroupName start="\h\w*" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
501071d4279SBram Moolenaarsyn match	vimSynMtchOpt	contained	"\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>"
502071d4279SBram Moolenaarif has("conceal")
50383d1b190SBram Moolenaar syn match	vimSynMtchOpt	contained	"\<cchar="	nextgroup=vimSynMtchCchar
5045c73622aSBram Moolenaar syn match	vimSynMtchCchar	contained	"\S"
505071d4279SBram Moolenaarendif
506d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynMtchGroup
507071d4279SBram Moolenaar
508cfbc5ee4SBram Moolenaar" Syntax: off and on {{{2
509071d4279SBram Moolenaarsyn keyword	vimSynType	contained	enable	list	manual	off	on	reset
510071d4279SBram Moolenaar
511cfbc5ee4SBram Moolenaar" Syntax: region {{{2
512071d4279SBram Moolenaarsyn cluster	vimSynRegPatGroup	contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation
513071d4279SBram Moolenaarsyn cluster	vimSynRegGroup	contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp
514071d4279SBram Moolenaarsyn keyword	vimSynType	contained	region	skipwhite nextgroup=vimSynRegion
515a0f849eeSBram Moolenaarsyn region	vimSynRegion	contained keepend	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup
516071d4279SBram Moolenaarsyn match	vimSynRegOpt	contained	"\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>"
517071d4279SBram Moolenaarsyn match	vimSynReg	contained	"\(start\|skip\|end\)="he=e-1	nextgroup=vimSynRegPat
518071d4279SBram Moolenaarsyn match	vimSynMtchGrp	contained	"matchgroup="	nextgroup=vimGroup,vimHLGroup
519071d4279SBram Moolenaarsyn region	vimSynRegPat	contained extend	start="\z([-`~!@#$%^&*_=+;:'",./?]\)"  skip="\\\\\|\\\z1"  end="\z1"  contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg
520071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\="
521071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=," nextgroup=vimSynPatMod
522071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"lc=\d\+"
523071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"lc=\d\+," nextgroup=vimSynPatMod
524071d4279SBram Moolenaarsyn region	vimSynPatRange	contained	start="\["	skip="\\\\\|\\]"   end="]"
525071d4279SBram Moolenaarsyn match	vimSynNotPatRange	contained	"\\\\\|\\\["
526071d4279SBram Moolenaarsyn match	vimMtchComment	contained	'"[^"]\+$'
527d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
528071d4279SBram Moolenaar
529cfbc5ee4SBram Moolenaar" Syntax: sync {{{2
530071d4279SBram Moolenaar" ============
531df177f67SBram Moolenaarsyn keyword vimSynType	contained	sync	skipwhite	nextgroup=vimSyncC,vimSyncLines,vimSyncMatch,vimSyncError,vimSyncLinebreak,vimSyncLinecont,vimSyncRegion
5326be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncerror")
533071d4279SBram Moolenaar syn match	vimSyncError	contained	"\i\+"
534cfbc5ee4SBram Moolenaarendif
535071d4279SBram Moolenaarsyn keyword	vimSyncC	contained	ccomment	clear	fromstart
536071d4279SBram Moolenaarsyn keyword	vimSyncMatch	contained	match	skipwhite	nextgroup=vimSyncGroupName
537071d4279SBram Moolenaarsyn keyword	vimSyncRegion	contained	region	skipwhite	nextgroup=vimSynReg
538df177f67SBram Moolenaarsyn match	vimSyncLinebreak	contained	"\<linebreaks="	skipwhite	nextgroup=vimNumber
539071d4279SBram Moolenaarsyn keyword	vimSyncLinecont	contained	linecont	skipwhite	nextgroup=vimSynRegPat
540071d4279SBram Moolenaarsyn match	vimSyncLines	contained	"\(min\|max\)\=lines="	nextgroup=vimNumber
541a0f849eeSBram Moolenaarsyn match	vimSyncGroupName	contained	"\h\w*"	skipwhite	nextgroup=vimSyncKey
542071d4279SBram Moolenaarsyn match	vimSyncKey	contained	"\<groupthere\|grouphere\>"	skipwhite nextgroup=vimSyncGroup
543a0f849eeSBram Moolenaarsyn match	vimSyncGroup	contained	"\h\w*"	skipwhite	nextgroup=vimSynRegPat,vimSyncNone
544071d4279SBram Moolenaarsyn keyword	vimSyncNone	contained	NONE
545071d4279SBram Moolenaar
546cfbc5ee4SBram Moolenaar" Additional IsCommand, here by reasons of precedence {{{2
547071d4279SBram Moolenaar" ====================
548071d4279SBram Moolenaarsyn match	vimIsCommand	"<Bar>\s*\a\+"	transparent contains=vimCommand,vimNotation
549071d4279SBram Moolenaar
550cfbc5ee4SBram Moolenaar" Highlighting {{{2
551071d4279SBram Moolenaar" ============
552071d4279SBram Moolenaarsyn cluster	vimHighlightCluster		contains=vimHiLink,vimHiClear,vimHiKeyList,vimComment
5536be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimhictermerror")
5546be7f873SBram Moolenaar syn match	vimHiCtermError	contained	"[^0-9]\i*"
5556be7f873SBram Moolenaarendif
556071d4279SBram Moolenaarsyn match	vimHighlight	"\<hi\%[ghlight]\>"	skipwhite nextgroup=vimHiBang,@vimHighlightCluster
557071d4279SBram Moolenaarsyn match	vimHiBang	contained	"!"	skipwhite nextgroup=@vimHighlightCluster
558071d4279SBram Moolenaar
559071d4279SBram Moolenaarsyn match	vimHiGroup	contained	"\i\+"
560071d4279SBram Moolenaarsyn case ignore
5614770d09aSBram Moolenaarsyn keyword	vimHiAttrib	contained	none bold inverse italic reverse standout underline undercurl
562071d4279SBram Moolenaarsyn keyword	vimFgBgAttrib	contained	none bg background fg foreground
563071d4279SBram Moolenaarsyn case match
564071d4279SBram Moolenaarsyn match	vimHiAttribList	contained	"\i\+"	contains=vimHiAttrib
565071d4279SBram Moolenaarsyn match	vimHiAttribList	contained	"\i\+,"he=e-1	contains=vimHiAttrib nextgroup=vimHiAttribList
566071d4279SBram Moolenaarsyn case ignore
5676be7f873SBram Moolenaarsyn keyword	vimHiCtermColor	contained	black blue brown cyan darkblue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred magenta red white yellow
5686be7f873SBram Moolenaarsyn match	vimHiCtermColor	contained	"\<color\d\{1,3}\>"
569071d4279SBram Moolenaar
570071d4279SBram Moolenaarsyn case match
571071d4279SBram Moolenaarsyn match	vimHiFontname	contained	"[a-zA-Z\-*]\+"
572071d4279SBram Moolenaarsyn match	vimHiGuiFontname	contained	"'[a-zA-Z\-* ]\+'"
573071d4279SBram Moolenaarsyn match	vimHiGuiRgb	contained	"#\x\{6}"
574071d4279SBram Moolenaar
575cfbc5ee4SBram Moolenaar" Highlighting: hi group key=arg ... {{{2
5765c73622aSBram Moolenaarsyn cluster	vimHiCluster contains=vimGroup,vimHiGroup,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation
577071d4279SBram Moolenaarsyn region	vimHiKeyList	contained oneline start="\i\+" skip="\\\\\|\\|" end="$\||"	contains=@vimHiCluster
5786be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimhikeyerror")
579071d4279SBram Moolenaar syn match	vimHiKeyError	contained	"\i\+="he=e-1
580cfbc5ee4SBram Moolenaarendif
581071d4279SBram Moolenaarsyn match	vimHiTerm	contained	"\cterm="he=e-1		nextgroup=vimHiAttribList
582071d4279SBram Moolenaarsyn match	vimHiStartStop	contained	"\c\(start\|stop\)="he=e-1	nextgroup=vimHiTermcap,vimOption
583071d4279SBram Moolenaarsyn match	vimHiCTerm	contained	"\ccterm="he=e-1		nextgroup=vimHiAttribList
58483d1b190SBram Moolenaarsyn match	vimHiCtermFgBg	contained	"\ccterm[fb]g="he=e-1	nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
585071d4279SBram Moolenaarsyn match	vimHiGui	contained	"\cgui="he=e-1		nextgroup=vimHiAttribList
586071d4279SBram Moolenaarsyn match	vimHiGuiFont	contained	"\cfont="he=e-1		nextgroup=vimHiFontname
5874770d09aSBram Moolenaarsyn match	vimHiGuiFgBg	contained	"\cgui\%([fb]g\|sp\)="he=e-1	nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib
588071d4279SBram Moolenaarsyn match	vimHiTermcap	contained	"\S\+"		contains=vimNotation
58983d1b190SBram Moolenaarsyn match	vimHiNmbr	contained	'\d\+'
590071d4279SBram Moolenaar
591cfbc5ee4SBram Moolenaar" Highlight: clear {{{2
592071d4279SBram Moolenaarsyn keyword	vimHiClear	contained	clear	nextgroup=vimHiGroup
593071d4279SBram Moolenaar
594cfbc5ee4SBram Moolenaar" Highlight: link {{{2
59583d1b190SBram Moolenaarsyn region	vimHiLink	contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$"	contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
596d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimHiLink
597071d4279SBram Moolenaar
598cfbc5ee4SBram Moolenaar" Control Characters {{{2
599071d4279SBram Moolenaar" ==================
600071d4279SBram Moolenaarsyn match	vimCtrlChar	"[--]"
601071d4279SBram Moolenaar
602cfbc5ee4SBram Moolenaar" Beginners - Patterns that involve ^ {{{2
603071d4279SBram Moolenaar" =========
604071d4279SBram Moolenaarsyn match	vimLineComment	+^[ \t:]*".*$+	contains=@vimCommentGroup,vimCommentString,vimCommentTitle
605ff1d0d4cSBram Moolenaarsyn match	vimCommentTitle	'"\s*\%([sS]:\|\h\w*#\)\=\u\w*\(\s\+\u\w*\)*:'hs=s+1	contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup
606071d4279SBram Moolenaarsyn match	vimContinue	"^\s*\\"
607071d4279SBram Moolenaarsyn region	vimString	start="^\s*\\\z(['"]\)" skip='\\\\\|\\\z1' end="\z1" oneline keepend contains=@vimStringGroup,vimContinue
608071d4279SBram Moolenaarsyn match	vimCommentTitleLeader	'"\s\+'ms=s+1	contained
609071d4279SBram Moolenaar
61018144c84SBram Moolenaar" Searches And Globals: {{{2
61118144c84SBram Moolenaar" ====================
612e2f98b95SBram Moolenaarsyn match	vimSearch	'^\s*[/?].*'		contains=vimSearchDelim
613e2f98b95SBram Moolenaarsyn match	vimSearchDelim	'^\s*\zs[/?]\|[/?]$'	contained
6149da7ff70SBram Moolenaarsyn region	vimGlobal	matchgroup=Statement start='\<g\%[lobal]!\=/'  skip='\\.' end='/'	skipwhite nextgroup=vimSubst
6159da7ff70SBram Moolenaarsyn region	vimGlobal	matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/'	skipwhite nextgroup=vimSubst
616e2f98b95SBram Moolenaar
617cfbc5ee4SBram Moolenaar" Scripts  : perl,ruby : Benoit Cerrina {{{2
618071d4279SBram Moolenaar" =======    python,tcl: Johannes Zellner
6194b22cdb0SBram Moolenaar"            lua
620071d4279SBram Moolenaar
6213577c6faSBram Moolenaar" Allows users to specify the type of embedded script highlighting
6223577c6faSBram Moolenaar" they want:  (perl/python/ruby/tcl support)
6233577c6faSBram Moolenaar"   g:vimsyn_embed == 0   : don't embed any scripts
624f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'l' : embed lua      (but only if vim supports it)
625f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'm' : embed mzscheme (but only if vim supports it)
626f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'p' : embed perl     (but only if vim supports it)
627f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'P' : embed python   (but only if vim supports it)
628f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'r' : embed ruby     (but only if vim supports it)
629f391327aSBram Moolenaar"   g:vimsyn_embed =~# 't' : embed tcl      (but only if vim supports it)
6307cba6c06SBram Moolenaarif !exists("g:vimsyn_embed")
631a0f849eeSBram Moolenaar let g:vimsyn_embed= "lmpPr"
6327cba6c06SBram Moolenaarendif
633071d4279SBram Moolenaar
6344b22cdb0SBram Moolenaar" [-- lua --] {{{3
635adc2182cSBram Moolenaarlet s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim")
6364b22cdb0SBram Moolenaarif !filereadable(s:luapath)
637a0f849eeSBram Moolenaar for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
638a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:luapath))
639a0f849eeSBram Moolenaar   let s:luapath= fnameescape(s:luapath)
6409da7ff70SBram Moolenaar   break
6419da7ff70SBram Moolenaar  endif
6429da7ff70SBram Moolenaar endfor
6434b22cdb0SBram Moolenaarendif
644f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'l' && has("lua")) && filereadable(s:luapath)
6454b22cdb0SBram Moolenaar unlet! b:current_syntax
6464b22cdb0SBram Moolenaar exe "syn include @vimLuaScript ".s:luapath
647a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimLuaScript
648a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+		contains=@vimLuaScript
6494b22cdb0SBram Moolenaar syn cluster vimFuncBodyList	add=vimLuaRegion
6504b22cdb0SBram Moolenaarelse
6514b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+
6524b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+
6534b22cdb0SBram Moolenaarendif
6544b22cdb0SBram Moolenaarunlet s:luapath
6554b22cdb0SBram Moolenaar
656cfbc5ee4SBram Moolenaar" [-- perl --] {{{3
657adc2182cSBram Moolenaarlet s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim")
6585c73622aSBram Moolenaarif !filereadable(s:perlpath)
659a0f849eeSBram Moolenaar for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
660a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:perlpath))
661a0f849eeSBram Moolenaar   let s:perlpath= fnameescape(s:perlpath)
6629da7ff70SBram Moolenaar   break
6639da7ff70SBram Moolenaar  endif
6649da7ff70SBram Moolenaar endfor
6655c73622aSBram Moolenaarendif
666f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'p' && has("perl")) && filereadable(s:perlpath)
667071d4279SBram Moolenaar unlet! b:current_syntax
6685c73622aSBram Moolenaar exe "syn include @vimPerlScript ".s:perlpath
669a0f849eeSBram Moolenaar VimFoldp syn region vimPerlRegion  matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimPerlScript
670a0f849eeSBram Moolenaar VimFoldp syn region vimPerlRegion	matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+	contains=@vimPerlScript
6715c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimPerlRegion
672c236c16dSBram Moolenaarelse
673c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+
674c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+
6753577c6faSBram Moolenaarendif
6765c73622aSBram Moolenaarunlet s:perlpath
677071d4279SBram Moolenaar
678cfbc5ee4SBram Moolenaar" [-- ruby --] {{{3
679adc2182cSBram Moolenaarlet s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim")
6805c73622aSBram Moolenaarif !filereadable(s:rubypath)
681a0f849eeSBram Moolenaar for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
682a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:rubypath))
683a0f849eeSBram Moolenaar   let s:rubypath= fnameescape(s:rubypath)
6849da7ff70SBram Moolenaar   break
6859da7ff70SBram Moolenaar  endif
6869da7ff70SBram Moolenaar endfor
6875c73622aSBram Moolenaarendif
688f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'r' && has("ruby")) && filereadable(s:rubypath)
689071d4279SBram Moolenaar unlet! b:current_syntax
6905c73622aSBram Moolenaar exe "syn include @vimRubyScript ".s:rubypath
691a0f849eeSBram Moolenaar VimFoldr syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimRubyScript
692071d4279SBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+		contains=@vimRubyScript
6935c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimRubyRegion
694c236c16dSBram Moolenaarelse
695c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+
696c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+
697071d4279SBram Moolenaarendif
6985c73622aSBram Moolenaarunlet s:rubypath
699071d4279SBram Moolenaar
700cfbc5ee4SBram Moolenaar" [-- python --] {{{3
701adc2182cSBram Moolenaarlet s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim")
7025c73622aSBram Moolenaarif !filereadable(s:pythonpath)
703a0f849eeSBram Moolenaar for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
704a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:pythonpath))
705a0f849eeSBram Moolenaar   let s:pythonpath= fnameescape(s:pythonpath)
7069da7ff70SBram Moolenaar   break
7075c73622aSBram Moolenaar  endif
7089da7ff70SBram Moolenaar endfor
7099da7ff70SBram Moolenaarendif
710f391327aSBram Moolenaarif g:vimsyn_embed =~# 'P' && (has("python") || has("python3")) && filereadable(s:pythonpath)
711071d4279SBram Moolenaar unlet! b:current_syntax
7125c73622aSBram Moolenaar exe "syn include @vimPythonScript ".s:pythonpath
713a0f849eeSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimPythonScript
714a0f849eeSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+		contains=@vimPythonScript
715b4ff518dSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\s*<<\s*\z(.*\)$+ end=+^\z1$+		contains=@vimPythonScript
716b4ff518dSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+		contains=@vimPythonScript
7175c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimPythonRegion
718c236c16dSBram Moolenaarelse
719fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
720fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+
7213577c6faSBram Moolenaarendif
7225c73622aSBram Moolenaarunlet s:pythonpath
723071d4279SBram Moolenaar
724cfbc5ee4SBram Moolenaar" [-- tcl --] {{{3
725a0f849eeSBram Moolenaarif has("win32") || has("win95") || has("win64") || has("win16")
726a0f849eeSBram Moolenaar " apparently has("tcl") has been hanging vim on some windows systems with cygwin
727a0f849eeSBram Moolenaar let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$')
728a0f849eeSBram Moolenaarelse
729a0f849eeSBram Moolenaar let s:trytcl= 1
730a0f849eeSBram Moolenaarendif
731a6878375SBram Moolenaarif s:trytcl
732adc2182cSBram Moolenaar let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim")
7335c73622aSBram Moolenaar if !filereadable(s:tclpath)
734a0f849eeSBram Moolenaar  for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
735a0f849eeSBram Moolenaar   if filereadable(fnameescape(s:tclpath))
736a0f849eeSBram Moolenaar    let s:tclpath= fnameescape(s:tclpath)
7379da7ff70SBram Moolenaar    break
7389da7ff70SBram Moolenaar   endif
7399da7ff70SBram Moolenaar  endfor
7405c73622aSBram Moolenaar endif
741f391327aSBram Moolenaar if (g:vimsyn_embed =~# 't' && has("tcl")) && filereadable(s:tclpath)
742071d4279SBram Moolenaar  unlet! b:current_syntax
7435c73622aSBram Moolenaar  exe "syn include @vimTclScript ".s:tclpath
744a0f849eeSBram Moolenaar  VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimTclScript
745a0f849eeSBram Moolenaar  VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+	contains=@vimTclScript
7465c73622aSBram Moolenaar  syn cluster vimFuncBodyList	add=vimTclScript
747c236c16dSBram Moolenaar else
748c236c16dSBram Moolenaar  syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
749c236c16dSBram Moolenaar  syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+
7503577c6faSBram Moolenaar endif
7515c73622aSBram Moolenaar unlet s:tclpath
752a6878375SBram Moolenaarelse
753a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
754a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+
755a6878375SBram Moolenaarendif
756a6878375SBram Moolenaarunlet s:trytcl
757071d4279SBram Moolenaar
7588299df96SBram Moolenaar" [-- mzscheme --] {{{3
759adc2182cSBram Moolenaarlet s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim")
7605c73622aSBram Moolenaarif !filereadable(s:mzschemepath)
761a0f849eeSBram Moolenaar for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
762a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:mzschemepath))
763a0f849eeSBram Moolenaar   let s:mzschemepath= fnameescape(s:mzschemepath)
7649da7ff70SBram Moolenaar   break
7659da7ff70SBram Moolenaar  endif
7669da7ff70SBram Moolenaar endfor
7675c73622aSBram Moolenaarendif
768f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'm' && has("mzscheme")) && filereadable(s:mzschemepath)
7698299df96SBram Moolenaar unlet! b:current_syntax
77003413f44SBram Moolenaar let s:iskKeep= &isk
7715c73622aSBram Moolenaar exe "syn include @vimMzSchemeScript ".s:mzschemepath
77203413f44SBram Moolenaar let &isk= s:iskKeep
77303413f44SBram Moolenaar unlet s:iskKeep
774a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimMzSchemeScript
775a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+		contains=@vimMzSchemeScript
7765c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimMzSchemeRegion
777c236c16dSBram Moolenaarelse
778c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+
779c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+
7803577c6faSBram Moolenaarendif
7815c73622aSBram Moolenaarunlet s:mzschemepath
7828299df96SBram Moolenaar
783cfbc5ee4SBram Moolenaar" Synchronize (speed) {{{2
784071d4279SBram Moolenaar"============
7853577c6faSBram Moolenaarif exists("g:vimsyn_minlines")
7863577c6faSBram Moolenaar exe "syn sync minlines=".g:vimsyn_minlines
787071d4279SBram Moolenaarendif
78803413f44SBram Moolenaarexe "syn sync maxlines=".s:vimsyn_maxlines
789071d4279SBram Moolenaarsyn sync linecont	"^\s\+\\"
790071d4279SBram Moolenaarsyn sync match vimAugroupSyncA	groupthere NONE	"\<aug\%[roup]\>\s\+[eE][nN][dD]"
791071d4279SBram Moolenaar
7925c73622aSBram Moolenaar" ====================
793cfbc5ee4SBram Moolenaar" Highlighting Settings {{{2
794071d4279SBram Moolenaar" ====================
795071d4279SBram Moolenaar
7963577c6faSBram Moolenaarif !exists("g:vimsyn_noerror")
797cfbc5ee4SBram Moolenaar hi def link vimBehaveError	vimError
798cfbc5ee4SBram Moolenaar hi def link vimCollClassErr	vimError
799cfbc5ee4SBram Moolenaar hi def link vimErrSetting	vimError
800c236c16dSBram Moolenaar hi def link vimEmbedError	vimError
801cfbc5ee4SBram Moolenaar hi def link vimFTError	vimError
802cfbc5ee4SBram Moolenaar hi def link vimFunctionError	vimError
8038299df96SBram Moolenaar hi def link vimFunc         	vimError
804cfbc5ee4SBram Moolenaar hi def link vimHiAttribList	vimError
805cfbc5ee4SBram Moolenaar hi def link vimHiCtermError	vimError
806cfbc5ee4SBram Moolenaar hi def link vimHiKeyError	vimError
807cfbc5ee4SBram Moolenaar hi def link vimKeyCodeError	vimError
808cfbc5ee4SBram Moolenaar hi def link vimMapModErr	vimError
809cfbc5ee4SBram Moolenaar hi def link vimSubstFlagErr	vimError
810cfbc5ee4SBram Moolenaar hi def link vimSynCaseError	vimError
8113577c6faSBram Moolenaar hi def link vimBufnrWarn	vimWarn
812cfbc5ee4SBram Moolenaarendif
813cfbc5ee4SBram Moolenaar
814e37d50a5SBram Moolenaarhi def link vimAbb	vimCommand
815cfbc5ee4SBram Moolenaarhi def link vimAddress	vimMark
816a0f849eeSBram Moolenaarhi def link vimAugroupError	vimError
817071d4279SBram Moolenaarhi def link vimAugroupKey	vimCommand
81883d1b190SBram Moolenaarhi def link vimAuHighlight	vimHighlight
819071d4279SBram Moolenaarhi def link vimAutoCmdOpt	vimOption
820071d4279SBram Moolenaarhi def link vimAutoCmd	vimCommand
82183d1b190SBram Moolenaarhi def link vimAutoEvent	Type
822071d4279SBram Moolenaarhi def link vimAutoSet	vimCommand
82383d1b190SBram Moolenaarhi def link vimBehaveModel	vimBehave
824071d4279SBram Moolenaarhi def link vimBehave	vimCommand
82583d1b190SBram Moolenaarhi def link vimBracket	Delimiter
82683d1b190SBram Moolenaarhi def link vimCmplxRepeat	SpecialChar
82783d1b190SBram Moolenaarhi def link vimCommand	Statement
82883d1b190SBram Moolenaarhi def link vimComment	Comment
829071d4279SBram Moolenaarhi def link vimCommentString	vimString
83083d1b190SBram Moolenaarhi def link vimCommentTitle	PreProc
831071d4279SBram Moolenaarhi def link vimCondHL	vimCommand
83283d1b190SBram Moolenaarhi def link vimContinue	Special
83383d1b190SBram Moolenaarhi def link vimCtrlChar	SpecialChar
834071d4279SBram Moolenaarhi def link vimEchoHLNone	vimGroup
835071d4279SBram Moolenaarhi def link vimEchoHL	vimCommand
83683d1b190SBram Moolenaarhi def link vimElseIfErr	Error
837071d4279SBram Moolenaarhi def link vimElseif	vimCondHL
83883d1b190SBram Moolenaarhi def link vimEnvvar	PreProc
83983d1b190SBram Moolenaarhi def link vimError	Error
84083d1b190SBram Moolenaarhi def link vimFBVar	vimVar
841071d4279SBram Moolenaarhi def link vimFgBgAttrib	vimHiAttrib
84283d1b190SBram Moolenaarhi def link vimFold	Folded
843071d4279SBram Moolenaarhi def link vimFTCmd	vimCommand
844071d4279SBram Moolenaarhi def link vimFTOption	vimSynType
845071d4279SBram Moolenaarhi def link vimFuncKey	vimCommand
84683d1b190SBram Moolenaarhi def link vimFuncName	Function
84783d1b190SBram Moolenaarhi def link vimFuncSID	Special
84883d1b190SBram Moolenaarhi def link vimFuncVar	Identifier
849071d4279SBram Moolenaarhi def link vimGroupAdd	vimSynOption
8506be7f873SBram Moolenaarhi def link vimGroupName	vimGroup
851071d4279SBram Moolenaarhi def link vimGroupRem	vimSynOption
85283d1b190SBram Moolenaarhi def link vimGroupSpecial	Special
85383d1b190SBram Moolenaarhi def link vimGroup	Type
85483d1b190SBram Moolenaarhi def link vimHiAttrib	PreProc
8556be7f873SBram Moolenaarhi def link vimHiClear	vimHighlight
856071d4279SBram Moolenaarhi def link vimHiCtermFgBg	vimHiTerm
857071d4279SBram Moolenaarhi def link vimHiCTerm	vimHiTerm
858071d4279SBram Moolenaarhi def link vimHighlight	vimCommand
859071d4279SBram Moolenaarhi def link vimHiGroup	vimGroupName
860071d4279SBram Moolenaarhi def link vimHiGuiFgBg	vimHiTerm
861071d4279SBram Moolenaarhi def link vimHiGuiFont	vimHiTerm
862071d4279SBram Moolenaarhi def link vimHiGuiRgb	vimNumber
863071d4279SBram Moolenaarhi def link vimHiGui	vimHiTerm
86483d1b190SBram Moolenaarhi def link vimHiNmbr	Number
865071d4279SBram Moolenaarhi def link vimHiStartStop	vimHiTerm
86683d1b190SBram Moolenaarhi def link vimHiTerm	Type
867071d4279SBram Moolenaarhi def link vimHLGroup	vimGroup
86883d1b190SBram Moolenaarhi def link vimHLMod	PreProc
869071d4279SBram Moolenaarhi def link vimInsert	vimString
87013d5aeefSBram Moolenaarhi def link vimIskSep	Delimiter
871071d4279SBram Moolenaarhi def link vimKeyCode	vimSpecFile
87283d1b190SBram Moolenaarhi def link vimKeyword	Statement
873071d4279SBram Moolenaarhi def link vimLet	vimCommand
874071d4279SBram Moolenaarhi def link vimLineComment	vimComment
875071d4279SBram Moolenaarhi def link vimMapBang	vimCommand
876071d4279SBram Moolenaarhi def link vimMapModKey	vimFuncSID
877071d4279SBram Moolenaarhi def link vimMapMod	vimBracket
878071d4279SBram Moolenaarhi def link vimMap	vimCommand
87983d1b190SBram Moolenaarhi def link vimMark	Number
880071d4279SBram Moolenaarhi def link vimMarkNumber	vimNumber
881071d4279SBram Moolenaarhi def link vimMenuMod	vimMapMod
882071d4279SBram Moolenaarhi def link vimMenuNameMore	vimMenuName
88383d1b190SBram Moolenaarhi def link vimMenuName	PreProc
884071d4279SBram Moolenaarhi def link vimMtchComment	vimComment
88505159a0cSBram Moolenaarhi def link vimNorm	vimCommand
88683d1b190SBram Moolenaarhi def link vimNotation	Special
8875c73622aSBram Moolenaarhi def link vimNotFunc	vimCommand
888071d4279SBram Moolenaarhi def link vimNotPatSep	vimString
88983d1b190SBram Moolenaarhi def link vimNumber	Number
89083d1b190SBram Moolenaarhi def link vimOperError	Error
89183d1b190SBram Moolenaarhi def link vimOper	Operator
89283d1b190SBram Moolenaarhi def link vimOption	PreProc
89383d1b190SBram Moolenaarhi def link vimParenSep	Delimiter
894071d4279SBram Moolenaarhi def link vimPatSepErr	vimPatSep
8955c73622aSBram Moolenaarhi def link vimPatSepR	vimPatSep
89683d1b190SBram Moolenaarhi def link vimPatSep	SpecialChar
897071d4279SBram Moolenaarhi def link vimPatSepZone	vimString
8985c73622aSBram Moolenaarhi def link vimPatSepZ	vimPatSep
89983d1b190SBram Moolenaarhi def link vimPattern	Type
900071d4279SBram Moolenaarhi def link vimPlainMark	vimMark
901071d4279SBram Moolenaarhi def link vimPlainRegister	vimRegister
90283d1b190SBram Moolenaarhi def link vimRegister	SpecialChar
90383d1b190SBram Moolenaarhi def link vimScriptDelim	Comment
90483d1b190SBram Moolenaarhi def link vimSearchDelim	Statement
905e2f98b95SBram Moolenaarhi def link vimSearch	vimString
90683d1b190SBram Moolenaarhi def link vimSep	Delimiter
907071d4279SBram Moolenaarhi def link vimSetMod	vimOption
90883d1b190SBram Moolenaarhi def link vimSetSep	Statement
909071d4279SBram Moolenaarhi def link vimSetString	vimString
91083d1b190SBram Moolenaarhi def link vimSpecFile	Identifier
911071d4279SBram Moolenaarhi def link vimSpecFileMod	vimSpecFile
91283d1b190SBram Moolenaarhi def link vimSpecial	Type
91383d1b190SBram Moolenaarhi def link vimStatement	Statement
914071d4279SBram Moolenaarhi def link vimStringCont	vimString
91583d1b190SBram Moolenaarhi def link vimString	String
91683d1b190SBram Moolenaarhi def link vimSubst1	vimSubst
91783d1b190SBram Moolenaarhi def link vimSubstDelim	Delimiter
91883d1b190SBram Moolenaarhi def link vimSubstFlags	Special
91983d1b190SBram Moolenaarhi def link vimSubstSubstr	SpecialChar
920071d4279SBram Moolenaarhi def link vimSubstTwoBS	vimString
921071d4279SBram Moolenaarhi def link vimSubst	vimCommand
92283d1b190SBram Moolenaarhi def link vimSynCaseError	Error
92383d1b190SBram Moolenaarhi def link vimSynCase	Type
92483d1b190SBram Moolenaarhi def link vimSyncC	Type
92583d1b190SBram Moolenaarhi def link vimSyncError	Error
926071d4279SBram Moolenaarhi def link vimSyncGroupName	vimGroupName
927071d4279SBram Moolenaarhi def link vimSyncGroup	vimGroupName
92883d1b190SBram Moolenaarhi def link vimSyncKey	Type
92983d1b190SBram Moolenaarhi def link vimSyncNone	Type
930071d4279SBram Moolenaarhi def link vimSynContains	vimSynOption
93183d1b190SBram Moolenaarhi def link vimSynError	Error
932071d4279SBram Moolenaarhi def link vimSynKeyContainedin	vimSynContains
933071d4279SBram Moolenaarhi def link vimSynKeyOpt	vimSynOption
934071d4279SBram Moolenaarhi def link vimSynMtchGrp	vimSynOption
935071d4279SBram Moolenaarhi def link vimSynMtchOpt	vimSynOption
936071d4279SBram Moolenaarhi def link vimSynNextgroup	vimSynOption
937071d4279SBram Moolenaarhi def link vimSynNotPatRange	vimSynRegPat
93883d1b190SBram Moolenaarhi def link vimSynOption	Special
939071d4279SBram Moolenaarhi def link vimSynPatRange	vimString
940071d4279SBram Moolenaarhi def link vimSynRegOpt	vimSynOption
941071d4279SBram Moolenaarhi def link vimSynRegPat	vimString
94283d1b190SBram Moolenaarhi def link vimSynReg	Type
943071d4279SBram Moolenaarhi def link vimSyntax	vimCommand
944071d4279SBram Moolenaarhi def link vimSynType	vimSpecial
94583d1b190SBram Moolenaarhi def link vimTodo	Todo
9465c73622aSBram Moolenaarhi def link vimUnmap	vimMap
94783d1b190SBram Moolenaarhi def link vimUserAttrbCmpltFunc	Special
948071d4279SBram Moolenaarhi def link vimUserAttrbCmplt	vimSpecial
949071d4279SBram Moolenaarhi def link vimUserAttrbKey	vimOption
950071d4279SBram Moolenaarhi def link vimUserAttrb	vimSpecial
951b4ff518dSBram Moolenaarhi def link vimUserAttrbError	Error
952e2719096SBram Moolenaarhi def link vimUserCmdError	Error
95383d1b190SBram Moolenaarhi def link vimUserCommand	vimCommand
9545c73622aSBram Moolenaarhi def link vimUserFunc	Normal
9556be7f873SBram Moolenaarhi def link vimVar	Identifier
9563577c6faSBram Moolenaarhi def link vimWarn	WarningMsg
957071d4279SBram Moolenaar
958cfbc5ee4SBram Moolenaar" Current Syntax Variable: {{{2
959071d4279SBram Moolenaarlet b:current_syntax = "vim"
9606be7f873SBram Moolenaar
9616be7f873SBram Moolenaar" ---------------------------------------------------------------------
9626be7f873SBram Moolenaar" Cleanup: {{{1
963a0f849eeSBram Moolenaardelc VimFolda
964a0f849eeSBram Moolenaardelc VimFoldf
965a0f849eeSBram Moolenaardelc VimFoldl
966a0f849eeSBram Moolenaardelc VimFoldm
967a0f849eeSBram Moolenaardelc VimFoldp
968a0f849eeSBram Moolenaardelc VimFoldP
969a0f849eeSBram Moolenaardelc VimFoldr
970a0f849eeSBram Moolenaardelc VimFoldt
9716be7f873SBram Moolenaarlet &cpo = s:keepcpo
9726be7f873SBram Moolenaarunlet s:keepcpo
973071d4279SBram Moolenaar" vim:ts=18  fdm=marker
974