File data/vim/syntax/vifm.vim changed (mode: 100644) (index 4fe63716c..489049358) |
1 |
1 |
" vifm syntax file |
" vifm syntax file |
2 |
2 |
" Maintainer: xaizek <xaizek@openmailbox.org> |
" Maintainer: xaizek <xaizek@openmailbox.org> |
3 |
|
" Last Change: March 19, 2014 |
|
|
3 |
|
" Last Change: April 24, 2014 |
4 |
4 |
" Based On: Vim syntax file by Dr. Charles E. Campbell, Jr. |
" Based On: Vim syntax file by Dr. Charles E. Campbell, Jr. |
5 |
5 |
|
|
6 |
6 |
if exists('b:current_syntax') |
if exists('b:current_syntax') |
|
... |
... |
syntax keyword vifmCommand contained alink apropos change chmod chown clone |
18 |
18 |
\ exi[t] file filter fin[d] fini[sh] gr[ep] h[elp] his[tory] jobs locate ls |
\ exi[t] file filter fin[d] fini[sh] gr[ep] h[elp] his[tory] jobs locate ls |
19 |
19 |
\ lstrash marks mes[sages] mkdir m[ove] noh[lsearch] on[ly] popd pushd pwd |
\ lstrash marks mes[sages] mkdir m[ove] noh[lsearch] on[ly] popd pushd pwd |
20 |
20 |
\ q[uit] reg[isters] rename restart restore rlink screen sh[ell] sor[t] |
\ q[uit] reg[isters] rename restart restore rlink screen sh[ell] sor[t] |
21 |
|
\ sp[lit] s[ubstitute] touch tr trashes sync undol[ist] unl[et] ve[rsion] |
|
22 |
|
\ vie[w] vifm vs[plit] windo winrun w[rite] wq x[it] y[ank] |
|
|
21 |
|
\ sp[lit] s[ubstitute] touch tr trashes sync undol[ist] ve[rsion] vie[w] |
|
22 |
|
\ vifm vs[plit] windo winrun w[rite] wq x[it] y[ank] |
23 |
23 |
|
|
24 |
24 |
" Map commands |
" Map commands |
25 |
25 |
syntax keyword vifmMap contained map mm[ap] mn[oremap] mu[nmap] nm[ap] |
syntax keyword vifmMap contained map mm[ap] mn[oremap] mu[nmap] nm[ap] |
|
... |
... |
syntax keyword vifmColoCommand contained colo[rscheme] |
35 |
35 |
syntax keyword vifmHiCommand contained hi[ghlight] |
syntax keyword vifmHiCommand contained hi[ghlight] |
36 |
36 |
syntax keyword vifmInvertCommand contained invert |
syntax keyword vifmInvertCommand contained invert |
37 |
37 |
syntax keyword vifmLetCommand contained let |
syntax keyword vifmLetCommand contained let |
|
38 |
|
syntax keyword vifmUnletCommand contained unl[et] |
38 |
39 |
syntax keyword vifmSetCommand contained se[t] |
syntax keyword vifmSetCommand contained se[t] |
39 |
40 |
syntax keyword vifmSoCommand contained so[urce] |
syntax keyword vifmSoCommand contained so[urce] |
40 |
41 |
syntax keyword vifmMarkCommand contained ma[rk] |
syntax keyword vifmMarkCommand contained ma[rk] |
|
... |
... |
syntax region vifmLet |
217 |
218 |
\ start='^\(\s\|:\)*\<let\>' skip='\(\n\s*\\\)\|\(\n\s*".*$\)' end='$' |
\ start='^\(\s\|:\)*\<let\>' skip='\(\n\s*\\\)\|\(\n\s*".*$\)' end='$' |
218 |
219 |
\ keepend |
\ keepend |
219 |
220 |
\ contains=vifmLetCommand,vifmEnvVar,vifmString,vifmStringInExpr,vifmComment |
\ contains=vifmLetCommand,vifmEnvVar,vifmString,vifmStringInExpr,vifmComment |
|
221 |
|
syntax region vifmUnlet |
|
222 |
|
\ start='^\(\s\|:\)*\<unl\%[et]\>' skip='\(\n\s*\\\)\|\(\n\s*".*$\)' end='$' |
|
223 |
|
\ keepend |
|
224 |
|
\ contains=vifmUnletCommand,vifmEnvVar,vifmComment |
220 |
225 |
syntax region vifmString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ |
syntax region vifmString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ |
221 |
226 |
syntax region vifmString contained start=+='+hs=s+1 skip=+\\\\\|\\'+ end=+'+ |
syntax region vifmString contained start=+='+hs=s+1 skip=+\\\\\|\\'+ end=+'+ |
222 |
227 |
syntax region vifmStringInExpr contained start=+=\@<="+hs=s+1 skip=+\\\\\|\\"+ |
syntax region vifmStringInExpr contained start=+=\@<="+hs=s+1 skip=+\\\\\|\\"+ |
|
... |
... |
highlight link vifmFtCommand Statement |
256 |
261 |
highlight link vifmExprCommand Statement |
highlight link vifmExprCommand Statement |
257 |
262 |
highlight link vifmNormalCommand Statement |
highlight link vifmNormalCommand Statement |
258 |
263 |
highlight link vifmLetCommand Statement |
highlight link vifmLetCommand Statement |
|
264 |
|
highlight link vifmUnletCommand Statement |
259 |
265 |
highlight link vifmSetCommand Statement |
highlight link vifmSetCommand Statement |
260 |
266 |
highlight link vifmSoCommand Statement |
highlight link vifmSoCommand Statement |
261 |
267 |
highlight link vifmBuiltinFunction Function |
highlight link vifmBuiltinFunction Function |