1" Vim syntax file 2" Language: Model 3" Maintainer: Bram Moolenaar <[email protected]> 4" Last Change: 2005 Jun 20 5 6" very basic things only (based on the vgrindefs file). 7" If you use this language, please improve it, and send me the patches! 8 9" Quit when a (custom) syntax file was already loaded 10if exists("b:current_syntax") 11 finish 12endif 13 14" A bunch of keywords 15syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose 16syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false 17syn keyword modelKeyword fi file for formal fortran global if iff ift in integer include 18syn keyword modelKeyword inline is lbnd max min mod new NIL nil noresult not notin od of 19syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep 20syn keyword modelKeyword repeat res result return set space string subscript such then TRUE 21syn keyword modelKeyword true type ubnd union until varies while width 22 23" Special keywords 24syn keyword modelBlock beginproc endproc 25 26" Comments 27syn region modelComment start="\$" end="\$" end="$" 28 29" Strings 30syn region modelString start=+"+ end=+"+ 31 32" Character constant (is this right?) 33syn match modelString "'." 34 35" Define the default highlighting. 36" Only used when an item doesn't have highlighting yet 37hi def link modelKeyword Statement 38hi def link modelBlock PreProc 39hi def link modelComment Comment 40hi def link modelString String 41 42let b:current_syntax = "model" 43 44" vim: ts=8 sw=2 45