annotate runtime/syntax/model.vim @ 100:1f3902f3eb5c v7.0038

updated for version 7.0038
author vimboss
date Fri, 14 Jan 2005 21:53:12 +0000
parents 3fc0f57ecb91
children 7033303ea0c0
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>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 Apr 25
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " A bunch of keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 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
21 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
22 syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword modelKeyword repeat res result return set space string subscript such then TRUE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword modelKeyword true type ubnd union until varies while width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Special keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword modelBlock beginproc endproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region modelComment start="\$" end="\$" end="$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region modelString start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Character constant (is this right?)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match modelString "'."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if version >= 508 || !exists("did_model_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let did_model_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink modelKeyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink modelBlock PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink modelComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink modelString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 let b:current_syntax = "model"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " vim: ts=8 sw=2