comparison runtime/syntax/vim.vim @ 3920:c53344bacabf

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 15 Nov 2012 21:28:22 +0100
parents 11d40fc82f11
children fa4089df54bc
comparison
equal deleted inserted replaced
3919:23fc3dc4317e 3920:c53344bacabf
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Vim 7.3 script 2 " Language: Vim 7.3 script
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz> 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Jan 11, 2012 4 " Last Change: Nov 14, 2012
5 " Version: 7.3-13 5 " Version: 7.3-20
6 " Automatically generated keyword lists: {{{1 6 " Automatically generated keyword lists: {{{1
7 7
8 " Quit when a syntax file was already loaded {{{2 8 " Quit when a syntax file was already loaded {{{2
9 if exists("b:current_syntax") 9 if exists("b:current_syntax")
10 finish 10 finish
74 syn case match 74 syn case match
75 75
76 " Function Names {{{2 76 " Function Names {{{2
77 syn keyword vimFuncName contained abs append argv atan2 bufexists bufname byte2line ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert items len line localtime map match matchdelete matchstr min mode nextnonblank pathshorten prevnonblank pumvisible readfile reltimestr remote_foreground remote_read remove repeat reverse search searchpair searchpos serverlist setcmdpos setloclist setpos setreg settabwinvar shellescape sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol winbufnr winheight winnr winrestview winwidth 77 syn keyword vimFuncName contained abs append argv atan2 bufexists bufname byte2line ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert items len line localtime map match matchdelete matchstr min mode nextnonblank pathshorten prevnonblank pumvisible readfile reltimestr remote_foreground remote_read remove repeat reverse search searchpair searchpos serverlist setcmdpos setloclist setpos setreg settabwinvar shellescape sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol winbufnr winheight winnr winrestview winwidth
78 syn keyword vimFuncName contained acos argc asin browse buflisted bufnr byteidx changenr clearmatches complete_add copy count deepcopy diff_filler escape executable expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave isdirectory join libcall line2byte log maparg matchadd matchend max mkdir mzeval nr2char pow printf range reltime remote_expr remote_peek remote_send rename resolve round searchdecl searchpairpos server2client setbufvar setline setmatches setqflist settabvar setwinvar simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode wincol winline winrestcmd winsaveview writefile 78 syn keyword vimFuncName contained acos argc asin browse buflisted bufnr byteidx changenr clearmatches complete_add copy count deepcopy diff_filler escape executable expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave isdirectory join libcall line2byte log maparg matchadd matchend max mkdir mzeval nr2char pow printf range reltime remote_expr remote_peek remote_send rename resolve round searchdecl searchpairpos server2client setbufvar setline setmatches setqflist settabvar setwinvar simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode wincol winline winrestcmd winsaveview writefile
79 syn keyword vimFuncName contained add argidx atan browsedir bufloaded bufwinnr call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret islocked keys libcallnr lispindent log10 mapcheck matcharg matchlist pyeval py3eval luaeval 79 syn keyword vimFuncName contained add argidx atan browsedir bufloaded bufwinnr call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret islocked keys libcallnr lispindent log10 mapcheck matcharg matchlist
80 80
81 "--- syntax above generated by mkvimvim --- 81 "--- syntax above generated by mkvimvim ---
82 " Special Vim Highlighting (not automatic) {{{1 82 " Special Vim Highlighting (not automatic) {{{1
83 83
84 " commands not picked up by the generator (due to non-standard format) 84 " commands not picked up by the generator (due to non-standard format)
147 endif 147 endif
148 syn keyword vimAugroupKey contained aug[roup] 148 syn keyword vimAugroupKey contained aug[roup]
149 149
150 " Operators: {{{2 150 " Operators: {{{2
151 " ========= 151 " =========
152 " COMBAK: vimOperParen used to have "oneline"
152 syn cluster vimOperGroup contains=vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue 153 syn cluster vimOperGroup contains=vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue
153 syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile 154 syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile
154 syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile 155 syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile
155 syn region vimOperParen oneline matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup 156 syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
156 syn region vimOperParen oneline matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar 157 syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
157 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror") 158 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
158 syn match vimOperError ")" 159 syn match vimOperError ")"
159 endif 160 endif
160 161
161 " Functions : Tag is provided for those who wish to highlight tagged functions {{{2 162 " Functions : Tag is provided for those who wish to highlight tagged functions {{{2
201 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") 202 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror")
202 syn match vimUserCmdError contained "\S\+\>" 203 syn match vimUserCmdError contained "\S\+\>"
203 endif 204 endif
204 syn case ignore 205 syn case ignore
205 syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister] 206 syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister]
206 syn keyword vimUserAttrbCmplt contained augroup buffer command dir environment event expression file function help highlight mapping menu option shellcmd something tag tag_listfiles var 207 syn keyword vimUserAttrbCmplt contained augroup buffer color command compiler cscope dir environment event expression file file_in_path filetype function help highlight locale mapping menu option shellcmd sign syntax tag tag_listfiles var
207 syn keyword vimUserAttrbCmplt contained custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError 208 syn keyword vimUserAttrbCmplt contained custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError
208 syn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\u\w*\)\+\|\u\w*\)"hs=s+1 nextgroup=vimUserCmdError 209 syn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\u\w*\)\+\|\u\w*\)"hs=s+1 nextgroup=vimUserCmdError
209 210
210 syn case match 211 syn case match
211 syn match vimUserAttrbCmplt contained "custom,\u\w*" 212 syn match vimUserAttrbCmplt contained "custom,\u\w*"
326 syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs 327 syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs
327 syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs 328 syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs
328 syn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs 329 syn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs
329 syn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs 330 syn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs
330 syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend 331 syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend
331 syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue 332 syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimNotation,vimCtrlChar,vimContinue skipnl nextgroup=vimMapRhsExtend
332 syn case ignore 333 syn case ignore
333 syn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique 334 syn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique
334 syn case match 335 syn case match
335 336
336 " Menus {{{2 337 " Menus {{{2
358 syn case match 359 syn case match
359 360
360 " User Function Highlighting {{{2 361 " User Function Highlighting {{{2
361 " (following Gautam Iyer's suggestion) 362 " (following Gautam Iyer's suggestion)
362 " ========================== 363 " ==========================
363 syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute 364 syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute
364 syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation 365 syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation
365 syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" 366 syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>"
366 367
367 " Errors And Warnings: {{{2 368 " Errors And Warnings: {{{2
368 " ==================== 369 " ====================
369 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") 370 if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror")
427 syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation 428 syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation
428 syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion 429 syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion
429 syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup 430 syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
430 syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" 431 syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>"
431 if has("conceal") 432 if has("conceal")
432 syn match vimSynMtchOpt contained "\<cchar=" nextgroup=VimSynMtchCchar 433 syn match vimSynMtchOpt contained "\<cchar=" nextgroup=vimSynMtchCchar
433 syn match vimSynMtchCchar contained "\S" 434 syn match vimSynMtchCchar contained "\S"
434 endif 435 endif
435 syn cluster vimFuncBodyList add=vimSynMtchGroup 436 syn cluster vimFuncBodyList add=vimSynMtchGroup
436 437
437 " Syntax: off and on {{{2 438 " Syntax: off and on {{{2
508 syn match vimHiKeyError contained "\i\+="he=e-1 509 syn match vimHiKeyError contained "\i\+="he=e-1
509 endif 510 endif
510 syn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList 511 syn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList
511 syn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption 512 syn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption
512 syn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList 513 syn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList
513 syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimNumber,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError 514 syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
514 syn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList 515 syn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList
515 syn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname 516 syn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname
516 syn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib 517 syn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib
517 syn match vimHiTermcap contained "\S\+" contains=vimNotation 518 syn match vimHiTermcap contained "\S\+" contains=vimNotation
519 syn match vimHiNmbr contained '\d\+'
518 520
519 " Highlight: clear {{{2 521 " Highlight: clear {{{2
520 syn keyword vimHiClear contained clear nextgroup=vimHiGroup 522 syn keyword vimHiClear contained clear nextgroup=vimHiGroup
521 523
522 " Highlight: link {{{2 524 " Highlight: link {{{2
523 syn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\%[ault]\s\+\)\=link\>\|\<def\>" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation 525 syn region vimHiLink contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
524 syn cluster vimFuncBodyList add=vimHiLink 526 syn cluster vimFuncBodyList add=vimHiLink
525 527
526 " Control Characters {{{2 528 " Control Characters {{{2
527 " ================== 529 " ==================
528 syn match vimCtrlChar "[- -]" 530 syn match vimCtrlChar "[- -]"
560 endif 562 endif
561 563
562 " [-- lua --] {{{3 564 " [-- lua --] {{{3
563 let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim") 565 let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim")
564 if !filereadable(s:luapath) 566 if !filereadable(s:luapath)
565 let s:luapath= fnameescape(globpath(&rtp,"syntax/lua.vim")) 567 for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
568 if filereadable(fnameescape(s:luapath))
569 let s:luapath= fnameescape(s:luapath)
570 break
571 endif
572 endfor
566 endif 573 endif
567 if (g:vimsyn_embed =~ 'l' && has("lua")) && filereadable(s:luapath) 574 if (g:vimsyn_embed =~ 'l' && has("lua")) && filereadable(s:luapath)
568 unlet! b:current_syntax 575 unlet! b:current_syntax
569 exe "syn include @vimLuaScript ".s:luapath 576 exe "syn include @vimLuaScript ".s:luapath
570 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'l' 577 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'l'
582 unlet s:luapath 589 unlet s:luapath
583 590
584 " [-- perl --] {{{3 591 " [-- perl --] {{{3
585 let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim") 592 let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim")
586 if !filereadable(s:perlpath) 593 if !filereadable(s:perlpath)
587 let s:perlpath= fnameescape(globpath(&rtp,"syntax/perl.vim")) 594 for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
595 if filereadable(fnameescape(s:perlpath))
596 let s:perlpath= fnameescape(s:perlpath)
597 break
598 endif
599 endfor
588 endif 600 endif
589 if (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath) 601 if (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath)
590 unlet! b:current_syntax 602 unlet! b:current_syntax
591 exe "syn include @vimPerlScript ".s:perlpath 603 exe "syn include @vimPerlScript ".s:perlpath
592 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p' 604 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p'
604 unlet s:perlpath 616 unlet s:perlpath
605 617
606 " [-- ruby --] {{{3 618 " [-- ruby --] {{{3
607 let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim") 619 let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim")
608 if !filereadable(s:rubypath) 620 if !filereadable(s:rubypath)
609 let s:rubypath= fnameescape(globpath(&rtp,"syntax/ruby.vim")) 621 for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
622 if filereadable(fnameescape(s:rubypath))
623 let s:rubypath= fnameescape(s:rubypath)
624 break
625 endif
626 endfor
610 endif 627 endif
611 if (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath) 628 if (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath)
612 unlet! b:current_syntax 629 unlet! b:current_syntax
613 exe "syn include @vimRubyScript ".s:rubypath 630 exe "syn include @vimRubyScript ".s:rubypath
614 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r' 631 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r'
625 unlet s:rubypath 642 unlet s:rubypath
626 643
627 " [-- python --] {{{3 644 " [-- python --] {{{3
628 let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim") 645 let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim")
629 if !filereadable(s:pythonpath) 646 if !filereadable(s:pythonpath)
630 let s:pythonpath= fnameescape(globpath(&rtp,"syntax/python.vim")) 647 for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
631 endif 648 if filereadable(fnameescape(s:pythonpath))
632 if (g:vimsyn_embed =~ 'P' && has("python")) && filereadable(s:pythonpath) 649 let s:pythonpath= fnameescape(s:pythonpath)
650 break
651 endif
652 endfor
653 endif
654 if g:vimsyn_embed =~ 'P' && (has("python") || has("python3")) && filereadable(s:pythonpath)
633 unlet! b:current_syntax 655 unlet! b:current_syntax
634 exe "syn include @vimPythonScript ".s:pythonpath 656 exe "syn include @vimPythonScript ".s:pythonpath
635 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P' 657 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P'
636 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript 658 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
637 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 659 syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
654 let s:trytcl= 1 676 let s:trytcl= 1
655 endif 677 endif
656 if s:trytcl 678 if s:trytcl
657 let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim") 679 let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim")
658 if !filereadable(s:tclpath) 680 if !filereadable(s:tclpath)
659 let s:tclpath= fnameescape(globpath(&rtp,"syntax/tcl.vim")) 681 for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
682 if filereadable(fnameescape(s:tclpath))
683 let s:tclpath= fnameescape(s:tclpath)
684 break
685 endif
686 endfor
660 endif 687 endif
661 if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath) 688 if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath)
662 unlet! b:current_syntax 689 unlet! b:current_syntax
663 exe "syn include @vimTclScript ".s:tclpath 690 exe "syn include @vimTclScript ".s:tclpath
664 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 't' 691 if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 't'
681 unlet s:trytcl 708 unlet s:trytcl
682 709
683 " [-- mzscheme --] {{{3 710 " [-- mzscheme --] {{{3
684 let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim") 711 let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim")
685 if !filereadable(s:mzschemepath) 712 if !filereadable(s:mzschemepath)
686 let s:mzschemepath= fnameescape(globpath(&rtp,"syntax/scheme.vim")) 713 for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
714 if filereadable(fnameescape(s:mzschemepath))
715 let s:mzschemepath= fnameescape(s:mzschemepath)
716 break
717 endif
718 endfor
687 endif 719 endif
688 if (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath) 720 if (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath)
689 unlet! b:current_syntax 721 unlet! b:current_syntax
690 let iskKeep= &isk 722 let iskKeep= &isk
691 exe "syn include @vimMzSchemeScript ".s:mzschemepath 723 exe "syn include @vimMzSchemeScript ".s:mzschemepath
877 hi def link vimUserAttrbCmpltFunc Special 909 hi def link vimUserAttrbCmpltFunc Special
878 hi def link vimUserCmdError Error 910 hi def link vimUserCmdError Error
879 hi def link vimUserFunc Normal 911 hi def link vimUserFunc Normal
880 hi def link vimVar Identifier 912 hi def link vimVar Identifier
881 hi def link vimWarn WarningMsg 913 hi def link vimWarn WarningMsg
914 hi def link vimHiNmbr Number
882 915
883 " Current Syntax Variable: {{{2 916 " Current Syntax Variable: {{{2
884 let b:current_syntax = "vim" 917 let b:current_syntax = "vim"
885 918
886 " --------------------------------------------------------------------- 919 " ---------------------------------------------------------------------