xref: /vim-8.2.3635/runtime/syntax/vim.vim (revision d2ea7cf1)
1071d4279SBram Moolenaar" Vim syntax file
2*d2ea7cf1SBram Moolenaar" Language:	Vim 8.2 script
34f4d51a9SBram Moolenaar" Maintainer:	Charles E. Campbell <[email protected]>
4*d2ea7cf1SBram Moolenaar" Last Change:	May 20, 2021
5*d2ea7cf1SBram Moolenaar" Version:	8.2-03
66d5ad4c4SBram Moolenaar" URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM
7071d4279SBram Moolenaar" Automatically generated keyword lists: {{{1
8071d4279SBram Moolenaar
9071d4279SBram Moolenaar" Quit when a syntax file was already loaded {{{2
10071d4279SBram Moolenaarif exists("b:current_syntax")
11071d4279SBram Moolenaar  finish
12071d4279SBram Moolenaarendif
136be7f873SBram Moolenaarlet s:keepcpo= &cpo
146be7f873SBram Moolenaarset cpo&vim
15071d4279SBram Moolenaar
16071d4279SBram Moolenaar" vimTodo: contains common special-notices for comments {{{2
17071d4279SBram Moolenaar" Use the vimCommentGroup cluster to add your own.
18e2719096SBram Moolenaarsyn keyword vimTodo contained	COMBAK	FIXME	TODO	XXX
19217ad920SBram Moolenaarsyn cluster vimCommentGroup	contains=vimTodo,@Spell
20071d4279SBram Moolenaar
21071d4279SBram Moolenaar" regular vim commands {{{2
22*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	a ar[gs] argl[ocal] ba[ll] bl[ast] brea[k] buffers ca caf[ter] cbo[ttom] cex[pr] cgete[xpr] cl[ist] cn[ext] colo[rscheme] cons[t] cs d[elete] delel delf[unction] dif[fupdate] difft[his] dli[st] ds[earch] echoc[onsole] em[enu] endw[hile] export filt[er] fo[ld] fu[nction] gvim helpt[ags] iabc[lear] import isp[lit] keepa l[ist] laf[ter] lbel[ow] lcscope lf[ile] lgr[ep] lli[st] lnf[ile] lol[der] lt[ag] lw[indow] menut[ranslate] mkvie[w] nbc[lose] noh[lsearch] ol[dfiles] pa[ckadd] po[p] prof[ile] pta[g] ptr[ewind] py3f[ile] pythonx quita[ll] redraws[tatus] rew[ind] rubyf[ile] sIg sa[rgument] sba[ll] sbr[ewind] scl scscope sfir[st] sgl sic sin sm[ap] snoreme spelld[ump] spellw[rong] srg sta[g] sts[elect] sus[pend] syncbind tabN[ext] tabl[ast] tabr[ewind] tcld[o] tj[ump] tlu tno[remap] tu[nmenu] undol[ist] v vie[w] vmapc[lear] wa[ll] winp[os] wundo xme xr[estore]
23*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	ab arga[dd] argu[ment] bad[d] bm[odified] breaka[dd] bun[load] cabc[lear] cal[l] cc cf[ile] changes cla[st] cnew[er] com cope[n] cscope debug delep dell diffg[et] dig[raphs] do dsp[lit] echoe[rr] en[dif] ene[w] exu[sage] fin[d] foldc[lose] g h[elp] hi if in iuna[bbrev] keepalt la[st] lan[guage] lbo[ttom] ld[o] lfdo lgrepa[dd] lma lo[adview] lop[en] lua m[ove] mes[sages] mod[e] nbs[tart] nor omapc[lear] packl[oadall] popu[p] profd[el] ptf[irst] pts[elect] py3f[ile] pyx r[ead] redrawt[abline] ri[ght] rundo sIl sal[l] sbf[irst] sc scp se[t] sg sgn sie sip sme snoremenu spelli[nfo] spr[evious] sri star[tinsert] substitutepattern sv[iew] syntime tabc[lose] tabm[ove] tabs tclf[ile] tl[ast] tlunmenu to[pleft] tunma[p] unh[ide] var vim9[cmd] vne[w] wh[ile] wn[ext] wv[iminfo] xmenu xunme
24*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	abc[lear] argd[elete] as[cii] balt bn[ext] breakd[el] bw[ipeout] cabo[ve] cat[ch] ccl[ose] cfdo chd[ir] class cnf[ile] comc[lear] cp[revious] cstag debugg[reedy] deletel delm[arks] diffo[ff] dir doau e[dit] echom[sg] enddef eval f[ile] fina[lly] foldd[oopen] go[to] ha[rdcopy] hid[e] ij[ump] inor j[oin] keepj[umps] lab[ove] lat lc[d] le[ft] lfir[st] lh[elpgrep] lmak[e] loadk lp[revious] luado ma[rk] mk[exrc] mz[scheme] new nore on[ly] pc[lose] pp[op] promptf[ind] ptj[ump] pu[t] py[thon] pyxdo rec[over] reg[isters] rightb[elow] rv[iminfo] sIn san[dbox] sbl[ast] scI scr[iptnames] setf[iletype] sgI sgp sig sir smenu so[urce] spellr[are] sr srl startg[replace] substituterepeat sw[apname] t tabd[o] tabn[ext] tags te[aroff] tlm tm[enu] tp[revious] type unl ve[rsion] vim9s[cript] vs[plit] win[size] wp[revious] x[it] xnoreme xunmenu
25*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	abo[veleft] argdo au bd[elete] bo[tright] breakl[ist] cN[ext] cad[dbuffer] cb[uffer] cd cfir[st] che[ckpath] cle[arjumps] cnor comp[iler] cpf[ile] cun def deletep delp diffp[atch] disa[ssemble] doaut ea echon endf[unction] ex files fini[sh] folddoc[losed] gr[ep] helpc[lose] his[tory] il[ist] interface ju[mps] keepp[atterns] lad[dexpr] later lch[dir] lefta[bove] lg[etfile] lhi[story] lmapc[lear] loadkeymap lpf[ile] luafile mak[e] mks[ession] mzf[ile] nmapc[lear] nos[wapfile] opt[ions] pe[rl] pre[serve] promptr[epl] ptl[ast] pw[d] pydo pyxfile red[o] res[ize] ru[ntime] sI sIp sav[eas] sbm[odified] sce scripte[ncoding] setg[lobal] sgc sgr sign sl[eep] smile sor[t] spellr[epall] srI srn startr[eplace] sun[hide] sy tN[ext] tabe[dit] tabnew tc[l] ter[minal] tlmenu tma[p] tr[ewind] u[ndo] unlo[ckvar] verb[ose] vim[grep] wN[ext] winc[md] wq xa[ll] xnoremenu xwininfo
26*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	addd arge[dit] bN[ext] bel[owright] bp[revious] bro[wse] cNf[ile] cadde[xpr] cbe[fore] cdo cg[etfile] checkt[ime] clo[se] co[py] con[tinue] cq[uit] cuna[bbrev] defc[ompile] deletl dep diffpu[t] dj[ump] dp earlier el[se] endfo[r] exi[t] filet fir[st] foldo[pen] grepa[dd] helpf[ind] i imapc[lear] intro k lN[ext] laddb[uffer] lb[uffer] lcl[ose] leg[acy] lgetb[uffer] ll lne[xt] loc[kmarks] lr[ewind] lv[imgrep] marks mksp[ell] n[ext] noa nu[mber] ownsyntax ped[it] prev[ious] ps[earch] ptn[ext] py3 pyf[ile] q[uit] redi[r] ret[ab] rub[y] sIc sIr sbN[ext] sbn[ext] scg scriptv[ersion] setl[ocal] sge sh[ell] sil[ent] sla[st] sn[ext] sp[lit] spellr[rare] src srp stj[ump] sunme syn ta[g] tabf[ind] tabo[nly] tcd tf[irst] tln tmapc[lear] try una[bbreviate] uns[ilent] vert[ical] vimgrepa[dd] w[rite] windo wqa[ll] xmapc[lear] xprop y[ank]
27*d2ea7cf1SBram Moolenaarsyn keyword vimCommand contained	al[l] argg[lobal] b[uffer] bf[irst] br[ewind] bufdo c[hange] caddf[ile] cbel[ow] ce[nter] cgetb[uffer] chi[story] cmapc[lear] col[der] conf[irm] cr[ewind] cw[indow] delc[ommand] deletp di[splay] diffs[plit] dl dr[op] ec elsei[f] endt[ry] exp filetype fix[del] for gui helpg[rep] ia imp is[earch] kee[pmarks] lNf[ile] laddf[ile] lbe[fore] lcs lex[pr] lgete[xpr] lla[st] lnew[er] lockv[ar] ls lvimgrepa[dd] mat[ch] mkv[imrc] nb[key] noautocmd o[pen] p[rint] perld[o] pro ptN[ext] ptp[revious] py3do python3 qa[ll] redr[aw] retu[rn] rubyd[o] sIe sN[ext] sb[uffer] sbp[revious] sci scs sf[ind] sgi si sim[alt] sm[agic] sno[magic] spe[llgood] spellu[ndo] sre[wind] st[op] stopi[nsert] sunmenu sync tab tabfir[st] tabp[revious] tch[dir] th[row] tlnoremenu tn[ext] ts[elect] undoj[oin] up[date] vi[sual] viu[sage]
28e2719096SBram Moolenaarsyn match   vimCommand contained	"\<z[-+^.=]\=\>"
29*d2ea7cf1SBram Moolenaarsyn keyword vimStdPlugin contained	Arguments Asm Break Cfilter Clear Continue DiffOrig Evaluate Finish Gdb Lfilter Man N[ext] Over P[rint] Program Run S Source Step Stop Termdebug TermdebugCommand TOhtml Winbar XMLent XMLns
30071d4279SBram Moolenaar
31071d4279SBram Moolenaar" vimOptions are caught only when contained in a vimSet {{{2
32*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	acd ambw arshape aw backupskip beval bk bri bufhidden cdpath cindent cm colorcolumn completeopt cp cscopeprg csprg culopt def diffexpr ea ei ep eventignore fdi fenc fileformat fkmap foldexpr foldopen fsync gfw guicursor guitabtooltip hidden hlg imactivatefunc imi inc inex isident keymap langnoremap linespace loadplugins ma matchtime mef mle modelineexpr mousehide mps nu opendevice paste pex pmbfn printencoding pt pythonhome quoteescape renderoptions rlc ruf scb scrolloff selectmode shellquote shiftwidth showmode sj smd spell spl srr startofline suffixes switchbuf ta tagfunc tbi term termwintype tgc titlelen toolbariconsize ttimeout ttymouse twt undofile varsofttabstop verbosefile viminfofile wak weirdinvert wig wildoptions winheight wm wrapscan
33*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	ai anti asd awa balloondelay bevalterm bkc briopt buflisted cedit cink cmdheight columns completepopup cpo cscopequickfix csqf cursorbind define diffopt ead ek equalalways ex fdl fencs fileformats flp foldignore foldtext ft ghr guifont helpfile highlight hls imactivatekey iminsert include inf isk keymodel langremap lisp lpl macatsui maxcombine menc mls modelines mousem msm number operatorfunc pastetoggle pexpr popt printexpr pumheight pythonthreedll rdt report rnu ruler scf scrollopt sessionoptions shellredir shm showtabline slm sn spellcapcheck splitbelow ss statusline suffixesadd sws tabline taglength tbidi termbidi terse tgst titleold top ttimeoutlen ttyscroll tx undolevels vartabstop vfile virtualedit warn wfh wildchar wim winminheight wmh write
34*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	akm antialias autochdir background ballooneval bex bl brk buftype cf cinkeys cmdwinheight com completeslash cpoptions cscoperelative csre cursorcolumn delcombine digraph eadirection emo equalprg expandtab fdls fex fileignorecase fml foldlevel formatexpr gcr go guifontset helpheight history hlsearch imaf ims includeexpr infercase iskeyword keywordprg laststatus lispwords lrm magic maxfuncdepth menuitems mm modifiable mousemodel mzq numberwidth opfunc patchexpr pfn pp printfont pumwidth pythonthreehome re restorescreen ro rulerformat scl scs sft shellslash shortmess shq sm so spellfile splitright ssl stl sw sxe tabpagemax tagrelative tbis termencoding textauto thesaurus titlestring tpm ttm ttytype uc undoreload vb vi visualbell wb wfw wildcharm winaltkeys winminwidth wmnu writeany
35*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	al ar autoindent backspace balloonevalterm bexpr bo browsedir casemap cfu cino cmp comments concealcursor cpp cscopetag cst cursorline dex dip eb emoji errorbells exrc fdm ff filetype fmr foldlevelstart formatlistpat gd gp guifontwide helplang hk ic imak imsearch incsearch insertmode isp km lazyredraw list ls makeef maxmapdepth mfd mmd modified mouses mzquantum nuw osfiletype patchmode ph preserveindent printheader pvh pyx readonly revins rop runtimepath scr sect sh shelltemp shortname si smartcase softtabstop spelllang spo ssop stmp swapfile sxq tabstop tags tbs termguicolors textmode tildeop tl tr tty tw udf updatecount vbs viewdir vop wc wh wildignore wincolor winptydll wmw writebackup
36*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	aleph arab autoread backup balloonexpr bg bomb bs cb ch cinoptions cms commentstring conceallevel cpt cscopetagorder csto cursorlineopt dg dir ed enc errorfile fcl fdn ffs fillchars fo foldmarker formatoptions gdefault grepformat guiheadroom hf hkmap icon imc imsf inde is isprint kmp lbr listchars lsp makeencoding maxmem mh mmp more mouseshape mzschemedll odev pa path pheader previewheight printmbcharset pvp pyxversion redrawtime ri rs sb scroll sections shcf shelltype showbreak sidescroll smartindent sol spelloptions spr st sts swapsync syn tag tagstack tc termwinkey textwidth timeout tm ts ttybuiltin twk udir updatetime vdir viewoptions vsts wcm whichwrap wildignorecase window winwidth wop writedelay
37*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	allowrevins arabic autoshelldir backupcopy bdir bh breakat bsdir cc charconvert cinw co compatible confirm crb cscopeverbose csverb cwh dict directory edcompatible encoding errorformat fcs fdo fic fixendofline foldclose foldmethod formatprg gfm grepprg guioptions hh hkmapp iconstring imcmdline imst indentexpr isf joinspaces kp lcs lm luadll makeprg maxmempattern mis mmt mouse mouset mzschemegcdll oft packpath pdev pi previewpopup printmbfont pvw qe regexpengine rightleft rtp sbo scrollbind secure shell shellxescape showcmd sidescrolloff smarttab sp spellsuggest sps sta su swb synmaxcol tagbsearch tal tcldll termwinscroll tf timeoutlen to tsl ttyfast tws ul ur ve vif vts wcr wi wildmenu winfixheight wiv wrap ws
38*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	altkeymap arabicshape autowrite backupdir bdlay bin breakindent bsk ccv ci cinwords cocu complete copyindent cryptmethod csl cuc debug dictionary display ef endofline esckeys fdc fdt fileencoding fixeol foldcolumn foldminlines fp gfn gtl guipty hi hkp ignorecase imd imstatusfunc indentkeys isfname js langmap linebreak lmap lw mat maxmemtot mkspellmem mod mousef mousetime nf ofu para penc pm previewwindow printoptions pw qftf relativenumber rightleftcmd ru sbr scrollfocus sel shellcmdflag shellxquote showfulltag signcolumn smc spc spf sr stal sua swf syntax tagcase tb tenc termwinsize tfu title toolbar tsr ttym twsl undodir ut verbose viminfo wa wd wic wildmode winfixwidth wiw wrapmargin ww
39*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	ambiwidth ari autowriteall backupext belloff binary breakindentopt bt cd cin clipboard cole completefunc cot cscopepathcomp cspc cul deco diff dy efm eol et fde fen fileencodings fk foldenable foldnestmax fs gfs gtt guitablabel hid hl im imdisable imstyle indk isi key langmenu lines lnr lz matchpairs mco ml modeline mousefocus mp nrformats omnifunc paragraphs perldll pmbcs printdevice prompt pythondll quickfixtextfunc remap rl rubydll sc scrolljump selection shellpipe shiftround showmatch siso
40071d4279SBram Moolenaar
41071d4279SBram Moolenaar" vimOptions: These are the turn-off setting variants {{{2
42*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	noacd noallowrevins noantialias noarabic noarshape noautoindent noautowrite noawa noballoonevalterm 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 noinsertmode nojs nolazyredraw nolisp noloadplugins nolz nomagic nomle nomodelineexpr nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscrollbind 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
43*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	noai noaltkeymap noar noarabicshape noasd noautoread noautowriteall nobackup nobeval 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 nois nolangnoremap nolbr nolist nolpl noma nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscf noscrollfocus 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
44*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	noakm noanti noarab noari noautochdir noautoshelldir noaw noballooneval nobevalterm 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 nojoinspaces nolangremap nolinebreak nolnr nolrm nomacatsui noml nomodeline
45071d4279SBram Moolenaar
46071d4279SBram Moolenaar" vimOptions: These are the invertible variants {{{2
47*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	invacd invallowrevins invantialias invarabic invarshape invautoindent invautowrite invawa invballoonevalterm 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 invinsertmode invjs invlazyredraw invlisp invloadplugins invlz invmagic invmle invmodelineexpr invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscrollbind 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
48*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	invai invaltkeymap invar invarabicshape invasd invautoread invautowriteall invbackup invbeval 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 invis invlangnoremap invlbr invlist invlpl invma invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscf invscrollfocus 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
49*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	invakm invanti invarab invari invautochdir invautoshelldir invaw invballooneval invbevalterm 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 invjoinspaces invlangremap invlinebreak invlnr invlrm invmacatsui invml invmodeline
50071d4279SBram Moolenaar
51071d4279SBram Moolenaar" termcap codes (which can also be set) {{{2
52*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	t_8b t_8u t_AF t_AL t_bc t_BE t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_EI t_F2 t_F4 t_F6 t_F8 t_fd t_fs t_IE t_k1 t_k2 t_K3 t_K4 t_K5 t_K6 t_K7 t_K8 t_K9 t_kb t_KB t_kd t_KD t_KE 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_PE t_PS t_RB t_RC t_RF t_Ri t_RI t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_Si t_SI t_so t_sr t_SR t_ST t_te t_Te t_TE t_ti t_TI t_ts t_Ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_VS t_WP t_WS t_xn t_xs t_ZH t_ZR
53*d2ea7cf1SBram Moolenaarsyn keyword vimOption contained	t_8f t_AB t_al t_AU t_BD t_cd t_Ce t_cm t_cs t_CS t_da t_dl t_EC t_F1 t_F3 t_F5 t_F7 t_F9 t_fe t_GP t_IS t_K1 t_k3 t_k4 t_k5 t_k6 t_k7 t_k8 t_k9 t_KA t_kB t_KC t_kD t_ke t_KF
54b0d45e7fSBram Moolenaarsyn match   vimOption contained	"t_%1"
55071d4279SBram Moolenaarsyn match   vimOption contained	"t_#2"
56071d4279SBram Moolenaarsyn match   vimOption contained	"t_#4"
576d5ad4c4SBram Moolenaarsyn match   vimOption contained	"t_@7"
58b0d45e7fSBram Moolenaarsyn match   vimOption contained	"t_*7"
59b0d45e7fSBram Moolenaarsyn match   vimOption contained	"t_&8"
60b0d45e7fSBram Moolenaarsyn match   vimOption contained	"t_%i"
61071d4279SBram Moolenaarsyn match   vimOption contained	"t_k;"
62071d4279SBram Moolenaar
6303413f44SBram Moolenaar" unsupported settings: some were supported by vi but don't do anything in vim {{{2
6403413f44SBram Moolenaar" others have been dropped along with msdos support
6503413f44SBram 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
66071d4279SBram Moolenaar
6780a94a58SBram Moolenaar" AutoCmd Events {{{2
68071d4279SBram Moolenaarsyn case ignore
694072ba57SBram Moolenaarsyn keyword vimAutoEvent contained	BufAdd BufDelete BufFilePost BufHidden BufNew BufRead BufReadPost BufUnload BufWinLeave BufWrite BufWritePost CmdlineChanged CmdlineEnter CmdlineLeave CmdUndefined CmdwinEnter CmdwinLeave ColorScheme ColorSchemePre CompleteChanged CompleteDone CompleteDonePre CursorHold CursorHoldI CursorMoved CursorMovedI DiffUpdated DirChanged EncodingChanged ExitPre 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 InsertLeavePre MenuPopup OptionSet QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SafeState SafeStateAgain SessionLoadPost ShellCmdPost ShellFilterPost SigUSR1 SourceCmd SourcePost SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabClosed TabEnter TabLeave TabNew TermChanged TerminalOpen TerminalWinOpen TermResponse TextChanged TextChangedI TextChangedP TextYankPost User VimEnter VimLeave VimLeavePre VimResized VimResume VimSuspend WinEnter WinLeave WinNew
704072ba57SBram Moolenaarsyn keyword vimAutoEvent contained	BufCreate BufEnter BufFilePre BufLeave BufNewFile BufReadCmd BufReadPre BufWinEnter BufWipeout BufWriteCmd BufWritePre
71071d4279SBram Moolenaar
72071d4279SBram Moolenaar" Highlight commonly used Groupnames {{{2
73b2c0350cSBram 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
74071d4279SBram Moolenaar
75071d4279SBram Moolenaar" Default highlighting groups {{{2
761ff14ba2SBram Moolenaarsyn keyword vimHLGroup contained	ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr LineNrAbove LineNrBelow MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC StatusLineTerm TabLine TabLineFill TabLineSel Terminal Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
77293ee4d4SBram Moolenaarsyn match vimHLGroup contained	"Conceal"
78071d4279SBram Moolenaarsyn case match
79071d4279SBram Moolenaar
80071d4279SBram Moolenaar" Function Names {{{2
81*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	abs argc assert_equal assert_match atan browsedir bufname byteidxcomp charcol ch_evalexpr ch_logfile ch_sendraw complete cos deepcopy echoraw eventhandler exp feedkeys findfile fmod foldlevel funcref getbufline getcharpos getcmdwintype getenv getftype getmarklist getqflist gettabvar getwinpos glob2regpat hasmapto hlexists index inputsave isdirectory job_getchannel job_stop json_encode line listener_flush luaeval mapset matchdelete matchstr mkdir or popup_clear popup_filter_yesno popup_hide popup_notification prevnonblank prompt_setprompt prop_remove prop_type_list pyxeval readdirex reltime remote_peek rename rubyeval screenpos searchdecl serverlist setcharsearch setline setreg sha256 sign_getplaced sign_unplace slice sound_playfile sqrt str2nr strftime strpart submatch synID systemlist taglist term_dumpload term_getcursor term_getstatus term_scrape term_setrestore test_autochdir test_ignore_error test_null_job test_override test_srand_seed timer_start tr undofile visualmode win_execute winheight winnr win_splitmove
82*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	acos argidx assert_equalfile assert_nobeep atan2 bufadd bufnr call charidx ch_evalraw ch_open ch_setoptions complete_add cosh delete empty executable expand filereadable flatten fnameescape foldtext function getbufvar getcharsearch getcompletion getfontname getimstatus getmatches getreg gettabwinvar getwinposx globpath histadd hlID input inputsecret isinf job_info join keys line2byte listener_remove map match matchend matchstrpos mode pathshorten popup_close popup_findinfo popup_list popup_setoptions printf prop_add prop_type_add pum_getpos rand readfile reltimefloat remote_read repeat screenattr screenrow searchpair setbufline setcmdpos setloclist settabvar shellescape sign_jump sign_unplacelist sort sound_stop srand strcharlen strgetchar strptime substitute synIDattr tabpagebuflist tan term_dumpwrite term_getjob term_gettitle term_sendkeys term_setsize test_feedinput test_null_blob test_null_list test_refcount test_unknown timer_stop trim undotree wildmenumode win_findbuf win_id2tabwin winrestcmd winwidth
83*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	add arglistid assert_exception assert_notequal balloon_gettext bufexists bufwinid ceil ch_canread ch_getbufnr ch_read ch_status complete_check count deletebufline environ execute expandcmd filewritable flattennew fnamemodify foldtextresult garbagecollect getchangelist getcmdline getcurpos getfperm getjumplist getmousepos getreginfo gettagstack getwinposy has histdel hostname inputdialog insert islocked job_setoptions js_decode len lispindent localtime maparg matchadd matchfuzzy max mzeval perleval popup_create popup_findpreview popup_locate popup_settext prompt_getprompt prop_clear prop_type_change pumvisible range reduce reltimestr remote_send resolve screenchar screenstring searchpairpos setbufvar setcursorcharpos setmatches settabwinvar shiftwidth sign_place simplify sound_clear spellbadword state strcharpart stridx strridx swapinfo synIDtrans tabpagenr tanh term_getaltscreen term_getline term_gettty term_setansicolors term_start test_garbagecollect_now test_null_channel test_null_partial test_scrollbar test_void timer_stopall trunc uniq winbufnr win_getid win_id2win winrestview wordcount
84*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	and argv assert_fails assert_notmatch balloon_show buflisted bufwinnr changenr ch_close ch_getjob ch_readblob cindent complete_info cscope_connection did_filetype escape exepath extend filter float2nr foldclosed foreground get getchar getcmdpos getcursorcharpos getfsize getline getpid getregtype gettext getwinvar has_key histget iconv inputlist interrupt isnan job_start js_encode libcall list2str log mapcheck matchaddpos matchfuzzypos menu_info nextnonblank popup_atcursor popup_dialog popup_getoptions popup_menu popup_show prompt_setcallback prop_find prop_type_delete py3eval readblob reg_executing remote_expr remote_startserver reverse screenchars search searchpos setcellwidths setenv setpos settagstack sign_define sign_placelist sin soundfold spellsuggest str2float strchars string strtrans swapname synstack tabpagewinnr tempname term_getansicolors term_getscrolled terminalprops term_setapi term_wait test_garbagecollect_soon test_null_dict test_null_string test_setmouse timer_info tolower type values wincol win_gettype winlayout winsaveview writefile
85*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	append asin assert_false assert_report balloon_split bufload byte2line char2nr ch_close_in ch_info ch_readraw clearmatches confirm cursor diff_filler eval exists extendnew finddir floor foldclosedend fullcommand getbufinfo getcharmod getcmdtype getcwd getftime getloclist getpos gettabinfo getwininfo glob haslocaldir histnr indent inputrestore invert items job_status json_decode libcallnr listener_add log10 mapnew matcharg matchlist min nr2char popup_beval popup_filter_menu popup_getpos popup_move pow prompt_setinterrupt prop_list prop_type_get pyeval readdir reg_recording remote_foreground remove round screencol searchcount server2client setcharpos setfperm setqflist setwinvar sign_getdefined sign_undefine sinh sound_playevent split str2list strdisplaywidth strlen strwidth synconcealed system tagfiles term_dumpdiff term_getattr term_getsize term_list term_setkill test_alloc_fail test_getvalue test_null_function test_option_not_set test_settime timer_pause toupper typename virtcol windowsversion win_gotoid winline win_screenpos xor
86*d2ea7cf1SBram Moolenaarsyn keyword vimFuncName contained	appendbufline assert_beeps assert_inrange assert_true browse bufloaded byteidx charclass chdir ch_log ch_sendexpr col copy debugbreak diff_hlID
87071d4279SBram Moolenaar
88ac7bd638SBram Moolenaar"--- syntax here and above generated by mkvimvim ---
89cfbc5ee4SBram Moolenaar" Special Vim Highlighting (not automatic) {{{1
90071d4279SBram Moolenaar
911ff14ba2SBram Moolenaar" Set up folding commands {{{2
921ff14ba2SBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[afhlmpPrt]'
93f391327aSBram Moolenaar if g:vimsyn_folding =~# 'a'
94a0f849eeSBram Moolenaar  com! -nargs=* VimFolda <args> fold
95a0f849eeSBram Moolenaar else
96a0f849eeSBram Moolenaar  com! -nargs=* VimFolda <args>
97a0f849eeSBram Moolenaar endif
98f391327aSBram Moolenaar if g:vimsyn_folding =~# 'f'
99a0f849eeSBram Moolenaar  com! -nargs=* VimFoldf <args> fold
100a0f849eeSBram Moolenaar else
101a0f849eeSBram Moolenaar  com! -nargs=* VimFoldf <args>
102a0f849eeSBram Moolenaar endif
1031ff14ba2SBram Moolenaar if g:vimsyn_folding =~# 'h'
1041ff14ba2SBram Moolenaar  com! -nargs=* VimFoldh <args> fold
1051ff14ba2SBram Moolenaar else
1061ff14ba2SBram Moolenaar  com! -nargs=* VimFoldh <args>
1071ff14ba2SBram Moolenaar endif
108f391327aSBram Moolenaar if g:vimsyn_folding =~# 'l'
109a0f849eeSBram Moolenaar  com! -nargs=* VimFoldl <args> fold
110a0f849eeSBram Moolenaar else
111a0f849eeSBram Moolenaar  com! -nargs=* VimFoldl <args>
112a0f849eeSBram Moolenaar endif
113f391327aSBram Moolenaar if g:vimsyn_folding =~# 'm'
114a0f849eeSBram Moolenaar  com! -nargs=* VimFoldm <args> fold
115a0f849eeSBram Moolenaar else
116a0f849eeSBram Moolenaar  com! -nargs=* VimFoldm <args>
117a0f849eeSBram Moolenaar endif
118f391327aSBram Moolenaar if g:vimsyn_folding =~# 'p'
119a0f849eeSBram Moolenaar  com! -nargs=* VimFoldp <args> fold
120a0f849eeSBram Moolenaar else
121a0f849eeSBram Moolenaar  com! -nargs=* VimFoldp <args>
122a0f849eeSBram Moolenaar endif
123f391327aSBram Moolenaar if g:vimsyn_folding =~# 'P'
124a0f849eeSBram Moolenaar  com! -nargs=* VimFoldP <args> fold
125a0f849eeSBram Moolenaar else
126a0f849eeSBram Moolenaar  com! -nargs=* VimFoldP <args>
127a0f849eeSBram Moolenaar endif
128f391327aSBram Moolenaar if g:vimsyn_folding =~# 'r'
129a0f849eeSBram Moolenaar  com! -nargs=* VimFoldr <args> fold
130a0f849eeSBram Moolenaar else
131a0f849eeSBram Moolenaar  com! -nargs=* VimFoldr <args>
132a0f849eeSBram Moolenaar endif
133f391327aSBram Moolenaar if g:vimsyn_folding =~# 't'
134a0f849eeSBram Moolenaar  com! -nargs=* VimFoldt <args> fold
135a0f849eeSBram Moolenaar else
136a0f849eeSBram Moolenaar  com! -nargs=* VimFoldt <args>
137a0f849eeSBram Moolenaar endif
138a0f849eeSBram Moolenaarelse
139a0f849eeSBram Moolenaar com! -nargs=*	VimFolda	<args>
140a0f849eeSBram Moolenaar com! -nargs=*	VimFoldf	<args>
1411ff14ba2SBram Moolenaar com! -nargs=*	VimFoldh	<args>
142a0f849eeSBram Moolenaar com! -nargs=*	VimFoldl	<args>
143a0f849eeSBram Moolenaar com! -nargs=*	VimFoldm	<args>
144a0f849eeSBram Moolenaar com! -nargs=*	VimFoldp	<args>
145a0f849eeSBram Moolenaar com! -nargs=*	VimFoldP	<args>
146a0f849eeSBram Moolenaar com! -nargs=*	VimFoldr	<args>
147a0f849eeSBram Moolenaar com! -nargs=*	VimFoldt	<args>
148a0f849eeSBram Moolenaarendif
149a0f849eeSBram Moolenaar
1501ff14ba2SBram Moolenaar" commands not picked up by the generator (due to non-standard format) {{{2
151fa01c39dSBram Moolenaarsyn keyword vimCommand contained	py3
152fa01c39dSBram Moolenaar
1533577c6faSBram Moolenaar" Deprecated variable options {{{2
1543577c6faSBram Moolenaarif exists("g:vim_minlines")
1553577c6faSBram Moolenaar let g:vimsyn_minlines= g:vim_minlines
1563577c6faSBram Moolenaarendif
1573577c6faSBram Moolenaarif exists("g:vim_maxlines")
1583577c6faSBram Moolenaar let g:vimsyn_maxlines= g:vim_maxlines
1593577c6faSBram Moolenaarendif
1603577c6faSBram Moolenaarif exists("g:vimsyntax_noerror")
1613577c6faSBram Moolenaar let g:vimsyn_noerror= g:vimsyntax_noerror
1623577c6faSBram Moolenaarendif
1633577c6faSBram Moolenaar
16403413f44SBram Moolenaar" Variable options {{{2
16503413f44SBram Moolenaarif exists("g:vim_maxlines")
16603413f44SBram Moolenaar let s:vimsyn_maxlines= g:vim_maxlines
16703413f44SBram Moolenaarelse
16803413f44SBram Moolenaar let s:vimsyn_maxlines= 60
16903413f44SBram Moolenaarendif
17003413f44SBram Moolenaar
171cfbc5ee4SBram Moolenaar" Numbers {{{2
172071d4279SBram Moolenaar" =======
1734072ba57SBram Moolenaarsyn match vimNumber	'\<\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
1744072ba57SBram Moolenaarsyn match vimNumber	'-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\='  skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
1754072ba57SBram Moolenaarsyn match vimNumber	'\<0[xX]\x\+'		       skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
1764072ba57SBram Moolenaarsyn match vimNumber	'\%(^\|\A\)\zs#\x\{6}'             	       skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
1774072ba57SBram Moolenaarsyn match vimNumber	'\<0[zZ][a-zA-Z0-9.]\+'                    skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
1784072ba57SBram Moolenaarsyn match vimNumber	'0[0-7]\+'		       skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
179*d2ea7cf1SBram Moolenaarsyn match vimNumber	'0[bB][01]\+'		       skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
180071d4279SBram Moolenaar
1816c1e1570SBram Moolenaar" All vimCommands are contained by vimIsCommand. {{{2
182d2855f54SBram Moolenaarsyn match vimCmdSep	"[:|]\+"	skipwhite nextgroup=vimAddress,vimAutoCmd,vimEcho,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
183293ee4d4SBram Moolenaarsyn match vimIsCommand	"\<\h\w*\>"	contains=vimCommand
18483d1b190SBram Moolenaarsyn match vimVar	      contained	"\<\h[a-zA-Z0-9#_]*\>"
185f37506f6SBram Moolenaarsyn match vimVar		"\<[bwglstav]:\h[a-zA-Z0-9#_]*\>"
186d2855f54SBram Moolenaarsyn match vimVar	      	"\s\zs&\a\+\>"
187f37506f6SBram Moolenaarsyn match vimFBVar      contained   "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>"
1883b1ddfedSBram Moolenaarsyn keyword vimCommand  contained	in
189071d4279SBram Moolenaar
190cfbc5ee4SBram Moolenaar" Insertions And Appends: insert append {{{2
191071d4279SBram Moolenaar" =======================
192071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$"		matchgroup=vimCommand end="^\.$""
193071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$"		matchgroup=vimCommand end="^\.$""
194071d4279SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$"		matchgroup=vimCommand end="^\.$""
195d2855f54SBram Moolenaarsyn region vimInsert	matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=starti\%[nsert]$"	matchgroup=vimCommand end="^\.$""
196071d4279SBram Moolenaar
197cfbc5ee4SBram Moolenaar" Behave! {{{2
198071d4279SBram Moolenaar" =======
199071d4279SBram Moolenaarsyn match   vimBehave	"\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError
200071d4279SBram Moolenaarsyn keyword vimBehaveModel contained	mswin	xterm
2016be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror")
202071d4279SBram Moolenaar syn match   vimBehaveError contained	"[^ ]\+"
203cfbc5ee4SBram Moolenaarendif
204071d4279SBram Moolenaar
205cfbc5ee4SBram Moolenaar" Filetypes {{{2
206071d4279SBram Moolenaar" =========
207293ee4d4SBram Moolenaarsyn match   vimFiletype	"\<filet\%[ype]\(\s\+\I\i*\)*"	skipwhite contains=vimFTCmd,vimFTOption,vimFTError
2086be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimFTError")
209071d4279SBram Moolenaar syn match   vimFTError  contained	"\I\i*"
210cfbc5ee4SBram Moolenaarendif
211071d4279SBram Moolenaarsyn keyword vimFTCmd    contained	filet[ype]
212071d4279SBram Moolenaarsyn keyword vimFTOption contained	detect indent off on plugin
213071d4279SBram Moolenaar
214cfbc5ee4SBram Moolenaar" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
215071d4279SBram Moolenaar" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
216acc22406SBram Moolenaarsyn cluster vimAugroupList	contains=vimAugroup,vimIsCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimNotFunc,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vim9Comment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vim9Comment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue,vimSetEqual,vimOption
217f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'a'
218b4ff518dSBram 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
219b4ff518dSBram Moolenaarelse
220b4ff518dSBram Moolenaar syn region  vimAugroup	matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>"		contains=vimAutoCmd,@vimAugroupList
221b4ff518dSBram Moolenaarendif
2223b1ddfedSBram Moolenaarsyn match   vimAugroup	"aug\%[roup]!"	contains=vimAugroupKey
2236be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror")
224071d4279SBram Moolenaar syn match   vimAugroupError	"\<aug\%[roup]\>\s\+[eE][nN][dD]\>"
225cfbc5ee4SBram Moolenaarendif
22683d1b190SBram Moolenaarsyn keyword vimAugroupKey contained	aug[roup]
227071d4279SBram Moolenaar
228cfbc5ee4SBram Moolenaar" Operators: {{{2
229071d4279SBram Moolenaar" =========
2302c7f8c57SBram Moolenaarsyn cluster	vimOperGroup	contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue,vim9Comment
23151ad4eaaSBram Moolenaarsyn match	vimOper	"\%#=1\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}"	skipwhite nextgroup=vimString,vimSpecFile
232723dd946SBram Moolenaarsyn match	vimOper	"\(\<is\|\<isnot\)[?#]\{0,2}\>"			skipwhite nextgroup=vimString,vimSpecFile
2336c1e1570SBram Moolenaarsyn match	vimOper	"||\|&&\|[-+.!]"				skipwhite nextgroup=vimString,vimSpecFile
234388a5d4fSBram Moolenaarsyn region	vimOperParen 	matchgroup=vimParenSep	start="(" end=")" contains=vimoperStar,@vimOperGroup
2354072ba57SBram Moolenaarsyn region	vimOperParen	matchgroup=vimSep		start="#\={" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
2366be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
237071d4279SBram Moolenaar syn match	vimOperError	")"
238cfbc5ee4SBram Moolenaarendif
239071d4279SBram Moolenaar
2403577c6faSBram Moolenaar" Functions : Tag is provided for those who wish to highlight tagged functions {{{2
2413577c6faSBram Moolenaar" =========
2425c73622aSBram Moolenaarsyn cluster	vimFuncList	contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID
243d58a3bf7SBram Moolenaarsyn cluster	vimFuncBodyList	contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vim9Comment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimEnvvar,vimExecute,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimGlobal,vimHighlight,vimIsCommand,vimLet,vimLetHereDoc,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSearch,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand
2448a7d6542SBram Moolenaarsyn match	vimFunction	"\<\(fu\%[nction]\|def\)!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*("	contains=@vimFuncList nextgroup=vimFuncBody
2455c73622aSBram Moolenaar
246f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f'
2478a7d6542SBram Moolenaar syn region	vimFuncBody  contained	fold start="\ze\s*("	matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)"		contains=@vimFuncBodyList
248b4ff518dSBram Moolenaarelse
2498a7d6542SBram Moolenaar syn region	vimFuncBody  contained	start="\ze\s*("	matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)"		contains=@vimFuncBodyList
250b4ff518dSBram Moolenaarendif
251b4ff518dSBram Moolenaarsyn match	vimFuncVar   contained	"a:\(\K\k*\|\d\+\)"
2523577c6faSBram Moolenaarsyn match	vimFuncSID   contained	"\c<sid>\|\<s:"
2533577c6faSBram Moolenaarsyn keyword	vimFuncKey   contained	fu[nction]
2548a7d6542SBram Moolenaarsyn keyword	vimFuncKey   contained	def
2553577c6faSBram Moolenaarsyn match	vimFuncBlank contained	"\s\+"
2563577c6faSBram Moolenaar
2573577c6faSBram Moolenaarsyn keyword	vimPattern   contained	start	skip	end
2583577c6faSBram Moolenaar
259cfbc5ee4SBram Moolenaar" Special Filenames, Modifiers, Extension Removal: {{{2
260071d4279SBram Moolenaar" ===============================================
261071d4279SBram Moolenaarsyn match	vimSpecFile	"<c\(word\|WORD\)>"	nextgroup=vimSpecFileMod,vimSubst
262071d4279SBram Moolenaarsyn match	vimSpecFile	"<\([acs]file\|amatch\|abuf\)>"	nextgroup=vimSpecFileMod,vimSubst
263071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%[ \t:]"ms=s+1,me=e-1	nextgroup=vimSpecFileMod,vimSubst
264071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%$"ms=s+1	nextgroup=vimSpecFileMod,vimSubst
265071d4279SBram Moolenaarsyn match	vimSpecFile	"\s%<"ms=s+1,me=e-1	nextgroup=vimSpecFileMod,vimSubst
266071d4279SBram Moolenaarsyn match	vimSpecFile	"#\d\+\|[#%]<\>"	nextgroup=vimSpecFileMod,vimSubst
267071d4279SBram Moolenaarsyn match	vimSpecFileMod	"\(:[phtre]\)\+"	contained
268071d4279SBram Moolenaar
269cfbc5ee4SBram Moolenaar" User-Specified Commands: {{{2
270071d4279SBram Moolenaar" =======================
2712c7f8c57SBram Moolenaarsyn cluster	vimUserCmdList	contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vim9Comment,vimCtrlChar,vimEscapeBrace,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine
272071d4279SBram Moolenaarsyn keyword	vimUserCommand	contained	com[mand]
273d58a3bf7SBram Moolenaarsyn match	vimUserCmd	"\<com\%[mand]!\=\>.*$"	contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList,vimComFilter
274b4ff518dSBram Moolenaarsyn match	vimUserAttrbError	contained	"-\a\+\ze\s"
275b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-nargs=[01*?+]"	contains=vimUserAttrbKey,vimOper
276b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-complete="		contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError
277b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-range\(=%\|=\d\+\)\="	contains=vimNumber,vimOper,vimUserAttrbKey
278b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-count\(=\d\+\)\="	contains=vimNumber,vimOper,vimUserAttrbKey
279b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-bang\>"		contains=vimOper,vimUserAttrbKey
280071d4279SBram Moolenaarsyn match	vimUserAttrb	contained	"-bar\>"		contains=vimOper,vimUserAttrbKey
281b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-buffer\>"		contains=vimOper,vimUserAttrbKey
282b4ff518dSBram Moolenaarsyn match	vimUserAttrb	contained	"-register\>"		contains=vimOper,vimUserAttrbKey
2836be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror")
284071d4279SBram Moolenaar syn match	vimUserCmdError	contained	"\S\+\>"
285cfbc5ee4SBram Moolenaarendif
286071d4279SBram Moolenaarsyn case ignore
287071d4279SBram Moolenaarsyn keyword	vimUserAttrbKey   contained	bar	ban[g]	cou[nt]	ra[nge] com[plete]	n[args]	re[gister]
288bc8801c9SBram 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
289a93fa7eeSBram Moolenaarsyn keyword	vimUserAttrbCmplt contained	custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError
2909da7ff70SBram Moolenaarsyn match	vimUserAttrbCmpltFunc contained	",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1 nextgroup=vimUserCmdError
291a93fa7eeSBram Moolenaar
292071d4279SBram Moolenaarsyn case match
293071d4279SBram Moolenaarsyn match	vimUserAttrbCmplt contained	"custom,\u\w*"
294071d4279SBram Moolenaar
295cfbc5ee4SBram Moolenaar" Lower Priority Comments: after some vim commands... {{{2
296071d4279SBram Moolenaar" =======================
297071d4279SBram Moolenaarsyn match	vimComment	excludenl +\s"[^\-:.%#=*].*$+lc=1	contains=@vimCommentGroup,vimCommentString
298071d4279SBram Moolenaarsyn match	vimComment	+\<endif\s\+".*$+lc=5	contains=@vimCommentGroup,vimCommentString
299071d4279SBram Moolenaarsyn match	vimComment	+\<else\s\+".*$+lc=4	contains=@vimCommentGroup,vimCommentString
3004770d09aSBram Moolenaarsyn region	vimCommentString	contained oneline start='\S\s\+"'ms=e	end='"'
3012c7f8c57SBram Moolenaar" Vim9 comments - TODO: might be highlighted while they don't work
302acc22406SBram Moolenaarsyn match	vim9Comment	excludenl +\s#[^{].*$+lc=1	contains=@vimCommentGroup,vimCommentString
303acc22406SBram Moolenaarsyn match	vim9Comment	+\<endif\s\+#[^{].*$+lc=5	contains=@vimCommentGroup,vimCommentString
304acc22406SBram Moolenaarsyn match	vim9Comment	+\<else\s\+#[^{].*$+lc=4	contains=@vimCommentGroup,vimCommentString
3052c7f8c57SBram Moolenaar" Vim9 comment inside expression
306388a5d4fSBram Moolenaarsyn match	vim9Comment	+\s\zs#[^{].*$+ms=s+1	contains=@vimCommentGroup,vimCommentString
307d58a3bf7SBram Moolenaarsyn match	vim9Comment	+^\s*#[^{].*$+	contains=@vimCommentGroup,vimCommentString
308d58a3bf7SBram Moolenaarsyn match	vim9Comment	+^\s*#$+	contains=@vimCommentGroup,vimCommentString
309071d4279SBram Moolenaar
310cfbc5ee4SBram Moolenaar" Environment Variables: {{{2
311071d4279SBram Moolenaar" =====================
312071d4279SBram Moolenaarsyn match	vimEnvvar	"\$\I\i*"
313071d4279SBram Moolenaarsyn match	vimEnvvar	"\${\I\i*}"
314071d4279SBram Moolenaar
315cfbc5ee4SBram Moolenaar" In-String Specials: {{{2
316071d4279SBram Moolenaar" Try to catch strings, if nothing else matches (therefore it must precede the others!)
317071d4279SBram Moolenaar"  vimEscapeBrace handles ["]  []"] (ie. "s don't terminate string inside [])
318d68071d8SBram Moolenaarsyn region	vimEscapeBrace	oneline   contained transparent start="[^\\]\(\\\\\)*\[\zs\^\=\]\=" skip="\\\\\|\\\]" end="]"me=e-1
319071d4279SBram Moolenaarsyn match	vimPatSepErr	contained	"\\)"
320071d4279SBram Moolenaarsyn match	vimPatSep	contained	"\\|"
321b730f0c7SBram Moolenaarsyn region	vimPatSepZone	oneline   contained   matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\\]['"]"	contains=@vimStringGroup
322383f9bc3SBram Moolenaarsyn region	vimPatRegion	contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)"	contains=@vimSubstList oneline
323071d4279SBram Moolenaarsyn match	vimNotPatSep	contained	"\\\\"
3249964e468SBram Moolenaarsyn cluster	vimStringGroup	contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell
325d2855f54SBram Moolenaarsyn region	vimString	oneline keepend	start=+[^a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+	contains=@vimStringGroup
326b0d45e7fSBram Moolenaarsyn region	vimString	oneline keepend	start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+
327071d4279SBram Moolenaarsyn region	vimString	oneline	start=+=!+lc=1	skip=+\\\\\|\\!+ end=+!+	contains=@vimStringGroup
328071d4279SBram Moolenaarsyn region	vimString	oneline	start="=+"lc=1	skip="\\\\\|\\+" end="+"	contains=@vimStringGroup
329acc22406SBram Moolenaar"syn region	vimString	oneline	start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/"	contains=@vimStringGroup  " see tst45.vim
330071d4279SBram Moolenaarsyn match	vimString	contained	+"[^"]*\\$+	skipnl nextgroup=vimStringCont
331071d4279SBram Moolenaarsyn match	vimStringCont	contained	+\(\\\\\|.\)\{-}[^\\]"+
332071d4279SBram Moolenaar
333cfbc5ee4SBram Moolenaar" Substitutions: {{{2
334071d4279SBram Moolenaar" =============
335071d4279SBram Moolenaarsyn cluster	vimSubstList	contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation
336071d4279SBram Moolenaarsyn cluster	vimSubstRepList	contains=vimSubstSubstr,vimSubstTwoBS,vimNotation
337071d4279SBram Moolenaarsyn cluster	vimSubstList	add=vimCollection
33891c4937bSBram Moolenaarsyn match	vimSubst	"\(:\+\s*\|^\s*\||\s*\)\<\%(\<s\%[ubstitute]\>\|\<sm\%[agic]\>\|\<sno\%[magic]\>\)[:#[:alpha:]]\@!" nextgroup=vimSubstPat
3391ff14ba2SBram Moolenaar"syn match	vimSubst	"\%(^\|[^\\]\)\<s\%[ubstitute]\>[:#[:alpha:]]\@!"	nextgroup=vimSubstPat contained
3401ff14ba2SBram Moolenaarsyn match	vimSubst	"\%(^\|[^\\\"']\)\<s\%[ubstitute]\>[:#[:alpha:]\"']\@!"	nextgroup=vimSubstPat contained
34191c4937bSBram Moolenaarsyn match	vimSubst	"/\zs\<s\%[ubstitute]\>\ze/"		nextgroup=vimSubstPat
34291c4937bSBram Moolenaarsyn match	vimSubst	"\(:\+\s*\|^\s*\)s\ze#.\{-}#.\{-}#"		nextgroup=vimSubstPat
34391c4937bSBram Moolenaarsyn match	vimSubst1       contained	"\<s\%[ubstitute]\>"	nextgroup=vimSubstPat
344d2855f54SBram Moolenaarsyn match	vimSubst2       contained	"s\%[ubstitute]\>"	nextgroup=vimSubstPat
345071d4279SBram 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
346071d4279SBram Moolenaarsyn region	vimSubstRep4    contained	matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList	nextgroup=vimSubstFlagErr	oneline
347071d4279SBram Moolenaarsyn region	vimCollection   contained transparent	start="\\\@<!\[" skip="\\\[" end="\]"	contains=vimCollClass
348071d4279SBram Moolenaarsyn match	vimCollClassErr contained	"\[:.\{-\}:\]"
34951ad4eaaSBram Moolenaarsyn match	vimCollClass    contained transparent	"\%#=1\[:\(alnum\|alpha\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\|return\|tab\|escape\|backspace\):\]"
350071d4279SBram Moolenaarsyn match	vimSubstSubstr  contained	"\\z\=\d"
351071d4279SBram Moolenaarsyn match	vimSubstTwoBS   contained	"\\\\"
352a5792f58SBram Moolenaarsyn match	vimSubstFlagErr contained	"[^< \t\r|]\+" contains=vimSubstFlags
353acc22406SBram Moolenaarsyn match	vimSubstFlags   contained	"[&cegiIlnpr#]\+"
354071d4279SBram Moolenaar
355cfbc5ee4SBram Moolenaar" 'String': {{{2
3568b6144bdSBram Moolenaarsyn match	vimString	"[^(,]'[^']\{-}\zs'"
357071d4279SBram Moolenaar
358cfbc5ee4SBram Moolenaar" Marks, Registers, Addresses, Filters: {{{2
3596c1e1570SBram Moolenaarsyn match	vimMark	"'[a-zA-Z0-9]\ze[-+,!]"	nextgroup=vimFilter,vimMarkNumber,vimSubst
3606c1e1570SBram Moolenaarsyn match	vimMark	"'[<>]\ze[-+,!]"		nextgroup=vimFilter,vimMarkNumber,vimSubst
3616c1e1570SBram Moolenaarsyn match	vimMark	",\zs'[<>]\ze"		nextgroup=vimFilter,vimMarkNumber,vimSubst
3626c1e1570SBram Moolenaarsyn match	vimMark	"[!,:]\zs'[a-zA-Z0-9]"	nextgroup=vimFilter,vimMarkNumber,vimSubst
3636c1e1570SBram Moolenaarsyn match	vimMark	"\<norm\%[al]\s\zs'[a-zA-Z0-9]"	nextgroup=vimFilter,vimMarkNumber,vimSubst
364d2855f54SBram Moolenaarsyn match	vimMarkNumber	"[-+]\d\+"		contained contains=vimOper nextgroup=vimSubst2
365071d4279SBram Moolenaarsyn match	vimPlainMark contained	"'[a-zA-Z0-9]"
3666c1e1570SBram Moolenaarsyn match	vimRange	"[`'][a-zA-Z0-9],[`'][a-zA-Z0-9]"	contains=vimMark	skipwhite nextgroup=vimFilter
367071d4279SBram Moolenaar
368b4ff518dSBram Moolenaarsyn match	vimRegister	'[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
3695b8d8fdbSBram Moolenaarsyn match	vimRegister	'\<norm\s\+\zs"[a-zA-Z0-9]'
3705b8d8fdbSBram Moolenaarsyn match	vimRegister	'\<normal\s\+\zs"[a-zA-Z0-9]'
371cfbc5ee4SBram Moolenaarsyn match	vimRegister	'@"'
372071d4279SBram Moolenaarsyn match	vimPlainRegister contained	'"[a-zA-Z0-9\-:.%#*+=]'
373071d4279SBram Moolenaar
3745b8d8fdbSBram Moolenaarsyn match	vimAddress	",\zs[.$]"	skipwhite nextgroup=vimSubst1
3755b8d8fdbSBram Moolenaarsyn match	vimAddress	"%\ze\a"	skipwhite nextgroup=vimString,vimSubst1
376071d4279SBram Moolenaar
3776c1e1570SBram Moolenaarsyn match	vimFilter 		"^!!\=[^"]\{-}\(|\|\ze\"\|$\)"	contains=vimOper,vimSpecFile
3786c1e1570SBram Moolenaarsyn match	vimFilter    contained	"!!\=[^"]\{-}\(|\|\ze\"\|$\)"	contains=vimOper,vimSpecFile
379d58a3bf7SBram Moolenaarsyn match	vimComFilter contained	"|!!\=[^"]\{-}\(|\|\ze\"\|$\)"      contains=vimOper,vimSpecFile
380071d4279SBram Moolenaar
3811ff14ba2SBram Moolenaar" Complex Repeats: (:h complex-repeat) {{{2
3821ff14ba2SBram Moolenaar" ===============
3836be7f873SBram Moolenaarsyn match	vimCmplxRepeat	'[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1
3846be7f873SBram Moolenaarsyn match	vimCmplxRepeat	'@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\>\)'
385071d4279SBram Moolenaar
386cfbc5ee4SBram Moolenaar" Set command and associated set-options (vimOptions) with comment {{{2
387*d2ea7cf1SBram Moolenaarsyn region	vimSet		matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\." end="$" end="|" matchgroup=vimNotation end="<[cC][rR]>" oneline keepend contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vim9Comment,vimSetString,vimSetMod
388*d2ea7cf1SBram Moolenaarsyn region	vimSetEqual	contained	start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]"me=e-1 end="$"	contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar
389071d4279SBram Moolenaarsyn region	vimSetString	contained	start=+="+hs=s+1	skip=+\\\\\|\\"+  end=+"+		contains=vimCtrlChar
3904072ba57SBram Moolenaarsyn match	vimSetSep	contained	"[,:]"
3915c73622aSBram Moolenaarsyn match	vimSetMod	contained	"&vim\=\|[!&?<]\|all&"
392071d4279SBram Moolenaar
3931ff14ba2SBram Moolenaar" Let: {{{2
394071d4279SBram Moolenaar" ===
3954072ba57SBram Moolenaarsyn keyword	vimLet	let	unl[et]	skipwhite nextgroup=vimVar,vimFuncVar,vimLetHereDoc
3962c7f8c57SBram MoolenaarVimFoldh syn region vimLetHereDoc	matchgroup=vimLetHereDocStart start='=<<\s\+\%(trim\>\)\=\s*\z(\L\S*\)'	matchgroup=vimLetHereDocStop end='^\s*\z1\s*$'	contains=vimComment,vim9Comment
397071d4279SBram Moolenaar
3981ff14ba2SBram Moolenaar" Abbreviations: {{{2
399e37d50a5SBram Moolenaar" =============
400e37d50a5SBram Moolenaarsyn keyword vimAbb	ab[breviate] ca[bbrev] inorea[bbrev] cnorea[bbrev] norea[bbrev] ia[bbrev] skipwhite nextgroup=vimMapMod,vimMapLhs
401e37d50a5SBram Moolenaar
4021ff14ba2SBram Moolenaar" Autocmd: {{{2
403071d4279SBram Moolenaar" =======
404071d4279SBram Moolenaarsyn match	vimAutoEventList	contained	"\(!\s\+\)\=\(\a\+,\)*\a\+"	contains=vimAutoEvent nextgroup=vimAutoCmdSpace
405071d4279SBram Moolenaarsyn match	vimAutoCmdSpace	contained	"\s\+"	nextgroup=vimAutoCmdSfxList
406d58a3bf7SBram Moolenaarsyn match	vimAutoCmdSfxList	contained	"\S*"	skipwhite nextgroup=vimAutoCmdMod
407071d4279SBram Moolenaarsyn keyword	vimAutoCmd	au[tocmd] do[autocmd] doautoa[ll]	skipwhite nextgroup=vimAutoEventList
408d58a3bf7SBram Moolenaarsyn match	vimAutoCmdMod	"\(++\)\=\(once\|nested\)"
409071d4279SBram Moolenaar
4101ff14ba2SBram Moolenaar" Echo And Execute: -- prefer strings! {{{2
411071d4279SBram Moolenaar" ================
4125c73622aSBram Moolenaarsyn region	vimEcho	oneline excludenl matchgroup=vimCommand start="\<ec\%[ho]\>" skip="\(\\\\\)*\\|" end="$\||" contains=vimFunc,vimFuncVar,vimString,vimVar
4135c73622aSBram Moolenaarsyn region	vimExecute	oneline excludenl matchgroup=vimCommand start="\<exe\%[cute]\>" skip="\(\\\\\)*\\|" end="$\||\|<[cC][rR]>" contains=vimFuncVar,vimIsCommand,vimOper,vimNotation,vimOperParen,vimString,vimVar
414071d4279SBram Moolenaarsyn match	vimEchoHL	"echohl\="	skipwhite nextgroup=vimGroup,vimHLGroup,vimEchoHLNone
415071d4279SBram Moolenaarsyn case ignore
416071d4279SBram Moolenaarsyn keyword	vimEchoHLNone	none
417071d4279SBram Moolenaarsyn case match
418071d4279SBram Moolenaar
4191ff14ba2SBram Moolenaar" Maps: {{{2
420071d4279SBram Moolenaar" ====
4213577c6faSBram Moolenaarsyn match	vimMap		"\<map\>!\=\ze\s*[^(]" skipwhite nextgroup=vimMapMod,vimMapLhs
42285850f3aSBram 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] tno[remap] tm[ap] vm[ap] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs
42381af9250SBram Moolenaarsyn keyword	vimMap		mapc[lear] smapc[lear]
42485850f3aSBram Moolenaarsyn keyword	vimUnmap		cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] tunma[p] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs
425b8a7b560SBram Moolenaarsyn match	vimMapLhs	contained	"\S\+"			contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs
426b8a7b560SBram Moolenaarsyn match	vimMapBang	contained	"!"			skipwhite nextgroup=vimMapMod,vimMapLhs
42751ad4eaaSBram Moolenaarsyn match	vimMapMod	contained	"\%#=1\c<\(buffer\|expr\|\(local\)\=leader\|nowait\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs
428b8a7b560SBram Moolenaarsyn match	vimMapRhs	contained	".*" contains=vimNotation,vimCtrlChar	skipnl nextgroup=vimMapRhsExtend
429b4ff518dSBram Moolenaarsyn match	vimMapRhsExtend	contained	"^\s*\\.*$"			contains=vimContinue
430071d4279SBram Moolenaarsyn case ignore
431b4ff518dSBram Moolenaarsyn keyword	vimMapModKey	contained	buffer	expr	leader	localleader	nowait	plug	script	sid	silent	unique
432071d4279SBram Moolenaarsyn case match
433071d4279SBram Moolenaar
4341ff14ba2SBram Moolenaar" Menus: {{{2
435071d4279SBram Moolenaar" =====
436071d4279SBram Moolenaarsyn cluster	vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod
437b730f0c7SBram 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
438071d4279SBram Moolenaarsyn match	vimMenuName	"[^ \t\\<]\+"	contained nextgroup=vimMenuNameMore,vimMenuMap
439071d4279SBram Moolenaarsyn match	vimMenuPriority	"\d\+\(\.\d\+\)*"	contained skipwhite nextgroup=vimMenuName
440071d4279SBram Moolenaarsyn match	vimMenuNameMore	"\c\\\s\|<tab>\|\\\."	contained nextgroup=vimMenuName,vimMenuNameMore contains=vimNotation
441071d4279SBram Moolenaarsyn match	vimMenuMod    contained	"\c<\(script\|silent\)\+>"  skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMenuList
442071d4279SBram Moolenaarsyn match	vimMenuMap	"\s"	contained skipwhite nextgroup=vimMenuRhs
4432c7f8c57SBram Moolenaarsyn match	vimMenuRhs	".*$"	contained contains=vimString,vimComment,vim9Comment,vimIsCommand
444071d4279SBram Moolenaarsyn match	vimMenuBang	"!"	contained skipwhite nextgroup=@vimMenuList
445071d4279SBram Moolenaar
4461ff14ba2SBram Moolenaar" Angle-Bracket Notation: (tnx to Michael Geddes) {{{2
447071d4279SBram Moolenaar" ======================
448071d4279SBram Moolenaarsyn case ignore
4494072ba57SBram Moolenaarsyn match	vimNotation	"\%#=1\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cmd\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|mouse\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>" contains=vimBracket
45051ad4eaaSBram Moolenaarsyn match	vimNotation	"\%#=1\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"	contains=vimBracket
45151ad4eaaSBram Moolenaarsyn match	vimNotation	"\%#=1\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"			contains=vimBracket
452071d4279SBram Moolenaarsyn match	vimNotation	'\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1				contains=vimBracket
45351ad4eaaSBram Moolenaarsyn match	vimNotation	'\%#=1\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|mods\|f-args\|f-mods\|lt\)>'	contains=vimBracket
45451ad4eaaSBram Moolenaarsyn match	vimNotation	"\%#=1\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>"		contains=vimBracket
455071d4279SBram Moolenaarsyn match	vimBracket contained	"[\\<>]"
456071d4279SBram Moolenaarsyn case match
457071d4279SBram Moolenaar
4581ff14ba2SBram Moolenaar" User Function Highlighting: {{{2
4593577c6faSBram Moolenaar" (following Gautam Iyer's suggestion)
460071d4279SBram Moolenaar" ==========================
46151ad4eaaSBram Moolenaarsyn match vimFunc		"\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*("		contains=vimFuncName,vimUserFunc,vimExecute
46251ad4eaaSBram Moolenaarsyn match vimUserFunc contained	"\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>"	contains=vimNotation
463071d4279SBram Moolenaar
4642547aa93SBram Moolenaar" User Command Highlighting: {{{2
465*d2ea7cf1SBram Moolenaar"syn match vimUsrCmd	'^\s*\zs\u\w*.*$'
466*d2ea7cf1SBram Moolenaarsyn match vimUsrCmd	'^\s*\zs\u\%(\w*\)\@>\%([(#[]\|\s\+\%([-+*/%]\=\|\.\.\)=\)\@!'
4672547aa93SBram Moolenaar
4683577c6faSBram Moolenaar" Errors And Warnings: {{{2
4693577c6faSBram Moolenaar" ====================
4706be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
4715c73622aSBram Moolenaar syn match	vimFunctionError	"\s\zs[a-z0-9]\i\{-}\ze\s*("			contained contains=vimFuncKey,vimFuncBlank
4726c1e1570SBram Moolenaar syn match	vimFunctionError	"\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\d\i\{-}\ze\s*("	contained contains=vimFuncKey,vimFuncBlank
4733577c6faSBram Moolenaar syn match	vimElseIfErr	"\<else\s\+if\>"
4743577c6faSBram Moolenaar syn match	vimBufnrWarn	/\<bufnr\s*(\s*["']\.['"]\s*)/
4753577c6faSBram Moolenaarendif
4763577c6faSBram Moolenaar
4776c1e1570SBram Moolenaarsyn match vimNotFunc	"\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>"	skipwhite nextgroup=vimOper,vimOperParen,vimVar,vimFunc,vimNotation
4786c1e1570SBram Moolenaar
4791ff14ba2SBram Moolenaar" Norm: {{{2
48005159a0cSBram Moolenaar" ====
48105159a0cSBram Moolenaarsyn match	vimNorm		"\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds
48205159a0cSBram Moolenaarsyn match	vimNormCmds contained	".*$"
48305159a0cSBram Moolenaar
4841ff14ba2SBram Moolenaar" Syntax: {{{2
485071d4279SBram Moolenaar"=======
486071d4279SBram Moolenaarsyn match	vimGroupList	contained	"@\=[^ \t,]*"	contains=vimGroupSpecial,vimPatSep
487071d4279SBram Moolenaarsyn match	vimGroupList	contained	"@\=[^ \t,]*,"	nextgroup=vimGroupList contains=vimGroupSpecial,vimPatSep
4885c73622aSBram Moolenaarsyn keyword	vimGroupSpecial	contained	ALL	ALLBUT	CONTAINED	TOP
4896be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynerror")
490071d4279SBram Moolenaar syn match	vimSynError	contained	"\i\+"
491071d4279SBram Moolenaar syn match	vimSynError	contained	"\i\+="	nextgroup=vimGroupList
492cfbc5ee4SBram Moolenaarendif
493071d4279SBram Moolenaarsyn match	vimSynContains	contained	"\<contain\(s\|edin\)="	nextgroup=vimGroupList
494071d4279SBram Moolenaarsyn match	vimSynKeyContainedin	contained	"\<containedin="	nextgroup=vimGroupList
495071d4279SBram Moolenaarsyn match	vimSynNextgroup	contained	"nextgroup="	nextgroup=vimGroupList
496071d4279SBram Moolenaar
4972c7f8c57SBram Moolenaarsyn match	vimSyntax	"\<sy\%[ntax]\>"	contains=vimCommand skipwhite nextgroup=vimSynType,vimComment,vim9Comment
4982c7f8c57SBram Moolenaarsyn match	vimAuSyntax	contained	"\s+sy\%[ntax]"	contains=vimCommand skipwhite nextgroup=vimSynType,vimComment,vim9Comment
499d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSyntax
500071d4279SBram Moolenaar
501cfbc5ee4SBram Moolenaar" Syntax: case {{{2
502071d4279SBram Moolenaarsyn keyword	vimSynType	contained	case	skipwhite nextgroup=vimSynCase,vimSynCaseError
5036be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncaseerror")
504071d4279SBram Moolenaar syn match	vimSynCaseError	contained	"\i\+"
505cfbc5ee4SBram Moolenaarendif
506071d4279SBram Moolenaarsyn keyword	vimSynCase	contained	ignore	match
507071d4279SBram Moolenaar
508cfbc5ee4SBram Moolenaar" Syntax: clear {{{2
509071d4279SBram Moolenaarsyn keyword	vimSynType	contained	clear	skipwhite nextgroup=vimGroupList
510071d4279SBram Moolenaar
511cfbc5ee4SBram Moolenaar" Syntax: cluster {{{2
512071d4279SBram Moolenaarsyn keyword	vimSynType	contained	cluster	skipwhite nextgroup=vimClusterName
513a0f849eeSBram Moolenaarsyn region	vimClusterName	contained	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError
514071d4279SBram Moolenaarsyn match	vimGroupAdd	contained	"add="	nextgroup=vimGroupList
515071d4279SBram Moolenaarsyn match	vimGroupRem	contained	"remove="	nextgroup=vimGroupList
516d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
517071d4279SBram Moolenaar
51813d5aeefSBram Moolenaar" Syntax: iskeyword {{{2
51913d5aeefSBram Moolenaarsyn keyword	vimSynType	contained	iskeyword	skipwhite nextgroup=vimIskList
52013d5aeefSBram Moolenaarsyn match	vimIskList	contained	'\S\+'	contains=vimIskSep
52113d5aeefSBram Moolenaarsyn match	vimIskSep	contained	','
52213d5aeefSBram Moolenaar
523cfbc5ee4SBram Moolenaar" Syntax: include {{{2
524071d4279SBram Moolenaarsyn keyword	vimSynType	contained	include	skipwhite nextgroup=vimGroupList
525d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
526071d4279SBram Moolenaar
527cfbc5ee4SBram Moolenaar" Syntax: keyword {{{2
528071d4279SBram Moolenaarsyn cluster	vimSynKeyGroup	contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin
529071d4279SBram Moolenaarsyn keyword	vimSynType	contained	keyword	skipwhite nextgroup=vimSynKeyRegion
530a0f849eeSBram Moolenaarsyn region	vimSynKeyRegion	contained oneline keepend	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup
53151ad4eaaSBram Moolenaarsyn match	vimSynKeyOpt	contained	"\%#=1\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>"
532d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
533071d4279SBram Moolenaar
534cfbc5ee4SBram Moolenaar" Syntax: match {{{2
5352c7f8c57SBram Moolenaarsyn cluster	vimSynMtchGroup	contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation,vim9Comment
536071d4279SBram Moolenaarsyn keyword	vimSynType	contained	match	skipwhite nextgroup=vimSynMatchRegion
537a0f849eeSBram Moolenaarsyn region	vimSynMatchRegion	contained keepend	matchgroup=vimGroupName start="\h\w*" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
53851ad4eaaSBram Moolenaarsyn match	vimSynMtchOpt	contained	"\%#=1\<\(conceal\|transparent\|contained\|excludenl\|keepend\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>"
539071d4279SBram Moolenaarif has("conceal")
54083d1b190SBram Moolenaar syn match	vimSynMtchOpt	contained	"\<cchar="	nextgroup=vimSynMtchCchar
5415c73622aSBram Moolenaar syn match	vimSynMtchCchar	contained	"\S"
542071d4279SBram Moolenaarendif
543d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynMtchGroup
544071d4279SBram Moolenaar
545cfbc5ee4SBram Moolenaar" Syntax: off and on {{{2
546071d4279SBram Moolenaarsyn keyword	vimSynType	contained	enable	list	manual	off	on	reset
547071d4279SBram Moolenaar
548cfbc5ee4SBram Moolenaar" Syntax: region {{{2
549071d4279SBram Moolenaarsyn cluster	vimSynRegPatGroup	contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation
550071d4279SBram Moolenaarsyn cluster	vimSynRegGroup	contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp
551071d4279SBram Moolenaarsyn keyword	vimSynType	contained	region	skipwhite nextgroup=vimSynRegion
552a0f849eeSBram Moolenaarsyn region	vimSynRegion	contained keepend	matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup
55351ad4eaaSBram Moolenaarsyn match	vimSynRegOpt	contained	"\%#=1\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>"
554071d4279SBram Moolenaarsyn match	vimSynReg	contained	"\(start\|skip\|end\)="he=e-1	nextgroup=vimSynRegPat
555071d4279SBram Moolenaarsyn match	vimSynMtchGrp	contained	"matchgroup="	nextgroup=vimGroup,vimHLGroup
556071d4279SBram Moolenaarsyn region	vimSynRegPat	contained extend	start="\z([-`~!@#$%^&*_=+;:'",./?]\)"  skip="\\\\\|\\\z1"  end="\z1"  contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg
55751ad4eaaSBram Moolenaarsyn match	vimSynPatMod	contained	"\%#=1\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\="
55851ad4eaaSBram Moolenaarsyn match	vimSynPatMod	contained	"\%#=1\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=," nextgroup=vimSynPatMod
559071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"lc=\d\+"
560071d4279SBram Moolenaarsyn match	vimSynPatMod	contained	"lc=\d\+," nextgroup=vimSynPatMod
561071d4279SBram Moolenaarsyn region	vimSynPatRange	contained	start="\["	skip="\\\\\|\\]"   end="]"
562071d4279SBram Moolenaarsyn match	vimSynNotPatRange	contained	"\\\\\|\\\["
563071d4279SBram Moolenaarsyn match	vimMtchComment	contained	'"[^"]\+$'
564d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType
565071d4279SBram Moolenaar
566cfbc5ee4SBram Moolenaar" Syntax: sync {{{2
567071d4279SBram Moolenaar" ============
568df177f67SBram Moolenaarsyn keyword vimSynType	contained	sync	skipwhite	nextgroup=vimSyncC,vimSyncLines,vimSyncMatch,vimSyncError,vimSyncLinebreak,vimSyncLinecont,vimSyncRegion
5696be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncerror")
570071d4279SBram Moolenaar syn match	vimSyncError	contained	"\i\+"
571cfbc5ee4SBram Moolenaarendif
572071d4279SBram Moolenaarsyn keyword	vimSyncC	contained	ccomment	clear	fromstart
573071d4279SBram Moolenaarsyn keyword	vimSyncMatch	contained	match	skipwhite	nextgroup=vimSyncGroupName
574071d4279SBram Moolenaarsyn keyword	vimSyncRegion	contained	region	skipwhite	nextgroup=vimSynReg
575df177f67SBram Moolenaarsyn match	vimSyncLinebreak	contained	"\<linebreaks="	skipwhite	nextgroup=vimNumber
576071d4279SBram Moolenaarsyn keyword	vimSyncLinecont	contained	linecont	skipwhite	nextgroup=vimSynRegPat
577071d4279SBram Moolenaarsyn match	vimSyncLines	contained	"\(min\|max\)\=lines="	nextgroup=vimNumber
578a0f849eeSBram Moolenaarsyn match	vimSyncGroupName	contained	"\h\w*"	skipwhite	nextgroup=vimSyncKey
579071d4279SBram Moolenaarsyn match	vimSyncKey	contained	"\<groupthere\|grouphere\>"	skipwhite nextgroup=vimSyncGroup
580a0f849eeSBram Moolenaarsyn match	vimSyncGroup	contained	"\h\w*"	skipwhite	nextgroup=vimSynRegPat,vimSyncNone
581071d4279SBram Moolenaarsyn keyword	vimSyncNone	contained	NONE
582071d4279SBram Moolenaar
5831ff14ba2SBram Moolenaar" Additional IsCommand: here by reasons of precedence {{{2
584071d4279SBram Moolenaar" ====================
585071d4279SBram Moolenaarsyn match	vimIsCommand	"<Bar>\s*\a\+"	transparent contains=vimCommand,vimNotation
586071d4279SBram Moolenaar
5871ff14ba2SBram Moolenaar" Highlighting: {{{2
588071d4279SBram Moolenaar" ============
5892c7f8c57SBram Moolenaarsyn cluster	vimHighlightCluster		contains=vimHiLink,vimHiClear,vimHiKeyList,vimComment,vim9Comment
5906be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimhictermerror")
59151ad4eaaSBram Moolenaar syn match	vimHiCtermError	contained	"\D\i*"
5926be7f873SBram Moolenaarendif
593071d4279SBram Moolenaarsyn match	vimHighlight	"\<hi\%[ghlight]\>"	skipwhite nextgroup=vimHiBang,@vimHighlightCluster
594071d4279SBram Moolenaarsyn match	vimHiBang	contained	"!"	skipwhite nextgroup=@vimHighlightCluster
595071d4279SBram Moolenaar
596071d4279SBram Moolenaarsyn match	vimHiGroup	contained	"\i\+"
597071d4279SBram Moolenaarsyn case ignore
598f0b03c4eSBram Moolenaarsyn keyword	vimHiAttrib	contained	none bold inverse italic nocombine reverse standout strikethrough underline undercurl
599071d4279SBram Moolenaarsyn keyword	vimFgBgAttrib	contained	none bg background fg foreground
600071d4279SBram Moolenaarsyn case match
601071d4279SBram Moolenaarsyn match	vimHiAttribList	contained	"\i\+"	contains=vimHiAttrib
602071d4279SBram Moolenaarsyn match	vimHiAttribList	contained	"\i\+,"he=e-1	contains=vimHiAttrib nextgroup=vimHiAttribList
603071d4279SBram Moolenaarsyn case ignore
604*d2ea7cf1SBram Moolenaarsyn keyword	vimHiCtermColor	contained	black blue brown cyan darkblue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey grey40 grey50 grey90 lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred lightyellow magenta red seagreen white yellow
6056be7f873SBram Moolenaarsyn match	vimHiCtermColor	contained	"\<color\d\{1,3}\>"
606071d4279SBram Moolenaar
607071d4279SBram Moolenaarsyn case match
608071d4279SBram Moolenaarsyn match	vimHiFontname	contained	"[a-zA-Z\-*]\+"
609071d4279SBram Moolenaarsyn match	vimHiGuiFontname	contained	"'[a-zA-Z\-* ]\+'"
610071d4279SBram Moolenaarsyn match	vimHiGuiRgb	contained	"#\x\{6}"
611071d4279SBram Moolenaar
612cfbc5ee4SBram Moolenaar" Highlighting: hi group key=arg ... {{{2
6132547aa93SBram Moolenaarsyn cluster	vimHiCluster contains=vimGroup,vimHiGroup,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiCtermul,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation
614071d4279SBram Moolenaarsyn region	vimHiKeyList	contained oneline start="\i\+" skip="\\\\\|\\|" end="$\||"	contains=@vimHiCluster
6156be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimhikeyerror")
616071d4279SBram Moolenaar syn match	vimHiKeyError	contained	"\i\+="he=e-1
617cfbc5ee4SBram Moolenaarendif
618071d4279SBram Moolenaarsyn match	vimHiTerm	contained	"\cterm="he=e-1		nextgroup=vimHiAttribList
619071d4279SBram Moolenaarsyn match	vimHiStartStop	contained	"\c\(start\|stop\)="he=e-1	nextgroup=vimHiTermcap,vimOption
620071d4279SBram Moolenaarsyn match	vimHiCTerm	contained	"\ccterm="he=e-1		nextgroup=vimHiAttribList
62183d1b190SBram Moolenaarsyn match	vimHiCtermFgBg	contained	"\ccterm[fb]g="he=e-1	nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
6222547aa93SBram Moolenaarsyn match	vimHiCtermul	contained	"\cctermul="he=e-1	nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
623071d4279SBram Moolenaarsyn match	vimHiGui	contained	"\cgui="he=e-1		nextgroup=vimHiAttribList
624071d4279SBram Moolenaarsyn match	vimHiGuiFont	contained	"\cfont="he=e-1		nextgroup=vimHiFontname
6254770d09aSBram Moolenaarsyn match	vimHiGuiFgBg	contained	"\cgui\%([fb]g\|sp\)="he=e-1	nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib
626071d4279SBram Moolenaarsyn match	vimHiTermcap	contained	"\S\+"		contains=vimNotation
62783d1b190SBram Moolenaarsyn match	vimHiNmbr	contained	'\d\+'
628071d4279SBram Moolenaar
629cfbc5ee4SBram Moolenaar" Highlight: clear {{{2
630071d4279SBram Moolenaarsyn keyword	vimHiClear	contained	clear	nextgroup=vimHiGroup
631071d4279SBram Moolenaar
632cfbc5ee4SBram Moolenaar" Highlight: link {{{2
633d2855f54SBram Moolenaar" see tst24 (hi def vs hi) (Jul 06, 2018)
634d2855f54SBram Moolenaar"syn region	vimHiLink	contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$"	contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
635d2855f54SBram Moolenaarsyn region	vimHiLink	contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$"	contains=@vimHiCluster
636d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimHiLink
637071d4279SBram Moolenaar
6381ff14ba2SBram Moolenaar" Control Characters: {{{2
639071d4279SBram Moolenaar" ==================
640071d4279SBram Moolenaarsyn match	vimCtrlChar	"[--]"
641071d4279SBram Moolenaar
642cfbc5ee4SBram Moolenaar" Beginners - Patterns that involve ^ {{{2
643071d4279SBram Moolenaar" =========
644071d4279SBram Moolenaarsyn match	vimLineComment	+^[ \t:]*".*$+	contains=@vimCommentGroup,vimCommentString,vimCommentTitle
6454072ba57SBram Moolenaarsyn match	vim9LineComment	+^[ \t:]\+#.*$+	contains=@vimCommentGroup,vimCommentString,vimCommentTitle
646ff1d0d4cSBram Moolenaarsyn match	vimCommentTitle	'"\s*\%([sS]:\|\h\w*#\)\=\u\w*\(\s\+\u\w*\)*:'hs=s+1	contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup
647071d4279SBram Moolenaarsyn match	vimContinue	"^\s*\\"
648071d4279SBram Moolenaarsyn region	vimString	start="^\s*\\\z(['"]\)" skip='\\\\\|\\\z1' end="\z1" oneline keepend contains=@vimStringGroup,vimContinue
649071d4279SBram Moolenaarsyn match	vimCommentTitleLeader	'"\s\+'ms=s+1	contained
650071d4279SBram Moolenaar
65118144c84SBram Moolenaar" Searches And Globals: {{{2
65218144c84SBram Moolenaar" ====================
653e2f98b95SBram Moolenaarsyn match	vimSearch	'^\s*[/?].*'		contains=vimSearchDelim
654e2f98b95SBram Moolenaarsyn match	vimSearchDelim	'^\s*\zs[/?]\|[/?]$'	contained
6559da7ff70SBram Moolenaarsyn region	vimGlobal	matchgroup=Statement start='\<g\%[lobal]!\=/'  skip='\\.' end='/'	skipwhite nextgroup=vimSubst
6569da7ff70SBram Moolenaarsyn region	vimGlobal	matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/'	skipwhite nextgroup=vimSubst
657e2f98b95SBram Moolenaar
6581ff14ba2SBram Moolenaar" Embedded Scripts:  {{{2
6591ff14ba2SBram Moolenaar" ================
6601ff14ba2SBram Moolenaar"   perl,ruby     : Benoit Cerrina
6611ff14ba2SBram Moolenaar"   python,tcl    : Johannes Zellner
6621ff14ba2SBram Moolenaar"   mzscheme, lua : Charles Campbell
663071d4279SBram Moolenaar
6643577c6faSBram Moolenaar" Allows users to specify the type of embedded script highlighting
6653577c6faSBram Moolenaar" they want:  (perl/python/ruby/tcl support)
6663577c6faSBram Moolenaar"   g:vimsyn_embed == 0   : don't embed any scripts
667f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'l' : embed lua      (but only if vim supports it)
668f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'm' : embed mzscheme (but only if vim supports it)
669f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'p' : embed perl     (but only if vim supports it)
670f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'P' : embed python   (but only if vim supports it)
671f391327aSBram Moolenaar"   g:vimsyn_embed =~# 'r' : embed ruby     (but only if vim supports it)
672f391327aSBram Moolenaar"   g:vimsyn_embed =~# 't' : embed tcl      (but only if vim supports it)
6737cba6c06SBram Moolenaarif !exists("g:vimsyn_embed")
674a0f849eeSBram Moolenaar let g:vimsyn_embed= "lmpPr"
6757cba6c06SBram Moolenaarendif
676071d4279SBram Moolenaar
6774b22cdb0SBram Moolenaar" [-- lua --] {{{3
678adc2182cSBram Moolenaarlet s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim")
6794b22cdb0SBram Moolenaarif !filereadable(s:luapath)
680a0f849eeSBram Moolenaar for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
681a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:luapath))
682a0f849eeSBram Moolenaar   let s:luapath= fnameescape(s:luapath)
6839da7ff70SBram Moolenaar   break
6849da7ff70SBram Moolenaar  endif
6859da7ff70SBram Moolenaar endfor
6864b22cdb0SBram Moolenaarendif
687f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'l' && has("lua")) && filereadable(s:luapath)
6884b22cdb0SBram Moolenaar unlet! b:current_syntax
68951ad4eaaSBram Moolenaar syn cluster vimFuncBodyList	add=vimLuaRegion
6904b22cdb0SBram Moolenaar exe "syn include @vimLuaScript ".s:luapath
691a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimLuaScript
692a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+	contains=@vimLuaScript
6934b22cdb0SBram Moolenaar syn cluster vimFuncBodyList	add=vimLuaRegion
6944b22cdb0SBram Moolenaarelse
6954b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+
6964b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+
6974b22cdb0SBram Moolenaarendif
6984b22cdb0SBram Moolenaarunlet s:luapath
6994b22cdb0SBram Moolenaar
700cfbc5ee4SBram Moolenaar" [-- perl --] {{{3
701adc2182cSBram Moolenaarlet s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim")
7025c73622aSBram Moolenaarif !filereadable(s:perlpath)
703a0f849eeSBram Moolenaar for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
704a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:perlpath))
705a0f849eeSBram Moolenaar   let s:perlpath= fnameescape(s:perlpath)
7069da7ff70SBram Moolenaar   break
7079da7ff70SBram Moolenaar  endif
7089da7ff70SBram Moolenaar endfor
7095c73622aSBram Moolenaarendif
710f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'p' && has("perl")) && filereadable(s:perlpath)
711071d4279SBram Moolenaar unlet! b:current_syntax
71251ad4eaaSBram Moolenaar syn cluster vimFuncBodyList	add=vimPerlRegion
7135c73622aSBram Moolenaar exe "syn include @vimPerlScript ".s:perlpath
71415142e27SBram Moolenaar VimFoldp syn region vimPerlRegion  matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(\S*\)\ze\(\s*["#].*\)\=$+ end=+^\z1\ze\(\s*[#"].*\)\=$+	contains=@vimPerlScript
715a0f849eeSBram Moolenaar VimFoldp syn region vimPerlRegion	matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+			contains=@vimPerlScript
7165c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimPerlRegion
717c236c16dSBram Moolenaarelse
718c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+
719c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+
7203577c6faSBram Moolenaarendif
7215c73622aSBram Moolenaarunlet s:perlpath
722071d4279SBram Moolenaar
723cfbc5ee4SBram Moolenaar" [-- ruby --] {{{3
724adc2182cSBram Moolenaarlet s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim")
7255c73622aSBram Moolenaarif !filereadable(s:rubypath)
726a0f849eeSBram Moolenaar for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
727a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:rubypath))
728a0f849eeSBram Moolenaar   let s:rubypath= fnameescape(s:rubypath)
7299da7ff70SBram Moolenaar   break
7309da7ff70SBram Moolenaar  endif
7319da7ff70SBram Moolenaar endfor
7325c73622aSBram Moolenaarendif
733f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'r' && has("ruby")) && filereadable(s:rubypath)
73451ad4eaaSBram Moolenaar syn cluster vimFuncBodyList	add=vimRubyRegion
735071d4279SBram Moolenaar unlet! b:current_syntax
7365c73622aSBram Moolenaar exe "syn include @vimRubyScript ".s:rubypath
73715142e27SBram Moolenaar VimFoldr syn region vimRubyRegion	matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+	contains=@vimRubyScript
738071d4279SBram Moolenaar syn region vimRubyRegion	matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+			contains=@vimRubyScript
7395c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimRubyRegion
740c236c16dSBram Moolenaarelse
741c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+
742c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+
743071d4279SBram Moolenaarendif
7445c73622aSBram Moolenaarunlet s:rubypath
745071d4279SBram Moolenaar
746cfbc5ee4SBram Moolenaar" [-- python --] {{{3
747adc2182cSBram Moolenaarlet s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim")
7485c73622aSBram Moolenaarif !filereadable(s:pythonpath)
749a0f849eeSBram Moolenaar for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
750a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:pythonpath))
751a0f849eeSBram Moolenaar   let s:pythonpath= fnameescape(s:pythonpath)
7529da7ff70SBram Moolenaar   break
7535c73622aSBram Moolenaar  endif
7549da7ff70SBram Moolenaar endfor
7559da7ff70SBram Moolenaarendif
75651ad4eaaSBram Moolenaarif g:vimsyn_embed =~# 'P' && has("pythonx") && filereadable(s:pythonpath)
757071d4279SBram Moolenaar unlet! b:current_syntax
75851ad4eaaSBram Moolenaar syn cluster vimFuncBodyList	add=vimPythonRegion
7595c73622aSBram Moolenaar exe "syn include @vimPythonScript ".s:pythonpath
7602c7f8c57SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon][3x]\=\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+	contains=@vimPythonScript
7612c7f8c57SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon][3x]\=\s*<<\s*$+ end=+\.$+				contains=@vimPythonScript
76215142e27SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+	contains=@vimPythonScript
763b4ff518dSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+				contains=@vimPythonScript
7645c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimPythonRegion
765c236c16dSBram Moolenaarelse
766fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
767fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+
7683577c6faSBram Moolenaarendif
7695c73622aSBram Moolenaarunlet s:pythonpath
770071d4279SBram Moolenaar
771cfbc5ee4SBram Moolenaar" [-- tcl --] {{{3
772a0f849eeSBram Moolenaarif has("win32") || has("win95") || has("win64") || has("win16")
773a0f849eeSBram Moolenaar " apparently has("tcl") has been hanging vim on some windows systems with cygwin
774a0f849eeSBram Moolenaar let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$')
775a0f849eeSBram Moolenaarelse
776a0f849eeSBram Moolenaar let s:trytcl= 1
777a0f849eeSBram Moolenaarendif
778a6878375SBram Moolenaarif s:trytcl
779adc2182cSBram Moolenaar let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim")
7805c73622aSBram Moolenaar if !filereadable(s:tclpath)
781a0f849eeSBram Moolenaar  for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
782a0f849eeSBram Moolenaar   if filereadable(fnameescape(s:tclpath))
783a0f849eeSBram Moolenaar    let s:tclpath= fnameescape(s:tclpath)
7849da7ff70SBram Moolenaar    break
7859da7ff70SBram Moolenaar   endif
7869da7ff70SBram Moolenaar  endfor
7875c73622aSBram Moolenaar endif
788f391327aSBram Moolenaar if (g:vimsyn_embed =~# 't' && has("tcl")) && filereadable(s:tclpath)
789071d4279SBram Moolenaar  unlet! b:current_syntax
79051ad4eaaSBram Moolenaar  syn cluster vimFuncBodyList	add=vimTclRegion
7915c73622aSBram Moolenaar  exe "syn include @vimTclScript ".s:tclpath
792a0f849eeSBram Moolenaar  VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimTclScript
793a0f849eeSBram Moolenaar  VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+	contains=@vimTclScript
7945c73622aSBram Moolenaar  syn cluster vimFuncBodyList	add=vimTclScript
795c236c16dSBram Moolenaar else
796c236c16dSBram Moolenaar  syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
797c236c16dSBram Moolenaar  syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+
7983577c6faSBram Moolenaar endif
7995c73622aSBram Moolenaar unlet s:tclpath
800a6878375SBram Moolenaarelse
801a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
802a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+
803a6878375SBram Moolenaarendif
804a6878375SBram Moolenaarunlet s:trytcl
805071d4279SBram Moolenaar
8068299df96SBram Moolenaar" [-- mzscheme --] {{{3
807adc2182cSBram Moolenaarlet s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim")
8085c73622aSBram Moolenaarif !filereadable(s:mzschemepath)
809a0f849eeSBram Moolenaar for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
810a0f849eeSBram Moolenaar  if filereadable(fnameescape(s:mzschemepath))
811a0f849eeSBram Moolenaar   let s:mzschemepath= fnameescape(s:mzschemepath)
8129da7ff70SBram Moolenaar   break
8139da7ff70SBram Moolenaar  endif
8149da7ff70SBram Moolenaar endfor
8155c73622aSBram Moolenaarendif
816f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'm' && has("mzscheme")) && filereadable(s:mzschemepath)
8178299df96SBram Moolenaar unlet! b:current_syntax
81803413f44SBram Moolenaar let s:iskKeep= &isk
81951ad4eaaSBram Moolenaar syn cluster vimFuncBodyList	add=vimMzSchemeRegion
8205c73622aSBram Moolenaar exe "syn include @vimMzSchemeScript ".s:mzschemepath
82103413f44SBram Moolenaar let &isk= s:iskKeep
82203413f44SBram Moolenaar unlet s:iskKeep
823a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+	contains=@vimMzSchemeScript
824a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+		contains=@vimMzSchemeScript
8255c73622aSBram Moolenaar syn cluster vimFuncBodyList	add=vimMzSchemeRegion
826c236c16dSBram Moolenaarelse
827c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+
828c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+
8293577c6faSBram Moolenaarendif
8305c73622aSBram Moolenaarunlet s:mzschemepath
8318299df96SBram Moolenaar
832cfbc5ee4SBram Moolenaar" Synchronize (speed) {{{2
833071d4279SBram Moolenaar"============
8343577c6faSBram Moolenaarif exists("g:vimsyn_minlines")
8353577c6faSBram Moolenaar exe "syn sync minlines=".g:vimsyn_minlines
836071d4279SBram Moolenaarendif
83703413f44SBram Moolenaarexe "syn sync maxlines=".s:vimsyn_maxlines
838071d4279SBram Moolenaarsyn sync linecont	"^\s\+\\"
839071d4279SBram Moolenaarsyn sync match vimAugroupSyncA	groupthere NONE	"\<aug\%[roup]\>\s\+[eE][nN][dD]"
840071d4279SBram Moolenaar
8415c73622aSBram Moolenaar" ====================
842cfbc5ee4SBram Moolenaar" Highlighting Settings {{{2
843071d4279SBram Moolenaar" ====================
844071d4279SBram Moolenaar
845f37506f6SBram Moolenaarif !exists("skip_vim_syntax_inits")
8463577c6faSBram Moolenaar if !exists("g:vimsyn_noerror")
847cfbc5ee4SBram Moolenaar  hi def link vimBehaveError	vimError
848cfbc5ee4SBram Moolenaar  hi def link vimCollClassErr	vimError
849cfbc5ee4SBram Moolenaar  hi def link vimErrSetting	vimError
850c236c16dSBram Moolenaar  hi def link vimEmbedError	vimError
851cfbc5ee4SBram Moolenaar  hi def link vimFTError	vimError
852cfbc5ee4SBram Moolenaar  hi def link vimFunctionError	vimError
8538299df96SBram Moolenaar  hi def link vimFunc         	vimError
854cfbc5ee4SBram Moolenaar  hi def link vimHiAttribList	vimError
855cfbc5ee4SBram Moolenaar  hi def link vimHiCtermError	vimError
856cfbc5ee4SBram Moolenaar  hi def link vimHiKeyError	vimError
857cfbc5ee4SBram Moolenaar  hi def link vimKeyCodeError	vimError
858cfbc5ee4SBram Moolenaar  hi def link vimMapModErr	vimError
859cfbc5ee4SBram Moolenaar  hi def link vimSubstFlagErr	vimError
860cfbc5ee4SBram Moolenaar  hi def link vimSynCaseError	vimError
8613577c6faSBram Moolenaar  hi def link vimBufnrWarn	vimWarn
862cfbc5ee4SBram Moolenaar endif
863cfbc5ee4SBram Moolenaar
864e37d50a5SBram Moolenaar hi def link vimAbb	vimCommand
865cfbc5ee4SBram Moolenaar hi def link vimAddress	vimMark
866a0f849eeSBram Moolenaar hi def link vimAugroupError	vimError
867071d4279SBram Moolenaar hi def link vimAugroupKey	vimCommand
86883d1b190SBram Moolenaar hi def link vimAuHighlight	vimHighlight
869071d4279SBram Moolenaar hi def link vimAutoCmdOpt	vimOption
870071d4279SBram Moolenaar hi def link vimAutoCmd	vimCommand
87183d1b190SBram Moolenaar hi def link vimAutoEvent	Type
872d58a3bf7SBram Moolenaar hi def link vimAutoCmdMod	Special
873071d4279SBram Moolenaar hi def link vimAutoSet	vimCommand
87483d1b190SBram Moolenaar hi def link vimBehaveModel	vimBehave
875071d4279SBram Moolenaar hi def link vimBehave	vimCommand
87683d1b190SBram Moolenaar hi def link vimBracket	Delimiter
87783d1b190SBram Moolenaar hi def link vimCmplxRepeat	SpecialChar
87883d1b190SBram Moolenaar hi def link vimCommand	Statement
87983d1b190SBram Moolenaar hi def link vimComment	Comment
8802c7f8c57SBram Moolenaar hi def link vim9Comment	Comment
881071d4279SBram Moolenaar hi def link vimCommentString	vimString
88283d1b190SBram Moolenaar hi def link vimCommentTitle	PreProc
883071d4279SBram Moolenaar hi def link vimCondHL	vimCommand
88483d1b190SBram Moolenaar hi def link vimContinue	Special
88583d1b190SBram Moolenaar hi def link vimCtrlChar	SpecialChar
886071d4279SBram Moolenaar hi def link vimEchoHLNone	vimGroup
887071d4279SBram Moolenaar hi def link vimEchoHL	vimCommand
88883d1b190SBram Moolenaar hi def link vimElseIfErr	Error
889071d4279SBram Moolenaar hi def link vimElseif	vimCondHL
89083d1b190SBram Moolenaar hi def link vimEnvvar	PreProc
89183d1b190SBram Moolenaar hi def link vimError	Error
89283d1b190SBram Moolenaar hi def link vimFBVar	vimVar
893071d4279SBram Moolenaar hi def link vimFgBgAttrib	vimHiAttrib
8942547aa93SBram Moolenaar hi def link vimHiCtermul	vimHiTerm
89583d1b190SBram Moolenaar hi def link vimFold	Folded
896071d4279SBram Moolenaar hi def link vimFTCmd	vimCommand
897071d4279SBram Moolenaar hi def link vimFTOption	vimSynType
898071d4279SBram Moolenaar hi def link vimFuncKey	vimCommand
89983d1b190SBram Moolenaar hi def link vimFuncName	Function
90083d1b190SBram Moolenaar hi def link vimFuncSID	Special
90183d1b190SBram Moolenaar hi def link vimFuncVar	Identifier
902071d4279SBram Moolenaar hi def link vimGroupAdd	vimSynOption
9036be7f873SBram Moolenaar hi def link vimGroupName	vimGroup
904071d4279SBram Moolenaar hi def link vimGroupRem	vimSynOption
90583d1b190SBram Moolenaar hi def link vimGroupSpecial	Special
90683d1b190SBram Moolenaar hi def link vimGroup	Type
90783d1b190SBram Moolenaar hi def link vimHiAttrib	PreProc
9086be7f873SBram Moolenaar hi def link vimHiClear	vimHighlight
909071d4279SBram Moolenaar hi def link vimHiCtermFgBg	vimHiTerm
910071d4279SBram Moolenaar hi def link vimHiCTerm	vimHiTerm
911071d4279SBram Moolenaar hi def link vimHighlight	vimCommand
912071d4279SBram Moolenaar hi def link vimHiGroup	vimGroupName
913071d4279SBram Moolenaar hi def link vimHiGuiFgBg	vimHiTerm
914071d4279SBram Moolenaar hi def link vimHiGuiFont	vimHiTerm
915071d4279SBram Moolenaar hi def link vimHiGuiRgb	vimNumber
916071d4279SBram Moolenaar hi def link vimHiGui	vimHiTerm
91783d1b190SBram Moolenaar hi def link vimHiNmbr	Number
918071d4279SBram Moolenaar hi def link vimHiStartStop	vimHiTerm
91983d1b190SBram Moolenaar hi def link vimHiTerm	Type
920071d4279SBram Moolenaar hi def link vimHLGroup	vimGroup
92183d1b190SBram Moolenaar hi def link vimHLMod	PreProc
922071d4279SBram Moolenaar hi def link vimInsert	vimString
92313d5aeefSBram Moolenaar hi def link vimIskSep	Delimiter
924071d4279SBram Moolenaar hi def link vimKeyCode	vimSpecFile
92583d1b190SBram Moolenaar hi def link vimKeyword	Statement
926071d4279SBram Moolenaar hi def link vimLet	vimCommand
9271ff14ba2SBram Moolenaar hi def link vimLetHereDoc	vimString
9281ff14ba2SBram Moolenaar hi def link vimLetHereDocStart	Special
9291ff14ba2SBram Moolenaar hi def link vimLetHereDocStop	Special
930071d4279SBram Moolenaar hi def link vimLineComment	vimComment
9312c7f8c57SBram Moolenaar hi def link vim9LineComment	vimComment
932071d4279SBram Moolenaar hi def link vimMapBang	vimCommand
933071d4279SBram Moolenaar hi def link vimMapModKey	vimFuncSID
934071d4279SBram Moolenaar hi def link vimMapMod	vimBracket
935071d4279SBram Moolenaar hi def link vimMap	vimCommand
93683d1b190SBram Moolenaar hi def link vimMark	Number
937071d4279SBram Moolenaar hi def link vimMarkNumber	vimNumber
938071d4279SBram Moolenaar hi def link vimMenuMod	vimMapMod
939071d4279SBram Moolenaar hi def link vimMenuNameMore	vimMenuName
94083d1b190SBram Moolenaar hi def link vimMenuName	PreProc
941071d4279SBram Moolenaar hi def link vimMtchComment	vimComment
94205159a0cSBram Moolenaar hi def link vimNorm	vimCommand
94383d1b190SBram Moolenaar hi def link vimNotation	Special
9445c73622aSBram Moolenaar hi def link vimNotFunc	vimCommand
945071d4279SBram Moolenaar hi def link vimNotPatSep	vimString
94683d1b190SBram Moolenaar hi def link vimNumber	Number
94783d1b190SBram Moolenaar hi def link vimOperError	Error
94883d1b190SBram Moolenaar hi def link vimOper	Operator
949388a5d4fSBram Moolenaar hi def link vimOperStar	vimOper
95083d1b190SBram Moolenaar hi def link vimOption	PreProc
95183d1b190SBram Moolenaar hi def link vimParenSep	Delimiter
952d2855f54SBram Moolenaar hi def link vimPatSepErr	vimError
9535c73622aSBram Moolenaar hi def link vimPatSepR	vimPatSep
95483d1b190SBram Moolenaar hi def link vimPatSep	SpecialChar
955071d4279SBram Moolenaar hi def link vimPatSepZone	vimString
9565c73622aSBram Moolenaar hi def link vimPatSepZ	vimPatSep
95783d1b190SBram Moolenaar hi def link vimPattern	Type
958071d4279SBram Moolenaar hi def link vimPlainMark	vimMark
959071d4279SBram Moolenaar hi def link vimPlainRegister	vimRegister
96083d1b190SBram Moolenaar hi def link vimRegister	SpecialChar
96183d1b190SBram Moolenaar hi def link vimScriptDelim	Comment
96283d1b190SBram Moolenaar hi def link vimSearchDelim	Statement
963e2f98b95SBram Moolenaar hi def link vimSearch	vimString
96483d1b190SBram Moolenaar hi def link vimSep	Delimiter
965071d4279SBram Moolenaar hi def link vimSetMod	vimOption
96683d1b190SBram Moolenaar hi def link vimSetSep	Statement
967071d4279SBram Moolenaar hi def link vimSetString	vimString
96883d1b190SBram Moolenaar hi def link vimSpecFile	Identifier
969071d4279SBram Moolenaar hi def link vimSpecFileMod	vimSpecFile
97083d1b190SBram Moolenaar hi def link vimSpecial	Type
97183d1b190SBram Moolenaar hi def link vimStatement	Statement
972071d4279SBram Moolenaar hi def link vimStringCont	vimString
97383d1b190SBram Moolenaar hi def link vimString	String
974d2855f54SBram Moolenaar hi def link vimStringEnd	vimString
97583d1b190SBram Moolenaar hi def link vimSubst1	vimSubst
97683d1b190SBram Moolenaar hi def link vimSubstDelim	Delimiter
97783d1b190SBram Moolenaar hi def link vimSubstFlags	Special
97883d1b190SBram Moolenaar hi def link vimSubstSubstr	SpecialChar
979071d4279SBram Moolenaar hi def link vimSubstTwoBS	vimString
980071d4279SBram Moolenaar hi def link vimSubst	vimCommand
98183d1b190SBram Moolenaar hi def link vimSynCaseError	Error
98283d1b190SBram Moolenaar hi def link vimSynCase	Type
98383d1b190SBram Moolenaar hi def link vimSyncC	Type
98483d1b190SBram Moolenaar hi def link vimSyncError	Error
985071d4279SBram Moolenaar hi def link vimSyncGroupName	vimGroupName
986071d4279SBram Moolenaar hi def link vimSyncGroup	vimGroupName
98783d1b190SBram Moolenaar hi def link vimSyncKey	Type
98883d1b190SBram Moolenaar hi def link vimSyncNone	Type
989071d4279SBram Moolenaar hi def link vimSynContains	vimSynOption
99083d1b190SBram Moolenaar hi def link vimSynError	Error
991071d4279SBram Moolenaar hi def link vimSynKeyContainedin	vimSynContains
992071d4279SBram Moolenaar hi def link vimSynKeyOpt	vimSynOption
993071d4279SBram Moolenaar hi def link vimSynMtchGrp	vimSynOption
994071d4279SBram Moolenaar hi def link vimSynMtchOpt	vimSynOption
995071d4279SBram Moolenaar hi def link vimSynNextgroup	vimSynOption
996071d4279SBram Moolenaar hi def link vimSynNotPatRange	vimSynRegPat
99783d1b190SBram Moolenaar hi def link vimSynOption	Special
998071d4279SBram Moolenaar hi def link vimSynPatRange	vimString
999071d4279SBram Moolenaar hi def link vimSynRegOpt	vimSynOption
1000071d4279SBram Moolenaar hi def link vimSynRegPat	vimString
100183d1b190SBram Moolenaar hi def link vimSynReg	Type
1002071d4279SBram Moolenaar hi def link vimSyntax	vimCommand
1003071d4279SBram Moolenaar hi def link vimSynType	vimSpecial
100483d1b190SBram Moolenaar hi def link vimTodo	Todo
10055c73622aSBram Moolenaar hi def link vimUnmap	vimMap
100683d1b190SBram Moolenaar hi def link vimUserAttrbCmpltFunc	Special
1007071d4279SBram Moolenaar hi def link vimUserAttrbCmplt	vimSpecial
1008071d4279SBram Moolenaar hi def link vimUserAttrbKey	vimOption
1009071d4279SBram Moolenaar hi def link vimUserAttrb	vimSpecial
1010b4ff518dSBram Moolenaar hi def link vimUserAttrbError	Error
1011e2719096SBram Moolenaar hi def link vimUserCmdError	Error
101283d1b190SBram Moolenaar hi def link vimUserCommand	vimCommand
10135c73622aSBram Moolenaar hi def link vimUserFunc	Normal
10146be7f873SBram Moolenaar hi def link vimVar	Identifier
10153577c6faSBram Moolenaar hi def link vimWarn	WarningMsg
1016f37506f6SBram Moolenaarendif
1017071d4279SBram Moolenaar
1018cfbc5ee4SBram Moolenaar" Current Syntax Variable: {{{2
1019071d4279SBram Moolenaarlet b:current_syntax = "vim"
10206be7f873SBram Moolenaar
10216be7f873SBram Moolenaar" ---------------------------------------------------------------------
10226be7f873SBram Moolenaar" Cleanup: {{{1
1023a0f849eeSBram Moolenaardelc VimFolda
1024a0f849eeSBram Moolenaardelc VimFoldf
1025a0f849eeSBram Moolenaardelc VimFoldl
1026a0f849eeSBram Moolenaardelc VimFoldm
1027a0f849eeSBram Moolenaardelc VimFoldp
1028a0f849eeSBram Moolenaardelc VimFoldP
1029a0f849eeSBram Moolenaardelc VimFoldr
1030a0f849eeSBram Moolenaardelc VimFoldt
10316be7f873SBram Moolenaarlet &cpo = s:keepcpo
10326be7f873SBram Moolenaarunlet s:keepcpo
1033071d4279SBram Moolenaar" vim:ts=18  fdm=marker
1034