Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
webmacro.vim68 linesDownload Raw Back to syntax
1" WebMacro syntax file2" Language:     WebMacro3" Maintainer:   Claudio Fleiner <claudio@fleiner.com>4" URL:		http://www.fleiner.com/vim/syntax/webmacro.vim5" Last Change:  2003 May 116 7" webmacro is a nice little language that you should8" check out if you use java servlets.9" webmacro: http://www.webmacro.org10 11" For version 5.x: Clear all syntax items12" For version 6.x: Quit when a syntax file was already loaded13if !exists("main_syntax")14  " quit when a syntax file was already loaded15  if exists("b:current_syntax")16    finish17  endif18  let main_syntax = 'webmacro'19endif20 21 22runtime! syntax/html.vim23unlet b:current_syntax24 25syn cluster htmlPreProc add=webmacroIf,webmacroUse,webmacroBraces,webmacroParse,webmacroInclude,webmacroSet,webmacroForeach,webmacroComment26 27syn match webmacroVariable "\$[a-zA-Z0-9.()]*;\="28syn match webmacroNumber "[-+]\=\d\+[lL]\=" contained29syn keyword webmacroBoolean true false contained30syn match webmacroSpecial "\\." contained31syn region  webmacroString   contained start=+"+ end=+"+ contains=webmacroSpecial,webmacroVariable32syn region  webmacroString   contained start=+'+ end=+'+ contains=webmacroSpecial,webmacroVariable33syn region webmacroList contained matchgroup=Structure start="\[" matchgroup=Structure end="\]" contains=webmacroString,webmacroVariable,webmacroNumber,webmacroBoolean,webmacroList34 35syn region webmacroIf start="#if" start="#else" end="{"me=e-1 contains=webmacroVariable,webmacroNumber,webmacroString,webmacroBoolean,webmacroList nextgroup=webmacroBraces36syn region webmacroForeach start="#foreach" end="{"me=e-1 contains=webmacroVariable,webmacroNumber,webmacroString,webmacroBoolean,webmacroList nextgroup=webmacroBraces37syn match webmacroSet "#set .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList38syn match webmacroInclude "#include .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList39syn match webmacroParse "#parse .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList40syn region webmacroUse matchgroup=PreProc start="#use .*" matchgroup=PreProc end="^-.*" contains=webmacroHash,@HtmlTop41syn region webmacroBraces matchgroup=Structure start="{" matchgroup=Structure end="}" contained transparent42syn match webmacroBracesError "[{}]"43syn match webmacroComment "##.*$"44syn match webmacroHash "[#{}\$]" contained45 46" Define the default highlighting.47" Only when an item doesn't have highlighting yet48 49hi def link webmacroComment CommentTitle50hi def link webmacroVariable PreProc51hi def link webmacroIf webmacroStatement52hi def link webmacroForeach webmacroStatement53hi def link webmacroSet webmacroStatement54hi def link webmacroInclude webmacroStatement55hi def link webmacroParse webmacroStatement56hi def link webmacroStatement Function57hi def link webmacroNumber Number58hi def link webmacroBoolean Boolean59hi def link webmacroSpecial Special60hi def link webmacroString String61hi def link webmacroBracesError Error62 63let b:current_syntax = "webmacro"64 65if main_syntax == 'webmacro'66  unlet main_syntax67endif68 
codekingpro/portable-devtools · Team Ai