annotate runtime/syntax/vim.vim @ 170:8c60f65311fa v7.0052

updated for version 7.0052
author vimboss
date Sat, 26 Feb 2005 23:04:13 +0000
parents c93c9cad9618
children 7fd70926e2e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
2 " Language: Vim 7.0 script
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
4 " Last Change: February 22, 2005
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
5 " Version: 7.0-07
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Automatically generated keyword lists: {{{1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Quit when a syntax file was already loaded {{{2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " vimTodo: contains common special-notices for comments {{{2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Use the vimCommentGroup cluster to add your own.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword vimTodo contained COMBAK NOT RELEASED TODO WIP
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
16 syn cluster vimCommentGroup contains=vimTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " regular vim commands {{{2
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
19 syn keyword vimCommand contained ab[breviate] abc[lear] abo[veleft] al[l] arga[dd] argd[elete] argdo arge[dit] argg[lobal] argl[ocal] ar[gs] argu[ment] as[cii] bad[d] ba[ll] bd[elete] be bel[owright] bf[irst] bl[ast] bm[odified] bn[ext] bN[ext] bo[tright] bp[revious] brea[k] breaka[dd] breakd[el] breakl[ist] br[ewind] bro[wse] bufdo b[uffer] buffers bun[load] bw[ipeout] ca[bbrev] cabc[lear] cal[l] cat[ch] cb[uffer] cc ccl[ose] cd ce[nter] cf[ile] cfir[st] cg[etfile] c[hange] changes chd[ir] che[ckpath] checkt[ime] cla[st] cl[ist] clo[se] cmapc[lear] cnew[er] cn[ext] cN[ext] cnf[ile] cNf[ile] cnorea[bbrev] col[der] colo[rscheme] comc[lear] comp[iler] conf[irm] con[tinue] cope[n] co[py] cpf[ile] cp[revious] cq[uit] cr[ewind] cuna[bbrev] cu[nmap] cw[indow] debugg[reedy] delc[ommand] d[elete] DeleteFirst delf[unction] delm[arks] diffg[et] diffoff diffpatch diffpu[t] diffsplit diffthis dig[raphs] di[splay] dj[ump] dl[ist] dr[op] ds[earch] dsp[lit] echoe[rr] echom[sg] echon e[dit] el[se] elsei[f] em[enu] emenu* endfo[r] endf[unction] en[dif] endt[ry] endw[hile] ene[w] ex exi[t] exu[sage] f[ile] files filetype fina[lly] fin[d] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] folddoc[losed] foldd[oopen] foldo[pen] for fu[nction] g[lobal] go[to] gr[ep] grepa[dd] ha[rdcopy] h[elp] helpf[ind] helpg[rep] helpt[ags] hid[e] his[tory] I ia[bbrev] iabc[lear] if ij[ump] il[ist] imapc[lear] inorea[bbrev] is[earch] isp[lit] iuna[bbrev] iu[nmap] j[oin] ju[mps] k keepalt keepj[umps] kee[pmarks] lan[guage] la[st] lc[d] lch[dir] le[ft] lefta[bove] l[ist] lm[ap] lmapc[lear] ln[oremap] lo[adview] loc[kmarks] lockv[ar] ls lu[nmap] mak[e] ma[rk] marks mat[ch] menut[ranslate] mk[exrc] mks[ession] mkvie[w] mkv[imrc] mod[e] m[ove] mzf[ile] mz[scheme] nbkey new n[ext] N[ext] nmapc[lear] noh[lsearch] norea[bbrev] Nread nu[mber] nun[map] Nw omapc[lear] on[ly] o[pen] opt[ions] ou[nmap] pc[lose] ped[it] pe[rl] perld[o] po[p] popu popu[p] pp[op] pre[serve] prev[ious] p[rint] P[rint] prompt promptf[ind] promptr[epl] ps[earch] pta[g] ptf[irst] ptj[ump] ptl[ast] ptn[ext] ptN[ext] ptp[revious] ptr[ewind] pts[elect] pu[t] pw[d] pyf[ile] py[thon] qa[ll] q[uit] quita[ll] r[ead] rec[over] redi[r] red[o] redr[aw] redraws[tatus] reg[isters] res[ize] ret[ab] retu[rn] rew[ind] ri[ght] rightb[elow] rub[y] rubyd[o] rubyf[ile] ru[ntime] rv[iminfo] sal[l] sandbox sa[rgument] sav[eas] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbN[ext] sbp[revious] sbr[ewind] sb[uffer] scripte[ncoding] scrip[tnames] se[t] setf[iletype] setg[lobal] setl[ocal] sf[ind] sfir[st] sh[ell] sign sil[ent] sim[alt] sla[st] sl[eep] sm[agic] sn[ext] sN[ext] sni[ff] sno[magic] so[urce] sp[lit] spr[evious] sre[wind] sta[g] star[tinsert] startr[eplace] stj[ump] st[op] stopi[nsert] sts[elect] sun[hide] sus[pend] sv[iew] syncbind t ta[g] tags tc[l] tcld[o] tclf[ile] te[aroff] tf[irst] the th[row] tj[ump] tl[ast] tm tm[enu] tn[ext] tN[ext] to[pleft] tp[revious] tr[ewind] try ts[elect] tu tu[nmenu] una[bbreviate] u[ndo] unh[ide] unlo[ckvar] unm[ap] up[date] verb[ose] ve[rsion] vert[ical] v[global] vie[w] vim[grep] vimgrepa[dd] vi[sual] viu[sage] vmapc[lear] vne[w] vs[plit] vu[nmap] wa[ll] wh[ile] winc[md] windo winp[os] win[size] wn[ext] wN[ext] wp[revious] wq wqa[ll] w[rite] ws[verb] wv[iminfo] X xa[ll] x[it] y[ank]
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match vimCommand contained "\<z[-+^.=]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " vimOptions are caught only when contained in a vimSet {{{2
119
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
23 syn keyword vimOption contained : acd ai akm al aleph allowrevins altkeymap ambiwidth ambw anti antialias ar arab arabic arabicshape ari arshape autochdir autoindent autoread autowrite autowriteall aw awa background backspace backup backupcopy backupdir backupext backupskip balloondelay ballooneval bdir bdlay beval bex bg bh bin binary biosk bioskey bk bkc bl bomb breakat brk browsedir bs bsdir bsk bt bufhidden buflisted buftype casemap cb ccv cd cdpath cedit cf cfu ch charconvert ci cin cindent cink cinkeys cino cinoptions cinw cinwords clipboard cmdheight cmdwinheight cmp cms co columns com comments commentstring compatible complete completefunc confirm consk conskey copyindent cp cpo cpoptions cpt cscopepathcomp cscopeprg cscopequickfix cscopetag cscopetagorder cscopeverbose cspc csprg csqf cst csto csverb cwh debug deco def define delcombine dex dg dict dictionary diff diffexpr diffopt digraph dip dir directory display dy ea ead eadirection eb ed edcompatible ef efm ei ek enc encoding endofline eol ep equalalways equalprg errorbells errorfile errorformat esckeys et eventignore ex expandtab exrc fcl fcs fdc fde fdi fdl fdls fdm fdn fdo fdt fen fenc fencs ff ffs fileencoding fileencodings fileformat fileformats filetype fillchars fk fkmap flp fml fmr fo foldclose foldcolumn foldenable foldexpr foldignore foldlevel foldlevelstart foldmarker foldmethod foldminlines foldnestmax foldopen foldtext formatlistpat formatoptions formatprg fp fs fsync ft gcr gd gdefault gfm gfn gfs gfw ghr go gp grepformat grepprg guicursor guifont guifontset guifontwide guiheadroom guioptions guipty helpfile helpheight helplang hf hh hi hid hidden highlight history hk hkmap hkmapp hkp hl hlg hls hlsearch ic icon iconstring ignorecase im imactivatekey imak imc imcmdline imd imdisable imi iminsert ims imsearch inc include includeexpr incsearch inde indentexpr indentkeys indk inex inf infercase insertmode is isf isfname isi isident isk iskeyword isp isprint joinspaces js key keymap keymodel keywordprg km kmp kp langmap langmenu laststatus lazyredraw lbr lcs linebreak lines linespace lisp lispwords list listchars lm lmap loadplugins lpl ls lsp lw lz ma magic makeef makeprg mat matchpairs matchtime maxfuncdepth maxmapdepth maxmem maxmemtot mef menuitems mfd mh mis ml mls mm mmd mmt mod modeline modelines modifiable modified more mouse mousef mousefocus mousehide mousem mousemodel mouses mouseshape mouset mousetime mp mps mzq mzquantum nf nrformats nu number numberwidth nuw oft osfiletype pa para paragraphs paste pastetoggle patchexpr patchmode path pdev penc pex pexpr pfn pheader pi pm pmbcs pmbfn popt preserveindent previewheight previewwindow printdevice printencoding printexpr printfont printheader printmbcharset printmbfont printoptions pt pvh pvw qe quoteescape readonly remap report restorescreen revins ri rightleft rightleftcmd rl rlc ro rs rtp ru ruf ruler rulerformat runtimepath sb sbo sbr sc scb scr scroll scrollbind scrolljump scrolloff scrollopt scs sect sections secure sel selection selectmode sessionoptions sft sh shcf shell shellcmdflag shellpipe shellquote shellredir shellslash shelltype shellxquote shiftround shiftwidth shm shortmess shortname showbreak showcmd showfulltag showmatch showmode shq si sidescroll sidescrolloff siso sj slm sm smartcase smartindent smarttab smd sn so softtabstop sol sp splitbelow splitright spr sr srr ss ssl ssop st sta startofline statusline stl sts su sua suffixes suffixesadd sw swapfile swapsync swb swf switchbuf sws sxq syn syntax ta tabstop tag tagbsearch taglength tagrelative tags tagstack tb tbi tbidi tbis tbs tenc term termbidi termencoding terse textauto textmode textwidth tf tgst thesaurus tildeop timeout timeoutlen title titlelen titleold titlestring tl tm to toolbar toolbariconsize top tr ts tsl tsr ttimeout ttimeoutlen ttm tty ttybuiltin ttyfast ttym ttymouse ttyscroll ttytype tw tx uc ul undolevels updatecount updatetime ut vb vbs vdir ve verbose vi viewdir viewoptions viminfo virtualedit visualbell vop wa wak warn wb wc wcm wd weirdinvert wfh wh whichwrap wig wildchar wildcharm wildignore wildmenu wildmode wildoptions wim winaltkeys winfixheight winheight winminheight winminwidth winwidth wiv wiw wm wmh wmnu wmw wop wrap wrapmargin wrapscan write writeany writebackup writedelay ws ww
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " vimOptions: These are the turn-off setting variants {{{2
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
26 syn keyword vimOption contained noacd noai noakm noallowrevins noaltkeymap noanti noantialias noar noarab noarabic noarabicshape noari noarshape noautochdir noautoindent noautoread noautowrite noautowriteall noaw noawa nobackup noballooneval nobeval nobin nobinary nobiosk nobioskey nobk nobl nobomb nobuflisted nocf noci nocin nocindent nocompatible noconfirm noconsk noconskey nocopyindent nocp nocscopetag nocscopeverbose nocst nocsverb nodeco nodelcombine nodg nodiff nodigraph nodisable noea noeb noed noedcompatible noek noendofline noeol noequalalways noerrorbells noesckeys noet noex noexpandtab noexrc nofen nofk nofkmap nofoldenable nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkmapp nohkp nohls nohlsearch noic noicon noignorecase noim noimc noimcmdline noimd noincsearch noinf noinfercase noinsertmode nois nojoinspaces nojs nolazyredraw nolbr nolinebreak nolisp nolist noloadplugins nolpl nolz noma nomagic nomh noml nomod nomodeline nomodifiable nomodified nomore nomousef nomousefocus nomousehide nonu nonumber nopaste nopi nopreserveindent nopreviewwindow nopvw noreadonly noremap norestorescreen norevins nori norightleft norightleftcmd norl norlc noro nors noru noruler nosb nosc noscb noscrollbind noscs nosecure nosft noshellslash noshiftround noshortname noshowcmd noshowfulltag noshowmatch noshowmode nosi nosm nosmartcase nosmartindent nosmarttab nosmd nosn nosol nosplitbelow nosplitright nospr nosr nossl nosta nostartofline noswapfile noswf nota notagbsearch notagrelative notagstack notbi notbidi notbs notermbidi noterse notextauto notextmode notf notgst notildeop notimeout notitle noto notop notr nottimeout nottybuiltin nottyfast notx novb novisualbell nowa nowarn nowb noweirdinvert nowfh nowildmenu nowinfixheight nowiv nowmnu nowrap nowrapscan nowrite nowriteany nowritebackup nows
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " vimOptions: These are the invertible variants {{{2
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
29 syn keyword vimOption contained invacd invai invakm invallowrevins invaltkeymap invanti invantialias invar invarab invarabic invarabicshape invari invarshape invautochdir invautoindent invautoread invautowrite invautowriteall invaw invawa invbackup invballooneval invbeval invbin invbinary invbiosk invbioskey invbk invbl invbomb invbuflisted invcf invci invcin invcindent invcompatible invconfirm invconsk invconskey invcopyindent invcp invcscopetag invcscopeverbose invcst invcsverb invdeco invdelcombine invdg invdiff invdigraph invdisable invea inveb inved invedcompatible invek invendofline inveol invequalalways inverrorbells invesckeys invet invex invexpandtab invexrc invfen invfk invfkmap invfoldenable invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkmapp invhkp invhls invhlsearch invic invicon invignorecase invim invimc invimcmdline invimd invincsearch invinf invinfercase invinsertmode invis invjoinspaces invjs invlazyredraw invlbr invlinebreak invlisp invlist invloadplugins invlpl invlz invma invmagic invmh invml invmod invmodeline invmodifiable invmodified invmore invmousef invmousefocus invmousehide invnu invnumber invpaste invpi invpreserveindent invpreviewwindow invpvw invreadonly invremap invrestorescreen invrevins invri invrightleft invrightleftcmd invrl invrlc invro invrs invru invruler invsb invsc invscb invscrollbind invscs invsecure invsft invshellslash invshiftround invshortname invshowcmd invshowfulltag invshowmatch invshowmode invsi invsm invsmartcase invsmartindent invsmarttab invsmd invsn invsol invsplitbelow invsplitright invspr invsr invssl invsta invstartofline invswapfile invswf invta invtagbsearch invtagrelative invtagstack invtbi invtbidi invtbs invtermbidi invterse invtextauto invtextmode invtf invtgst invtildeop invtimeout invtitle invto invtop invtr invttimeout invttybuiltin invttyfast invtx invvb invvisualbell invwa invwarn invwb invweirdinvert invwfh invwildmenu invwinfixheight invwiv invwmnu invwrap invwrapscan invwrite invwriteany invwritebackup invws
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " termcap codes (which can also be set) {{{2
119
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
32 syn keyword vimOption contained t_AB t_AF t_al t_AL t_bc t_cd t_ce t_cl t_cm t_Co t_cs t_CS t_CV t_da t_db t_dl t_DL t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'* t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'* t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match vimOption contained "t_%1"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match vimOption contained "t_#2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match vimOption contained "t_#4"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match vimOption contained "t_@7"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match vimOption contained "t_*7"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match vimOption contained "t_&8"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match vimOption contained "t_%i"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match vimOption contained "t_k;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " unsupported settings: these are supported by vi but don't do anything in vim {{{2
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
43 syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 wi window
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " AutoBuf Events {{{2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn case ignore
164
8b0ee9d57d7f updated for version 7.0050
vimboss
parents: 161
diff changeset
47 syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CursorHold E135 E143 E200 E201 E203 E204 EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter InsertChange InsertEnter InsertLeave QuickFixCmdPost QuickFixCmdPre RemoteReply StdinReadPost StdinReadPre Syntax TermChanged TermResponse User UserGettingBored VimEnter VimLeave VimLeavePre WinEnter WinLeave
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Highlight commonly used Groupnames {{{2
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
50 syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Default highlighting groups {{{2
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 15
diff changeset
53 syn keyword vimHLGroup contained Cursor CursorIM DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr Menu ModeMsg MoreMsg NonText Normal Question Scrollbar Search SignColumn SpecialKey StatusLine StatusLineNC Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
54 syn match vimHLGroup contained "Conceal"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Function Names {{{2
164
8b0ee9d57d7f updated for version 7.0050
vimboss
parents: 161
diff changeset
58 syn keyword vimFuncName contained add append argc argidx argv browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call char2nr cindent col confirm copy count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty escape eval eventhandler executable exists expand expr8 extend filereadable filewritable filter finddir findfile fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function get getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfontname getfperm getfsize getftime getftype getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has has_key hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputrestore inputsave inputsecret insert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime map maparg mapcheck match matchend matchlist matchstr max min mode nextnonblank nr2char prevnonblank range readfile remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify sort split strftime stridx string strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system tempname tolower toupper tr type values virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth writefile
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 "--- syntax above generated by mkvimvim ---
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
61 " Special Vim Highlighting (not automatic) {{{1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
63 " Numbers {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " =======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match vimNumber "\<\d\+\([lL]\|\.\d\+\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match vimNumber "-\d\+\([lL]\|\.\d\+\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match vimNumber "\<0[xX]\x\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match vimNumber "#\x\{6}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
70 " All vimCommands are contained by vimIsCommands. {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
72 syn match vimIsCommand "\<\h\w*\>" contains=vimCommand
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match vimVar "\<[bwglsav]:\K\k*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match vimVar contained "\<\K\k*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
76 " Insertions And Appends: insert append {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " =======================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$" matchgroup=vimCommand end="^\.$""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$" matchgroup=vimCommand end="^\.$""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$" matchgroup=vimCommand end="^\.$""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
82 " Behave! {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " =======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match vimBehave "\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword vimBehaveModel contained mswin xterm
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
86 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
87 syn match vimBehaveError contained "[^ ]\+"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
88 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
90 " Filetypes {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " =========
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
92 syn match vimFiletype "\<filet\%[ype]\(\s\+\I\i*\)*" skipwhite contains=vimFTCmd,vimFTOption,vimFTError
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
93 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
94 syn match vimFTError contained "\I\i*"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
95 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword vimFTCmd contained filet[ype]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword vimFTOption contained detect indent off on plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
99 " Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn cluster vimAugroupList contains=vimIsCommand,vimFunction,vimFunctionError,vimLineComment,vimSpecFile,vimOper,vimNumber,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn region vimAugroup start="\<aug\%[roup]\>\s\+\K\k*" end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAugroupKey,vimAutoCmd,@vimAugroupList keepend
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
103 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
104 syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
105 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword vimAugroupKey contained aug[roup]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
108 " Functions : Tag is provided for those who wish to highlight tagged functions {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " =========
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
110 syn cluster vimFuncList contains=vimCommand,vimFuncKey,Tag,vimFuncSID
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn cluster vimFuncBodyList contains=vimIsCommand,vimFunction,vimFunctionError,vimFuncBody,vimLineComment,vimSpecFile,vimOper,vimNumber,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
112 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
113 syn match vimFunctionError "\<fu\%[nction]!\=\s\+\zs\U\i\{-}\ze\s*(" contains=vimFuncKey,vimFuncBlank nextgroup=vimFuncBody
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
114 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match vimFunction "\<fu\%[nction]!\=\s\+\(<[sS][iI][dD]>\|[Ss]:\|\u\)\i*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn region vimFuncBody contained start=")" end="\<endf\%[unction]" contains=@vimFuncBodyList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn match vimFuncVar contained "a:\(\I\i*\|\d\+\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn match vimFuncSID contained "\c<sid>\|\<s:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword vimFuncKey contained fu[nction]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn match vimFuncBlank contained "\s\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
122 syn keyword vimPattern contained start skip end
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
124 " Operators: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 " =========
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
126 syn cluster vimOperGroup contains=vimOper,vimOperParen,vimNumber,vimString,vimOperOk
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
127 syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
128 syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
129 syn region vimOperParen oneline matchgroup=vimOper start="(" end=")" contains=@vimOperGroup
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
130 syn region vimOperParen oneline matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
131 syn match vimOperOk "\<[aiAIrR][()]"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
132 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
133 syn match vimOperError ")"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
134 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
136 " Special Filenames, Modifiers, Extension Removal: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 " ===============================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn match vimSpecFile "<c\(word\|WORD\)>" nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match vimSpecFile "<\([acs]file\|amatch\|abuf\)>" nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn match vimSpecFile "\s%[ \t:]"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match vimSpecFile "\s%$"ms=s+1 nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match vimSpecFile "\s%<"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn match vimSpecFile "#\d\+\|[#%]<\>" nextgroup=vimSpecFileMod,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match vimSpecFileMod "\(:[phtre]\)\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
146 " User-Specified Commands: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " =======================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFunction,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword vimUserCommand contained com[mand]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserCommand,@vimUserCmdList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn match vimUserAttrb contained "-n\%[args]=[01*?+]" contains=vimUserAttrbKey,vimOper
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match vimUserAttrb contained "-com\%[plete]=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn match vimUserAttrb contained "-ra\%[nge]\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn match vimUserAttrb contained "-cou\%[nt]=\d\+" contains=vimNumber,vimOper,vimUserAttrbKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn match vimUserAttrb contained "-bang\=\>" contains=vimOper,vimUserAttrbKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn match vimUserAttrb contained "-re\%[gister]\>" contains=vimOper,vimUserAttrbKey
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
158 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
159 syn match vimUserCmdError contained "\S\+\>"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
160 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword vimUserAttrbCmplt contained augroup buffer command dir environment event expression file function help highlight mapping menu option tag tag_listfiles var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn match vimUserAttrbCmplt contained "custom,\u\w*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
167 " Errors: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 " ======
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
169 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
170 syn match vimElseIfErr "\<else\s\+if\>"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
171 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
173 " Lower Priority Comments: after some vim commands... {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 " =======================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn match vimComment excludenl +\s"[^\-:.%#=*].*$+lc=1 contains=@vimCommentGroup,vimCommentString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn match vimComment +\<endif\s\+".*$+lc=5 contains=@vimCommentGroup,vimCommentString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn match vimComment +\<else\s\+".*$+lc=4 contains=@vimCommentGroup,vimCommentString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn region vimCommentString contained oneline start='\S\s\+"'ms=s+1 end='"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
180 " Environment Variables: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 " =====================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match vimEnvvar "\$\I\i*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn match vimEnvvar "\${\I\i*}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
185 " In-String Specials: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " Try to catch strings, if nothing else matches (therefore it must precede the others!)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 " vimEscapeBrace handles ["] []"] (ie. "s don't terminate string inside [])
119
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
188 " COMBAK: I don't know why the \ze is needed in vimPatSepZone
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
189 syn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\^\=\]\=" skip="\\\\\|\\\]" end="\]"me=e-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn match vimPatSepErr contained "\\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn match vimPatSep contained "\\|"
119
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
192 syn region vimPatSepZone oneline contained matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\]['"]" contains=@vimStringGroup
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
193 syn region vimPatRegion contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn match vimNotPatSep contained "\\\\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn cluster vimStringGroup contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn region vimString oneline keepend start=+[^:a-zA-Z>!\\]"+lc=1 skip=+\\\\\|\\"+ end=+"+ contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn region vimString oneline keepend start=+[^:a-zA-Z>!\\]'+lc=1 end=+'+ contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
204 " Substitutions: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 " =============
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn cluster vimSubstList contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn cluster vimSubstRepList contains=vimSubstSubstr,vimSubstTwoBS,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn cluster vimSubstList add=vimCollection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn match vimSubst "\(:\+\s*\|^\s*\||\s*\)\<s\%[ubstitute][:[:alpha:]]\@!" nextgroup=vimSubstPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 syn match vimSubst "s\%[ubstitute][:[:alpha:]]\@!" nextgroup=vimSubstPat contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn match vimSubst "/\zss\%[ubstitute]\ze/" nextgroup=vimSubstPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn match vimSubst1 contained "s\%[ubstitute]\>" nextgroup=vimSubstPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn 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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn region vimSubstRep4 contained matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList nextgroup=vimSubstFlagErr oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn region vimCollection contained transparent start="\\\@<!\[" skip="\\\[" end="\]" contains=vimCollClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn match vimCollClassErr contained "\[:.\{-\}:\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn match vimCollClass contained transparent "\[:\(alnum\|alpha\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\|return\|tab\|escape\|backspace\):\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn match vimSubstSubstr contained "\\z\=\d"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match vimSubstTwoBS contained "\\\\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match vimSubstFlagErr contained "[^< \t\r]\+" contains=vimSubstFlags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match vimSubstFlags contained "[&cegiIpr]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
223 " 'String': {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn match vimString "[^(,]'[^']\{-}'"lc=1 contains=@vimStringGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
226 " Marks, Registers, Addresses, Filters: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn match vimMark "'[<>]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match vimMark ",\zs'[<>]\ze" nextgroup=vimOper,vimMarkNumber,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn match vimMarkNumber "[-+]\d\+" nextgroup=vimSubst contained contains=vimOper
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match vimPlainMark contained "'[a-zA-Z0-9]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn match vimRegister '[^(,;.]"[a-zA-Z0-9.%#:_\-/][^a-zA-Z_"]'lc=1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn match vimRegister '\<norm\s\+"[a-zA-Z0-9]'lc=5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn match vimRegister '\<normal\s\+"[a-zA-Z0-9]'lc=7
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
238 syn match vimRegister '@"'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn match vimAddress ",[.$]"lc=1 skipwhite nextgroup=vimSubst1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 syn match vimAddress "%\a"me=e-1 skipwhite nextgroup=vimString,vimSubst1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 syn match vimFilter contained "^!.\{-}\(|\|$\)" contains=vimSpecFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 syn match vimFilter contained "\A!.\{-}\(|\|$\)"ms=s+1 contains=vimSpecFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
247 " Complex repeats (:h complex-repeat) {{{2
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
248 syn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]'lc=1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match vimCmplxRepeat '@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\)'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
251 " Set command and associated set-options (vimOptions) with comment {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn region vimSet matchgroup=vimCommand start="\<setlocal\|set\>" end="|"me=e-1 end="$" matchgroup=vimNotation end="<[cC][rR]>" keepend contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vimSetString,vimSetMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 syn region vimSetEqual contained start="=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 syn match vimSetSep contained "[,:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 syn match vimSetMod contained "&vim\|[!&]\|all&"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
258 " Let {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 " ===
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn keyword vimLet let unl[et] skipwhite nextgroup=vimVar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
262 " Autocmd {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 " =======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn match vimAutoEventList contained "\(!\s\+\)\=\(\a\+,\)*\a\+" contains=vimAutoEvent nextgroup=vimAutoCmdSpace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn match vimAutoCmdSpace contained "\s\+" nextgroup=vimAutoCmdSfxList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 syn match vimAutoCmdSfxList contained "\S*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 syn keyword vimAutoCmd au[tocmd] do[autocmd] doautoa[ll] skipwhite nextgroup=vimAutoEventList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
269 " Echo and Execute -- prefer strings! {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 " ================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn region vimEcho oneline excludenl matchgroup=vimCommand start="\<ec\%[ho]\>" skip="\(\\\\\)*\\|" end="$\||" contains=vimFunc,vimString,varVar
36
125e80798a85 updated for version 7.0021
vimboss
parents: 16
diff changeset
272 syn region vimExecute oneline excludenl matchgroup=vimCommand start="\<exe\%[cute]\>" skip="\(\\\\\)*\\|" end="$\||\|<[cC][rR]>" contains=vimIsCommand,vimString,vimOper,vimVar,vimNotation,vimOperParen
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 syn match vimEchoHL "echohl\=" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchoHLNone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 syn keyword vimEchoHLNone none
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
278 " Maps {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 " ====
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 syn cluster vimMapGroup contains=vimMapBang,vimMapLhs,vimMapMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 syn keyword vimMap cm[ap] cno[remap] im[ap] ino[remap] map nm[ap] nn[oremap] no[remap] om[ap] ono[remap] vm[ap] vn[oremap] skipwhite nextgroup=@vimMapGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 syn match vimMapBang contained "!" skipwhite nextgroup=vimMapLhs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 syn match vimMapMod contained "\c<\(buffer\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMapGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 syn keyword vimMapModKey contained buffer leader localleader plug script sid silent unique
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
289 " Menus {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 " =====
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 syn cluster vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 syn 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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 syn match vimMenuName "[^ \t\\<]\+" contained nextgroup=vimMenuNameMore,vimMenuMap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 syn match vimMenuPriority "\d\+\(\.\d\+\)*" contained skipwhite nextgroup=vimMenuName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 syn match vimMenuNameMore "\c\\\s\|<tab>\|\\\." contained nextgroup=vimMenuName,vimMenuNameMore contains=vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 syn match vimMenuMod contained "\c<\(script\|silent\)\+>" skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMenuList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 syn match vimMenuMap "\s" contained skipwhite nextgroup=vimMenuRhs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 syn match vimMenuRhs ".*$" contained contains=vimString,vimComment,vimIsCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 syn match vimMenuBang "!" contained skipwhite nextgroup=@vimMenuList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
301 " Angle-Bracket Notation (tnx to Michael Geddes) {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 " ======================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 syn match vimNotation "\(\\\|<lt>\)\=<\([scam]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|space\|k\=\(page\)\=\(\|down\|up\)\)>" contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 syn match vimNotation "\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>" contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 syn match vimNotation "\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>" contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 syn match vimNotation '\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1 contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 syn match vimNotation '\(\\\|<lt>\)\=<\(line[12]\|count\|bang\|reg\|args\|lt\|[qf]-args\)>' contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 syn match vimNotation "\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>" contains=vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 syn match vimBracket contained "[\\<>]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
313 " User Function Highlighting (following Gautam Iyer's suggestion) {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 " ==========================
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
315 syn match vimFunc "\%([sS]:\|<[sS][iI][dD]>\)\=\I\i*\ze\s*(" contains=vimFuncName,vimUserFunc,vimCommand,vimNotFunc,vimExecute
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
316 syn match vimUserFunc contained "\%([sS]:\|<[sS][iI][dD]>\)\i\+\|\<\u\i*\>\|\<if\>" contains=vimNotation,vimCommand
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
317 syn match vimNotFunc contained "\<[aiAIrR]("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
319 " Norm
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
320 " ====
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
321 syn match vimNorm "\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
322 syn match vimNormCmds contained ".*$"
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
323
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
324 " Syntax {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 "=======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 syn match vimGroupList contained "@\=[^ \t,]*" contains=vimGroupSpecial,vimPatSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 syn match vimGroupList contained "@\=[^ \t,]*," nextgroup=vimGroupList contains=vimGroupSpecial,vimPatSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 syn keyword vimGroupSpecial contained ALL ALLBUT
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
329 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
330 syn match vimSynError contained "\i\+"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
331 syn match vimSynError contained "\i\+=" nextgroup=vimGroupList
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
332 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 syn match vimSynContains contained "\<contain\(s\|edin\)=" nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 syn match vimSynKeyContainedin contained "\<containedin=" nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 syn match vimSynNextgroup contained "nextgroup=" nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 syn match vimSyntax "\<sy\%[ntax]\>" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 syn match vimAuSyntax contained "\s+sy\%[ntax]" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
340 " Syntax: case {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 syn keyword vimSynType contained case skipwhite nextgroup=vimSynCase,vimSynCaseError
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
342 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
343 syn match vimSynCaseError contained "\i\+"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
344 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 syn keyword vimSynCase contained ignore match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
347 " Syntax: clear {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 syn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
350 " Syntax: cluster {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 syn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 syn region vimClusterName contained matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 syn match vimGroupAdd contained "add=" nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 syn match vimGroupRem contained "remove=" nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
356 " Syntax: include {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 syn keyword vimSynType contained include skipwhite nextgroup=vimGroupList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
359 " Syntax: keyword {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 syn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 syn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 syn region vimSynKeyRegion contained keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 syn match vimSynKeyOpt contained "\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
365 " Syntax: match {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 if has("conceal")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 syn match vimSynMtchOpt contained "\<cchar=" nextgroup=VimSynMtchCchar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 syn match vimSynMtchCchar contained "."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
375 " Syntax: off and on {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 syn keyword vimSynType contained enable list manual off on reset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
378 " Syntax: region {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 syn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 syn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 syn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 syn match vimSynRegOpt contained "\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 syn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 syn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 syn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 syn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 syn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=," nextgroup=vimSynPatMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 syn match vimSynPatMod contained "lc=\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 syn match vimSynPatMod contained "lc=\d\+," nextgroup=vimSynPatMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 syn region vimSynPatRange contained start="\[" skip="\\\\\|\\]" end="]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 syn match vimSynNotPatRange contained "\\\\\|\\\["
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 syn match vimMtchComment contained '"[^"]\+$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
395 " Syntax: sync {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 " ============
167
c93c9cad9618 updated for version 7.0051
vimboss
parents: 164
diff changeset
397 syn keyword vimSynType contained sync skipwhite nextgroup=vimSyncC,vimSyncLines,vimSyncMatch,vimSyncError,vimSyncLinebreak,vimSyncLinecont,vimSyncRegion
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
398 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
399 syn match vimSyncError contained "\i\+"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
400 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 syn keyword vimSyncC contained ccomment clear fromstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 syn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 syn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg
167
c93c9cad9618 updated for version 7.0051
vimboss
parents: 164
diff changeset
404 syn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 syn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 syn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 syn match vimSyncGroupName contained "\k\+" skipwhite nextgroup=vimSyncKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 syn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 syn match vimSyncGroup contained "\k\+" skipwhite nextgroup=vimSynRegPat,vimSyncNone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 syn keyword vimSyncNone contained NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
412 " Additional IsCommand, here by reasons of precedence {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 " ====================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 syn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
416 " Highlighting {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 " ============
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 syn cluster vimHighlightCluster contains=vimHiLink,vimHiClear,vimHiKeyList,vimComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 syn match vimHighlight "\<hi\%[ghlight]\>" skipwhite nextgroup=vimHiBang,@vimHighlightCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 syn match vimHiBang contained "!" skipwhite nextgroup=@vimHighlightCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 syn match vimHiGroup contained "\i\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 syn keyword vimHiAttrib contained none bold inverse italic reverse standout underline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 syn keyword vimFgBgAttrib contained none bg background fg foreground
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 syn match vimHiAttribList contained "\i\+" contains=vimHiAttrib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 syn match vimHiAttribList contained "\i\+,"he=e-1 contains=vimHiAttrib nextgroup=vimHiAttribList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 syn keyword vimHiCtermColor contained black blue brown cyan darkBlue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred magenta red white yellow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 syn match vimHiFontname contained "[a-zA-Z\-*]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 syn match vimHiGuiFontname contained "'[a-zA-Z\-* ]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 syn match vimHiGuiRgb contained "#\x\{6}"
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
436 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
437 syn match vimHiCtermError contained "[^0-9]\i*"
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
438 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
440 " Highlighting: hi group key=arg ... {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 syn cluster vimHiCluster contains=vimHiGroup,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 syn region vimHiKeyList contained oneline start="\i\+" skip="\\\\\|\\|" end="$\||" contains=@vimHiCluster
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
443 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
444 syn match vimHiKeyError contained "\i\+="he=e-1
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
445 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 syn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 syn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 syn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimNumber,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 syn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 syn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 syn match vimHiGuiFgBg contained "\cgui[fb]g="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 syn match vimHiTermcap contained "\S\+" contains=vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
455 " Highlight: clear {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 syn keyword vimHiClear contained clear nextgroup=vimHiGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
458 " Highlight: link {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 syn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\s\+\)\=link\>\|\<def\>" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
461 " Control Characters {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 " ==================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 syn match vimCtrlChar "[- -]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
465 " Beginners - Patterns that involve ^ {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 " =========
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 syn match vimLineComment +^[ \t:]*".*$+ contains=@vimCommentGroup,vimCommentString,vimCommentTitle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 syn match vimCommentTitle '"\s*\u\w*\(\s\+\u\w*\)*:'hs=s+1 contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 syn match vimContinue "^\s*\\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 syn region vimString start="^\s*\\\z(['"]\)" skip='\\\\\|\\\z1' end="\z1" oneline keepend contains=@vimStringGroup,vimContinue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 syn match vimCommentTitleLeader '"\s\+'ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
473 " Scripts : perl,ruby : Benoit Cerrina {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 " ======= python,tcl: Johannes Zellner
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 " allow users to prevent embedded script syntax highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 " when vim doesn't have perl/python/ruby/tcl support. Do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 " so by setting g:vimembedscript= 0 in the user's <.vimrc>.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 if !exists("g:vimembedscript")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 let g:vimembedscript= 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
483 " [-- perl --] {{{3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 if (has("perl") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/perl.vim")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 unlet! b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 syn include @vimPerlScript <sfile>:p:h/perl.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
491 " [-- ruby --] {{{3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 if (has("ruby") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/ruby.vim")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 unlet! b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 syn include @vimRubyScript <sfile>:p:h/ruby.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
499 " [-- python --] {{{3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 if (has("python") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/python.vim")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501 unlet! b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 syn include @vimPythonScript <sfile>:p:h/python.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503 syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
507 " [-- tcl --] {{{3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 if (has("tcl") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/tcl.vim")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 unlet! b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 syn include @vimTclScript <sfile>:p:h/tcl.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
515 " [-- mzscheme --] {{{3
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
516 if (has("mzscheme") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/scheme.vim")
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
517 unlet! b:current_syntax
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
518 let iskKeep= &isk
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
519 syn include @vimMzSchemeScript <sfile>:p:h/scheme.vim
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
520 let &isk= iskKeep
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
521 syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
522 syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
523 endif
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
524
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
525 " Synchronize (speed) {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 "============
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 if exists("g:vim_minlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 exe "syn sync minlines=".g:vim_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 if exists("g:vim_maxlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 exe "syn sync maxlines=".g:vim_maxlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 syn sync maxlines=60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 syn sync linecont "^\s\+\\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 syn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
538 " Highlighting Settings {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 " ====================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 hi def link vimAuHighlight vimHighlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 hi def link vimSubst1 vimSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 hi def link vimBehaveModel vimBehave
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
545 if !exists("g:vimsyntax_noerror")
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
546 hi def link vimBehaveError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
547 hi def link vimCollClassErr vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
548 hi def link vimErrSetting vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
549 hi def link vimFTError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
550 hi def link vimFunctionError vimError
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 12
diff changeset
551 hi def link vimFunc vimError
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
552 hi def link vimHiAttribList vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
553 hi def link vimHiCtermError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
554 hi def link vimHiKeyError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
555 hi def link vimKeyCodeError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
556 hi def link vimMapModErr vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
557 hi def link vimSubstFlagErr vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
558 hi def link vimSynCaseError vimError
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
559 endif
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
560
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 hi def link vimAddress vimMark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 hi def link vimAugroupKey vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 hi def link vimAutoCmdOpt vimOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 hi def link vimAutoCmd vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 hi def link vimAutoSet vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 hi def link vimBehave vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 hi def link vimCommentString vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 hi def link vimCondHL vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 hi def link vimEchoHLNone vimGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 hi def link vimEchoHL vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 hi def link vimElseif vimCondHL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 hi def link vimFgBgAttrib vimHiAttrib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 hi def link vimFTCmd vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 hi def link vimFTOption vimSynType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 hi def link vimFuncKey vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 hi def link vimGroupAdd vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 hi def link vimGroupRem vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 hi def link vimHiCtermFgBg vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 hi def link vimHiCTerm vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 hi def link vimHighlight vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 hi def link vimHiGroup vimGroupName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 hi def link vimHiGuiFgBg vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 hi def link vimHiGuiFont vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 hi def link vimHiGuiRgb vimNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 hi def link vimHiGui vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 hi def link vimHiStartStop vimHiTerm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 hi def link vimHLGroup vimGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 hi def link vimInsert vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 hi def link vimKeyCode vimSpecFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 hi def link vimLet vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 hi def link vimLineComment vimComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 hi def link vimMapBang vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 hi def link vimMapModKey vimFuncSID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 hi def link vimMapMod vimBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 hi def link vimMap vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 hi def link vimMarkNumber vimNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 hi def link vimMenuMod vimMapMod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 hi def link vimMenuNameMore vimMenuName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 hi def link vimMtchComment vimComment
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 167
diff changeset
600 hi def link vimNorm vimCommand
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 hi def link vimNotFunc vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 hi def link vimNotPatSep vimString
119
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
603 hi def link vimPatSepR vimPatSep
e8f07016e34d updated for version 7.0042
vimboss
parents: 36
diff changeset
604 hi def link vimPatSepZ vimPatSep
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 hi def link vimPatSepErr vimPatSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 hi def link vimPatSepZone vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 hi def link vimPlainMark vimMark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 hi def link vimPlainRegister vimRegister
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 hi def link vimSetMod vimOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 hi def link vimSetString vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 hi def link vimSpecFileMod vimSpecFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 hi def link vimStringCont vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 hi def link vimSubstTwoBS vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 hi def link vimSubst vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 hi def link vimSyncGroupName vimGroupName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 hi def link vimSyncGroup vimGroupName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 hi def link vimSynContains vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 hi def link vimSynKeyContainedin vimSynContains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 hi def link vimSynKeyOpt vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 hi def link vimSynMtchGrp vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 hi def link vimSynMtchOpt vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 hi def link vimSynNextgroup vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 hi def link vimSynNotPatRange vimSynRegPat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 hi def link vimSynPatRange vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 hi def link vimSynRegOpt vimSynOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 hi def link vimSynRegPat vimString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 hi def link vimSyntax vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 hi def link vimSynType vimSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 hi def link vimUserAttrbCmplt vimSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 hi def link vimUserAttrbKey vimOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 hi def link vimUserAttrb vimSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 hi def link vimUserCommand vimCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 hi def link vimUserFunc Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 hi def link vimAutoEvent Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 hi def link vimBracket Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 hi def link vimCmplxRepeat SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 hi def link vimCommand Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 hi def link vimComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 hi def link vimCommentTitle PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 hi def link vimContinue Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 hi def link vimCtrlChar SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 hi def link vimElseIfErr Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 hi def link vimEnvvar PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 hi def link vimError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 hi def link vimFold Folded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 hi def link vimFuncName Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 hi def link vimFuncSID Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 hi def link vimFuncVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 hi def link vimGroup Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 hi def link vimGroupSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 hi def link vimHLMod PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 hi def link vimHiAttrib PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 hi def link vimHiTerm Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 hi def link vimKeyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 hi def link vimMark Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 hi def link vimMenuName PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 hi def link vimNotation Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 hi def link vimNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 hi def link vimOper Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 hi def link vimOption PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 hi def link vimOperError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 hi def link vimPatSep SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 hi def link vimPattern Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 hi def link vimRegister SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 hi def link vimScriptDelim Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667 hi def link vimSep Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 hi def link vimSetSep Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 hi def link vimSpecFile Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 hi def link vimSpecial Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 hi def link vimStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 hi def link vimString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 hi def link vimSubstDelim Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 hi def link vimSubstFlags Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 hi def link vimSubstSubstr SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 hi def link vimSynCase Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 hi def link vimSynCaseError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 hi def link vimSynError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 hi def link vimSynOption Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 hi def link vimSynReg Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 hi def link vimSyncC Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 hi def link vimSyncError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 hi def link vimSyncKey Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 hi def link vimSyncNone Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 hi def link vimTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 hi def link vimUserCmdError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 7
diff changeset
688 " Current Syntax Variable: {{{2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 let b:current_syntax = "vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 " vim:ts=18 fdm=marker