codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: PPWizard (preprocessor by Dennis Bareis)3" Maintainer: Stefan Schwarzer <s.schwarzer@ndh.net>4" URL: http://www.ndh.net/home/sschwarzer/download/ppwiz.vim5" Last Change: 2003 May 116" Filename: ppwiz.vim7 8" Remove old syntax stuff9" quit when a syntax file was already loaded10if exists("b:current_syntax")11 finish12endif13 14syn case ignore15 16if !exists("ppwiz_highlight_defs")17 let ppwiz_highlight_defs = 118endif19 20if !exists("ppwiz_with_html")21 let ppwiz_with_html = 122endif23 24" comments25syn match ppwizComment "^;.*$"26syn match ppwizComment ";;.*$"27" HTML28if ppwiz_with_html > 029 syn region ppwizHTML start="<" end=">" contains=ppwizArg,ppwizMacro30 syn match ppwizHTML "\&\w\+;"31endif32" define, evaluate etc.33if ppwiz_highlight_defs == 134 syn match ppwizDef "^\s*\#\S\+\s\+\S\+" contains=ALL35 syn match ppwizDef "^\s*\#\(if\|else\|endif\)" contains=ALL36 syn match ppwizDef "^\s*\#\({\|break\|continue\|}\)" contains=ALL37" elseif ppwiz_highlight_defs == 238" syn region ppwizDef start="^\s*\#" end="[^\\]$" end="^$" keepend contains=ALL39else40 syn region ppwizDef start="^\s*\#" end="[^\\]$" end="^$" keepend contains=ppwizCont41endif42syn match ppwizError "\s.\\$"43syn match ppwizCont "\s\([+\-%]\|\)\\$"44" macros to execute45syn region ppwizMacro start="<\$" end=">" contains=@ppwizArgVal,ppwizCont46" macro arguments47syn region ppwizArg start="{" end="}" contains=ppwizEqual,ppwizString48syn match ppwizEqual "=" contained49syn match ppwizOperator "<>\|=\|<\|>" contained50" standard variables (builtin)51syn region ppwizStdVar start="<?[^?]" end=">" contains=@ppwizArgVal52" Rexx variables53syn region ppwizRexxVar start="<??" end=">" contains=@ppwizArgVal54" Constants55syn region ppwizString start=+"+ end=+"+ contained contains=ppwizMacro,ppwizArg,ppwizHTML,ppwizCont,ppwizStdVar,ppwizRexxVar56syn region ppwizString start=+'+ end=+'+ contained contains=ppwizMacro,ppwizArg,ppwizHTML,ppwizCont,ppwizStdVar,ppwizRexxVar57syn match ppwizInteger "\d\+" contained58 59" Clusters60syn cluster ppwizArgVal add=ppwizString,ppwizInteger61 62" Define the default highlighting.63" Only when an item doesn't have highlighting yet64 65hi def link ppwizSpecial Special66hi def link ppwizEqual ppwizSpecial67hi def link ppwizOperator ppwizSpecial68hi def link ppwizComment Comment69hi def link ppwizDef PreProc70hi def link ppwizMacro Statement71hi def link ppwizArg Identifier72hi def link ppwizStdVar Identifier73hi def link ppwizRexxVar Identifier74hi def link ppwizString Constant75hi def link ppwizInteger Constant76hi def link ppwizCont ppwizSpecial77hi def link ppwizError Error78hi def link ppwizHTML Type79 80 81let b:current_syntax = "ppwiz"82 83" vim: ts=484 85 