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