modelfile.vim (1181B)
1 " Vim syntax file 2 " Language: Modelfile 3 " Maintainer: User 4 " Description: Syntax highlighting for Modelfile 5 6 if exists("b:current_syntax") 7 finish 8 endif 9 10 syntax case ignore 11 12 " Keywords/Directives 13 syntax keyword modelfileDirective FROM INCLUDE SYSTEM LICENSE TEST FORMAT PARAMETER MESSAGE CAPABILITIES 14 syntax keyword modelfileDirective SAMPLE TEMPLATE 15 16 " Assignments 17 syntax match modelfileAssignment "\w\+=" containedin=modelfileDirective 18 19 " Comments 20 syntax match modelfileComment "#.*$" contains=@Spell 21 22 " Variables 23 syntax match modelfileVariable "\${\w\+}" contains=modelfileBraces 24 syntax match modelfileBraces "[${}]" 25 26 " Strings 27 syntax region modelfileString start="\"" end="\"" 28 syntax region modelfileMultilineString start='"""' end='"""' contains=modelfileString 29 30 " Numbers 31 syntax match modelfileNumber "\<\d\+\>" 32 33 " Highlighting 34 hi def link modelfileDirective Keyword 35 hi def link modelfileAssignment Operator 36 hi def link modelfileComment Comment 37 hi def link modelfileVariable Identifier 38 hi def link modelfileBraces Delimiter 39 hi def link modelfileString String 40 hi def link modelfileMultilineString String 41 hi def link modelfileNumber Number 42 43 let b:current_syntax = "modelfile"