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