annotate runtime/syntax/model.vim @ 10721:9177c4f6a229

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