blob: 5f3b7f87212f643fc2009e4a1547e6e9b118a89f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Model
3" Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaard857f0e2005-06-21 22:37:39 +00004" Last Change: 2005 Jun 20
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
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
Bram Moolenaard857f0e2005-06-21 22:37:39 +00009" Quit when a (custom) syntax file was already loaded
10if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000011 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.
Bram Moolenaard857f0e2005-06-21 22:37:39 +000036" 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
Bram Moolenaar071d4272004-06-13 20:20:40 +000041
42let b:current_syntax = "model"
43
44" vim: ts=8 sw=2