2 " Language: FrameScript v4.0
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2007-02-22
6 if exists("b:current_syntax")
13 syn match framescriptOperator
14 \ '[+*/%=-]\|[><]=\=\|#[&|]'
16 syn keyword framescriptTodo
20 syn cluster framescriptCommentGroup
25 syn match framescriptComment
27 \ contains=@framescriptCommentGroup
30 syn region framescriptComment
31 \ contains=@framescriptCommentGroup
32 \ matchgroup=framescriptCommentStart
38 syn match framescriptInclude
40 \ contains=framescriptIncluded
41 \ "^\s*<#Include\>\s*'"
43 syn region framescriptIncluded
50 syn match framescriptNumbers
57 \ framescriptCharacter
60 syn keyword framescriptBoolean
63 syn match framescriptInteger
68 syn match framescriptInteger
73 syn match framescriptInteger
78 syn match framescriptReal
81 \ '\d\+\.\d*\|\.\d\+\>'
83 syn match framescriptMetric
86 \ '\%(\d\+\%(\.\d*\)\=\|\.\d\+\)\%(pts\|in\|"\|cm\|mm\|pica\)\>'
88 syn match framescriptCharacter
93 syn region framescriptString
94 \ contains=framescriptStringSpecialChar,@Spell
99 syn match framescriptStringSpecialChar
104 syn keyword framescriptConstant
114 \ InstalledScriptList
122 syn keyword framescriptOperator
127 syn keyword framescriptSessionVariables
131 \ PlatformEncodingMode
133 syn keyword framescriptStructure
137 syn keyword framescriptStatement
172 syn keyword framescriptStatement
173 \ nextgroup=framescriptApplySubStatement skipwhite skipempty
176 syn keyword framescriptApplySubStatement
181 syn keyword framescriptStatement
182 \ nextgroup=framescriptClearSubStatement skipwhite skipempty
185 syn keyword framescriptClearSubStatement
190 syn keyword framescriptStatement
191 \ nextgroup=framescriptCloseSubStatement skipwhite skipempty
194 syn keyword framescriptCloseSubStatement
200 syn keyword framescriptStatement
201 \ nextgroup=framescriptExecSubStatement skipwhite skipempty
204 syn keyword framescriptExecSubStatement
210 syn keyword framescriptStatement
211 \ nextgroup=framescriptExecuteSubStatement skipwhite skipempty
214 syn keyword framescriptExecuteSubStatement
218 \ StartUndoCheckPoint
222 syn keyword framescriptStatement
223 \ nextgroup=framescriptGenerateSubStatement skipwhite skipempty
226 syn keyword framescriptGenerateSubStatement
230 syn keyword framescriptStatement
231 \ nextgroup=framescriptGetSubStatement skipwhite skipempty
234 syn keyword framescriptGetSubStatement
242 syn keyword framescriptStatement
243 \ nextgroup=framescriptImportSubStatement skipwhite skipempty
246 syn keyword framescriptImportSubStatement
252 syn keyword framescriptStatement
253 \ nextgroup=framescriptInstallSubStatement skipwhite skipempty
257 syn keyword framescriptInstallSubStatement
262 syn keyword framescriptStatement
263 \ nextgroup=framescriptNewSubStatement skipwhite skipempty
266 syn keyword framescriptNewSubStatement
342 syn keyword framescriptStatement
343 \ nextgroup=framescriptOpenSubStatement skipwhite skipempty
346 syn keyword framescriptOpenSubStatement
352 syn keyword framescriptStatement
353 \ nextgroup=framescriptPrintSubStatement skipwhite skipempty
356 syn keyword framescriptPrintSubStatement
361 syn keyword framescriptStatement
362 \ nextgroup=framescriptQuitSubStatement skipwhite skipempty
365 syn keyword framescriptQuitSubStatement
369 syn keyword framescriptStatement
370 \ nextgroup=framescriptRemoveSubStatement skipwhite skipempty
373 syn keyword framescriptRemoveSubStatement
378 syn keyword framescriptStatement
379 \ nextgroup=framescriptSaveSubStatement skipwhite skipempty
382 syn keyword framescriptSaveSubStatement
387 syn keyword framescriptStatement
388 \ nextgroup=framescriptSelectSubStatement skipwhite skipempty
391 syn keyword framescriptSelectSubStatement
395 syn keyword framescriptStatement
396 \ nextgroup=framescriptStraddleSubStatement skipwhite skipempty
399 syn keyword framescriptStraddleSubStatement
403 syn keyword framescriptStatement
404 \ nextgroup=framescriptUpdateSubStatement skipwhite skipempty
407 syn keyword framescriptUpdateSubStatement
412 \ ResetEquationsSettings
420 syn keyword framescriptStatement
421 \ nextgroup=framescriptWriteSubStatement skipwhite skipempty
424 syn keyword framescriptUpdateSubStatement
429 syn keyword framescriptRepeat
433 syn keyword framescriptConditional
439 syn keyword framescriptType
443 let b:framescript_minlines = exists("framescript_minlines")
444 \ ? framescript_minlines : 15
445 exec "syn sync ccomment framescriptComment minlines=" . b:framescript_minlines
447 hi def link framescriptTodo Todo
448 hi def link framescriptComment Comment
449 hi def link framescriptCommentStart framescriptComment
450 hi def link framescriptInclude Include
451 hi def link framescriptIncluded String
452 hi def link framescriptBoolean Boolean
453 hi def link framescriptNumber Number
454 hi def link framescriptInteger framescriptNumber
455 hi def link framescriptReal framescriptNumber
456 hi def link framescriptMetric framescriptNumber
457 hi def link framescriptCharacter framescriptNumber
458 hi def link framescriptString String
459 hi def link framescriptStringSpecialChar SpecialChar
460 hi def link framescriptConstant Constant
461 hi def link framescriptOperator None
462 hi def link framescriptSessionVariables PreProc
463 hi def link framescriptStructure Structure
464 hi def link framescriptStatement Statement
465 hi def link framescriptSubStatement Type
466 hi def link framescriptApplySubStatement framescriptSubStatement
467 hi def link framescriptClearSubStatement framescriptSubStatement
468 hi def link framescriptCloseSubStatement framescriptSubStatement
469 hi def link framescriptExecSubStatement framescriptSubStatement
470 hi def link framescriptExecuteSubStatement framescriptSubStatement
471 hi def link framescriptGenerateSubStatement framescriptSubStatement
472 hi def link framescriptGetSubStatement framescriptSubStatement
473 hi def link framescriptImportSubStatement framescriptSubStatement
474 hi def link framescriptInstallSubStatement framescriptSubStatement
475 hi def link framescriptNewSubStatement framescriptSubStatement
476 hi def link framescriptOpenSubStatement framescriptSubStatement
477 hi def link framescriptPrintSubStatement framescriptSubStatement
478 hi def link framescriptQuitSubStatement framescriptSubStatement
479 hi def link framescriptRemoveSubStatement framescriptSubStatement
480 hi def link framescriptSaveSubStatement framescriptSubStatement
481 hi def link framescriptSelectSubStatement framescriptSubStatement
482 hi def link framescriptStraddleSubStatement framescriptSubStatement
483 hi def link framescriptUpdateSubStatement framescriptSubStatement
484 hi def link framescriptRepeat Repeat
485 hi def link framescriptConditional Conditional
486 hi def link framescriptType Type
488 let b:current_syntax = "framescript"
490 let &cpo = s:cpo_save