codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: FrameScript v4.03" Previous Maintainer: Nikolai Weibull <now@bitwi.se>4" Latest Revision: 2007-02-225 6if exists("b:current_syntax")7 finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn match framescriptOperator14 \ '[+*/%=-]\|[><]=\=\|#[&|]'15 16syn keyword framescriptTodo17 \ contained18 \ TODO FIXME XXX NOTE19 20syn cluster framescriptCommentGroup21 \ contains=22 \ framescriptTodo,23 \ @Spell24 25syn match framescriptComment26 \ display27 \ contains=@framescriptCommentGroup28 \ '//.*$'29 30syn region framescriptComment31 \ contains=@framescriptCommentGroup32 \ matchgroup=framescriptCommentStart33 \ start='/\*'34 \ end='\*/'35 36syn case ignore37 38syn match framescriptInclude39 \ display40 \ contains=framescriptIncluded41 \ "^\s*<#Include\>\s*'"42 43syn region framescriptIncluded44 \ contained45 \ display46 \ start=+'+47 \ skip=+\\\\\|\\'+48 \ end=+'+49 50syn match framescriptNumbers51 \ display52 \ transparent53 \ contains=54 \ framescriptInteger,55 \ framescriptReal,56 \ framescriptMetric,57 \ framescriptCharacter58 \ '\<\d\|\.\d'59 60syn keyword framescriptBoolean61 \ True False62 63syn match framescriptInteger64 \ contained65 \ display66 \ '\d\+\>'67 68syn match framescriptInteger69 \ contained70 \ display71 \ '\x\+H\>'72 73syn match framescriptInteger74 \ contained75 \ display76 \ '[01]\+B\>'77 78syn match framescriptReal79 \ contained80 \ display81 \ '\d\+\.\d*\|\.\d\+\>'82 83syn match framescriptMetric84 \ contained85 \ display86 \ '\%(\d\+\%(\.\d*\)\=\|\.\d\+\)\%(pts\|in\|"\|cm\|mm\|pica\)\>'87 88syn match framescriptCharacter89 \ contained90 \ display91 \ '\d\+S\>'92 93syn region framescriptString94 \ contains=framescriptStringSpecialChar,@Spell95 \ start=+'+96 \ skip=+\\\\\|\\'+97 \ end=+'+98 99syn match framescriptStringSpecialChar100 \ contained101 \ display102 \ "\\[\\']"103 104syn keyword framescriptConstant105 \ BackSlash106 \ CharCR107 \ CharLF108 \ CharTAB109 \ ClientDir110 \ ClientName111 \ FslVersionMajor112 \ FslVersionMinor113 \ InstallName114 \ InstalledScriptList115 \ MainScript116 \ NULL117 \ ObjEndOffset118 \ ProductRevision119 \ Quote120 \ ThisScript121 122syn keyword framescriptOperator123 \ not124 \ and125 \ or126 127syn keyword framescriptSessionVariables128 \ ErrorCode129 \ ErrorMsg130 \ DeclareVarMode131 \ PlatformEncodingMode132 133syn keyword framescriptStructure134 \ Event135 \ EndEvent136 137syn keyword framescriptStatement138 \ Sub139 \ EndSub140 \ Run141 \ Function142 \ EndFunction143 \ Set144 \ Add145 \ Apply146 \ CallClient147 \ Close148 \ Copy149 \ Cut150 \ DialogBox151 \ Delete152 \ Demote153 \ Display154 \ DocCompare155 \ Export156 \ Find157 \ LeaveLoop158 \ LeaveScript159 \ LeaveSub160 \ LoopNext161 \ Merge162 \ MsgBox163 \ Paste164 \ PopClipboard165 \ PushClipboard166 \ Read167 \ Replace168 \ Return169 \ Sort170 \ Split171 172syn keyword framescriptStatement173 \ nextgroup=framescriptApplySubStatement skipwhite skipempty174 \ Apply175 176syn keyword framescriptApplySubStatement177 \ contained178 \ Pagelayout179 \ TextProperties180 181syn keyword framescriptStatement182 \ nextgroup=framescriptClearSubStatement skipwhite skipempty183 \ Clear184 185syn keyword framescriptClearSubStatement186 \ contained187 \ ChangeBars188 \ Text189 190syn keyword framescriptStatement191 \ nextgroup=framescriptCloseSubStatement skipwhite skipempty192 \ Close193 194syn keyword framescriptCloseSubStatement195 \ contained196 \ Book197 \ Document198 \ TextFile199 200syn keyword framescriptStatement201 \ nextgroup=framescriptExecSubStatement skipwhite skipempty202 \ Exec203 204syn keyword framescriptExecSubStatement205 \ contained206 \ Compile207 \ Script208 \ Wait209 210syn keyword framescriptStatement211 \ nextgroup=framescriptExecuteSubStatement skipwhite skipempty212 \ Execute213 214syn keyword framescriptExecuteSubStatement215 \ contained216 \ FrameCommand217 \ Hypertext218 \ StartUndoCheckPoint219 \ EndUndoCheckPoint220 \ ClearUndoHistory221 222syn keyword framescriptStatement223 \ nextgroup=framescriptGenerateSubStatement skipwhite skipempty224 \ Generate225 226syn keyword framescriptGenerateSubStatement227 \ contained228 \ Bookfile229 230syn keyword framescriptStatement231 \ nextgroup=framescriptGetSubStatement skipwhite skipempty232 \ Get233 234syn keyword framescriptGetSubStatement235 \ contained236 \ Member237 \ Object238 \ String239 \ TextList240 \ TextProperties241 242syn keyword framescriptStatement243 \ nextgroup=framescriptImportSubStatement skipwhite skipempty244 \ Import245 246syn keyword framescriptImportSubStatement247 \ contained248 \ File249 \ Formats250 \ ElementDefs251 252syn keyword framescriptStatement253 \ nextgroup=framescriptInstallSubStatement skipwhite skipempty254 \ Install255 \ Uninstall256 257syn keyword framescriptInstallSubStatement258 \ contained259 \ ChangeBars260 \ Text261 262syn keyword framescriptStatement263 \ nextgroup=framescriptNewSubStatement skipwhite skipempty264 \ New265 266syn keyword framescriptNewSubStatement267 \ contained268 \ AFrame269 \ Footnote270 \ Marker271 \ TiApiClient272 \ Variable273 \ XRef274 \ FormatChangeList275 \ FormatRule276 \ FmtRuleClause277 \ Arc278 \ Ellipse279 \ Flow280 \ Group281 \ Inset282 \ Line283 \ Math284 \ Polygon285 \ Polyline286 \ Rectangle287 \ RoundRect288 \ TextFrame289 \ Textline290 \ UnanchoredFrame291 \ Command292 \ Menu293 \ MenuItemSeparator294 \ Book295 \ CharacterFormat296 \ Color297 \ ConditionFormat298 \ ElementDef299 \ FormatChangeList300 \ MarkerType301 \ MasterPage302 \ ParagraphFormat303 \ PgfFmt304 \ ReferencePAge305 \ RulingFormat306 \ TableFormat307 \ VariableFormat308 \ XRefFormat309 \ BodyPage310 \ BookComponent311 \ Paragraph312 \ Element313 \ Attribute314 \ AttributeDef315 \ AttributeList316 \ AttributeDefList317 \ ElementLoc318 \ ElementRange319 \ Table320 \ TableRows321 \ TableCols322 \ Text323 \ Integer324 \ Real325 \ Metric326 \ String327 \ Object328 \ TextLoc329 \ TextRange330 \ IntList331 \ UIntList332 \ MetricList333 \ StringList334 \ PointList335 \ TabList336 \ PropertyList337 \ LibVar338 \ ScriptVar339 \ SubVar340 \ TextFile341 342syn keyword framescriptStatement343 \ nextgroup=framescriptOpenSubStatement skipwhite skipempty344 \ Open345 346syn keyword framescriptOpenSubStatement347 \ contained348 \ Document349 \ Book350 \ TextFile351 352syn keyword framescriptStatement353 \ nextgroup=framescriptPrintSubStatement skipwhite skipempty354 \ Print355 356syn keyword framescriptPrintSubStatement357 \ contained358 \ Document359 \ Book360 361syn keyword framescriptStatement362 \ nextgroup=framescriptQuitSubStatement skipwhite skipempty363 \ Quit364 365syn keyword framescriptQuitSubStatement366 \ contained367 \ Session368 369syn keyword framescriptStatement370 \ nextgroup=framescriptRemoveSubStatement skipwhite skipempty371 \ Remove372 373syn keyword framescriptRemoveSubStatement374 \ contained375 \ Attribute376 \ CommandObject377 378syn keyword framescriptStatement379 \ nextgroup=framescriptSaveSubStatement skipwhite skipempty380 \ Save381 382syn keyword framescriptSaveSubStatement383 \ contained384 \ Document385 \ Book386 387syn keyword framescriptStatement388 \ nextgroup=framescriptSelectSubStatement skipwhite skipempty389 \ Select390 391syn keyword framescriptSelectSubStatement392 \ contained393 \ TableCells394 395syn keyword framescriptStatement396 \ nextgroup=framescriptStraddleSubStatement skipwhite skipempty397 \ Straddle398 399syn keyword framescriptStraddleSubStatement400 \ contained401 \ TableCells402 403syn keyword framescriptStatement404 \ nextgroup=framescriptUpdateSubStatement skipwhite skipempty405 \ Update406 407syn keyword framescriptUpdateSubStatement408 \ contained409 \ ReDisplay410 \ Formatting411 \ Hyphenating412 \ ResetEquationsSettings413 \ ResetRefFrames414 \ RestartPgfNums415 \ TextInset416 \ Variables417 \ XRefs418 \ Book419 420syn keyword framescriptStatement421 \ nextgroup=framescriptWriteSubStatement skipwhite skipempty422 \ Write423 424syn keyword framescriptUpdateSubStatement425 \ contained426 \ Console427 \ Display428 429syn keyword framescriptRepeat430 \ Loop431 \ EndLoop432 433syn keyword framescriptConditional434 \ If435 \ ElseIf436 \ Else437 \ EndIf438 439syn keyword framescriptType440 \ Local441 \ GlobalVar442 443let b:framescript_minlines = exists("framescript_minlines")444 \ ? framescript_minlines : 15445exec "syn sync ccomment framescriptComment minlines=" . b:framescript_minlines446 447hi def link framescriptTodo Todo448hi def link framescriptComment Comment449hi def link framescriptCommentStart framescriptComment450hi def link framescriptInclude Include451hi def link framescriptIncluded String452hi def link framescriptBoolean Boolean453hi def link framescriptNumber Number454hi def link framescriptInteger framescriptNumber455hi def link framescriptReal framescriptNumber456hi def link framescriptMetric framescriptNumber457hi def link framescriptCharacter framescriptNumber458hi def link framescriptString String459hi def link framescriptStringSpecialChar SpecialChar460hi def link framescriptConstant Constant461hi def link framescriptOperator None462hi def link framescriptSessionVariables PreProc463hi def link framescriptStructure Structure464hi def link framescriptStatement Statement465hi def link framescriptSubStatement Type466hi def link framescriptApplySubStatement framescriptSubStatement467hi def link framescriptClearSubStatement framescriptSubStatement468hi def link framescriptCloseSubStatement framescriptSubStatement469hi def link framescriptExecSubStatement framescriptSubStatement470hi def link framescriptExecuteSubStatement framescriptSubStatement471hi def link framescriptGenerateSubStatement framescriptSubStatement472hi def link framescriptGetSubStatement framescriptSubStatement473hi def link framescriptImportSubStatement framescriptSubStatement474hi def link framescriptInstallSubStatement framescriptSubStatement475hi def link framescriptNewSubStatement framescriptSubStatement476hi def link framescriptOpenSubStatement framescriptSubStatement477hi def link framescriptPrintSubStatement framescriptSubStatement478hi def link framescriptQuitSubStatement framescriptSubStatement479hi def link framescriptRemoveSubStatement framescriptSubStatement480hi def link framescriptSaveSubStatement framescriptSubStatement481hi def link framescriptSelectSubStatement framescriptSubStatement482hi def link framescriptStraddleSubStatement framescriptSubStatement483hi def link framescriptUpdateSubStatement framescriptSubStatement484hi def link framescriptRepeat Repeat485hi def link framescriptConditional Conditional486hi def link framescriptType Type487 488let b:current_syntax = "framescript"489 490let &cpo = s:cpo_save491unlet s:cpo_save492 