annotate runtime/syntax/ocaml.vim @ 13905:7c7d949c4217

Added tag v8.0.1823 for changeset b94a9171ec7ce07692d159e1984f3551ea61602e
author Christian Brabandt <cb@256bit.org>
date Sat, 12 May 2018 21:15:07 +0200
parents 46763b01cd9a
children e18b1c654d09
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: OCaml
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Filenames: *.ml *.mli *.mll *.mly
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
4 " Maintainers: Markus Mottl <markus.mottl@gmail.com>
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 7
diff changeset
5 " Karl-Heinz Sylla <Karl-Heinz.Sylla@gmd.de>
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 7
diff changeset
6 " Issac Trotts <ijtrotts@ucdavis.edu>
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
7 " URL: http://www.ocaml.info/vim/syntax/ocaml.vim
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
8 " Last Change: 2012 May 12 - Added Dominique Pellé's spell checking patch (MM)
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
9 " 2012 Feb 01 - Improved module path highlighting (MM)
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
10 " 2010 Oct 11 - Added highlighting of lnot (MM, thanks to Erick Matsen)
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
11
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
12 " A minor patch was applied to the official version so that object/end
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
13 " can be distinguished from begin/end, which is used for indentation,
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
14 " and folding. (David Baelde)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5244
diff changeset
16 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5244
diff changeset
17 if exists("b:current_syntax") && b:current_syntax == "ocaml"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " OCaml is case sensitive.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
24 " Access to the method of an object
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
25 syn match ocamlMethod "#"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
26
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Script headers highlighted like comments
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
28 syn match ocamlComment "^#!.*" contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Scripting directives
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
31 syn match ocamlScript "^#\<\(quit\|labels\|warnings\|directory\|cd\|load\|use\|install_printer\|remove_printer\|require\|thread\|trace\|untrace\|untrace_all\|print_depth\|print_length\|camlp4o\)\>"
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 826
diff changeset
32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " lowercase identifier - the standard way to match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match ocamlKeyChar "|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match ocamlBraceErr "}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match ocamlBrackErr "\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match ocamlParenErr ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match ocamlArrErr "|]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match ocamlCommentErr "\*)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match ocamlCountErr "\<downto\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match ocamlCountErr "\<to\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 if !exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match ocamlDoErr "\<do\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match ocamlDoneErr "\<done\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match ocamlThenErr "\<then\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " Error-highlighting of "end" without synchronization:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " as keyword or as error (default)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 if exists("ocaml_noend_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match ocamlKeyword "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match ocamlEndErr "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Some convenient clusters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn cluster ocamlAllErrs contains=ocamlBraceErr,ocamlBrackErr,ocamlParenErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn cluster ocamlAENoParen contains=ocamlBraceErr,ocamlBrackErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
69 syn cluster ocamlContained contains=ocamlTodo,ocamlPreDef,ocamlModParam,ocamlModParam1,ocamlPreMPRestr,ocamlMPRestr,ocamlMPRestr1,ocamlMPRestr2,ocamlMPRestr3,ocamlModRHS,ocamlFuncWith,ocamlFuncStruct,ocamlModTypeRestr,ocamlModTRWith,ocamlWith,ocamlWithRest,ocamlModType,ocamlFullMod,ocamlVal
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Enclosing delimiters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="(" matchgroup=ocamlKeyword end=")" contains=ALLBUT,@ocamlContained,ocamlParenErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="{" matchgroup=ocamlKeyword end="}" contains=ALLBUT,@ocamlContained,ocamlBraceErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[" matchgroup=ocamlKeyword end="\]" contains=ALLBUT,@ocamlContained,ocamlBrackErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[|" matchgroup=ocamlKeyword end="|\]" contains=ALLBUT,@ocamlContained,ocamlArrErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " Comments
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
80 syn region ocamlComment start="(\*" end="\*)" contains=@Spell,ocamlComment,ocamlTodo
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
81 syn keyword ocamlTodo contained TODO FIXME XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " Objects
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
85 syn region ocamlEnd matchgroup=ocamlObject start="\<object\>" matchgroup=ocamlObject end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " Blocks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 if !exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn region ocamlEnd matchgroup=ocamlKeyword start="\<begin\>" matchgroup=ocamlKeyword end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " "for"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn region ocamlNone matchgroup=ocamlKeyword start="\<for\>" matchgroup=ocamlKeyword end="\<\(to\|downto\)\>" contains=ALLBUT,@ocamlContained,ocamlCountErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 " "do"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 if !exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn region ocamlDo matchgroup=ocamlKeyword start="\<do\>" matchgroup=ocamlKeyword end="\<done\>" contains=ALLBUT,@ocamlContained,ocamlDoneErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 " "if"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn region ocamlNone matchgroup=ocamlKeyword start="\<if\>" matchgroup=ocamlKeyword end="\<then\>" contains=ALLBUT,@ocamlContained,ocamlThenErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 "" Modules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " "sig"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn region ocamlSig matchgroup=ocamlModule start="\<sig\>" matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn region ocamlModSpec matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contained contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlModTRWith,ocamlMPRestr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 " "open"
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
114 syn region ocamlNone matchgroup=ocamlKeyword start="\<open\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*\>" contains=@ocamlAllErrs,ocamlComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 " "include"
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
117 syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 " "module" - somewhat complicated stuff ;-)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
121 syn region ocamlPreDef start="."me=e-1 matchgroup=ocamlKeyword end="\l\|=\|)"me=e-1 contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlModTypeRestr,ocamlModTRWith nextgroup=ocamlModPreRHS
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
122 syn region ocamlModParam start="([^*]" end=")" contained contains=@ocamlAENoParen,ocamlModParam1,ocamlVal
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlPreMPRestr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn region ocamlPreMPRestr start="."me=e-1 end=")"me=e-1 contained contains=@ocamlAllErrs,ocamlComment,ocamlMPRestr,ocamlModTypeRestr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn region ocamlMPRestr start=":" end="."me=e-1 contained contains=@ocamlComment skipwhite skipempty nextgroup=ocamlMPRestr1,ocamlMPRestr2,ocamlMPRestr3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn region ocamlMPRestr1 matchgroup=ocamlModule start="\ssig\s\=" matchgroup=ocamlModule end="\<end\>" contained contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn region ocamlMPRestr2 start="\sfunctor\(\s\|(\)\="me=e-1 matchgroup=ocamlKeyword end="->" contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam skipwhite skipempty nextgroup=ocamlFuncWith,ocamlMPRestr2
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
130 syn match ocamlMPRestr3 "\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn match ocamlModPreRHS "=" contained skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
132 syn keyword ocamlKeyword val
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
133 syn region ocamlVal matchgroup=ocamlKeyword start="\<val\>" matchgroup=ocamlLCIdentifier end="\<\l\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment,ocamlFullMod skipwhite skipempty nextgroup=ocamlMPRestr
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
134 syn region ocamlModRHS start="." end=". *\w\|([^*]"me=e-2 contained contains=ocamlComment skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
135 syn match ocamlFullMod "\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*" contained skipwhite skipempty nextgroup=ocamlFuncWith
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn region ocamlFuncWith start="([^*]"me=e-1 end=")" contained contains=ocamlComment,ocamlWith,ocamlFuncStruct skipwhite skipempty nextgroup=ocamlFuncWith
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn region ocamlFuncStruct matchgroup=ocamlModule start="[^a-zA-Z]struct\>"hs=s+1 matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
140 syn match ocamlModTypeRestr "\<\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*\>" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn region ocamlModTRWith start=":\s*("hs=s+1 end=")" contained contains=@ocamlAENoParen,ocamlWith
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
142 syn match ocamlWith "\<\(\u\(\w\|'\)* *\. *\)*\w\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlWithRest
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region ocamlWithRest start="[^)]" end=")"me=e-1 contained contains=ALLBUT,@ocamlContained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
145 " "struct"
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
146 syn region ocamlStruct matchgroup=ocamlModule start="\<\(module\s\+\)\=struct\>" matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
147
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 " "module type"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
149 syn region ocamlKeyword start="\<module\>\s*\<type\>\(\s*\<of\>\)\=" matchgroup=ocamlModule end="\<\w\(\w\|'\)*\>" contains=ocamlComment skipwhite skipempty nextgroup=ocamlMTDef
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
150 syn match ocamlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s+1 skipwhite skipempty nextgroup=ocamlFullMod
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword ocamlKeyword and as assert class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword ocamlKeyword constraint else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword ocamlKeyword exception external fun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword ocamlKeyword in inherit initializer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword ocamlKeyword land lazy let match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword ocamlKeyword method mutable new of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword ocamlKeyword parser private raise rec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword ocamlKeyword try type
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
161 syn keyword ocamlKeyword virtual when while with
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 if exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword ocamlKeyword do value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword ocamlBoolean True False
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword ocamlKeyword function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn keyword ocamlBoolean true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match ocamlKeyChar "!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
172 syn keyword ocamlType array bool char exn float format format4
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
173 syn keyword ocamlType int int32 int64 lazy_t list nativeint option
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
174 syn keyword ocamlType string unit
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
176 syn keyword ocamlOperator asr lnot lor lsl lsr lxor mod not
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn match ocamlConstructor "(\s*)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn match ocamlConstructor "\[\s*\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match ocamlConstructor "\[|\s*>|]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match ocamlConstructor "\[<\s*>\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match ocamlConstructor "\u\(\w\|'\)*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 " Polymorphic variants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn match ocamlConstructor "`\w\(\w\|'\)*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 " Module prefix
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
188 syn match ocamlModPath "\u\(\w\|'\)* *\."he=e-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn match ocamlCharacter "'\\\d\d\d'\|'\\[\'ntbr]'\|'.'"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
191 syn match ocamlCharacter "'\\x\x\x'"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn match ocamlCharErr "'\\\d\d'\|'\\\d'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn match ocamlCharErr "'\\[^\'ntbr]'"
5244
eb7ce2918a03 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2833
diff changeset
194 syn region ocamlString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn match ocamlFunDef "->"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match ocamlRefAssign ":="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn match ocamlTopStop ";;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn match ocamlOperator "\^"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn match ocamlOperator "::"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn match ocamlOperator "&&"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match ocamlOperator "<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match ocamlOperator ">"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match ocamlAnyVar "\<_\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn match ocamlKeyChar "|[^\]]"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn match ocamlKeyChar ";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match ocamlKeyChar "\~"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn match ocamlKeyChar "?"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 syn match ocamlKeyChar "\*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn match ocamlKeyChar "="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 if exists("ocaml_revised")
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
214 syn match ocamlErr "<-"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 else
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
216 syn match ocamlOperator "<-"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 826
diff changeset
219 syn match ocamlNumber "\<-\=\d\(_\|\d\)*[l|L|n]\?\>"
e63691e7c504 updated for version 7.1a
vimboss
parents: 826
diff changeset
220 syn match ocamlNumber "\<-\=0[x|X]\(\x\|_\)\+[l|L|n]\?\>"
e63691e7c504 updated for version 7.1a
vimboss
parents: 826
diff changeset
221 syn match ocamlNumber "\<-\=0[o|O]\(\o\|_\)\+[l|L|n]\?\>"
e63691e7c504 updated for version 7.1a
vimboss
parents: 826
diff changeset
222 syn match ocamlNumber "\<-\=0[b|B]\([01]\|_\)\+[l|L|n]\?\>"
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
223 syn match ocamlFloat "\<-\=\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 " Labels
550
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
226 syn match ocamlLabel "\~\(\l\|_\)\(\w\|'\)*"lc=1
74c2ea3c3081 updated for version 7.0156
vimboss
parents: 20
diff changeset
227 syn match ocamlLabel "?\(\l\|_\)\(\w\|'\)*"lc=1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn region ocamlLabel transparent matchgroup=ocamlLabel start="?(\(\l\|_\)\(\w\|'\)*"lc=2 end=")"me=e-1 contains=ALLBUT,@ocamlContained,ocamlParenErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 " Synchronization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn sync minlines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn sync maxlines=500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 if !exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn sync match ocamlDoSync grouphere ocamlDo "\<do\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn sync match ocamlDoSync groupthere ocamlDo "\<done\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 if exists("ocaml_revised")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(object\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(begin\|object\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 syn sync match ocamlEndSync groupthere ocamlEnd "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn sync match ocamlStructSync grouphere ocamlStruct "\<struct\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn sync match ocamlStructSync groupthere ocamlStruct "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn sync match ocamlSigSync grouphere ocamlSig "\<sig\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn sync match ocamlSigSync groupthere ocamlSig "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5244
diff changeset
253 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5244
diff changeset
254
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
255 hi def link ocamlBraceErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
256 hi def link ocamlBrackErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
257 hi def link ocamlParenErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
258 hi def link ocamlArrErr Error
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5244
diff changeset
259
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
260 hi def link ocamlCommentErr Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
262 hi def link ocamlCountErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
263 hi def link ocamlDoErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
264 hi def link ocamlDoneErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
265 hi def link ocamlEndErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
266 hi def link ocamlThenErr Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
268 hi def link ocamlCharErr Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
270 hi def link ocamlErr Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
272 hi def link ocamlComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
274 hi def link ocamlModPath Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
275 hi def link ocamlObject Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
276 hi def link ocamlModule Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
277 hi def link ocamlModParam1 Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
278 hi def link ocamlModType Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
279 hi def link ocamlMPRestr3 Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
280 hi def link ocamlFullMod Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
281 hi def link ocamlModTypeRestr Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
282 hi def link ocamlWith Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
283 hi def link ocamlMTDef Include
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
285 hi def link ocamlScript Include
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
287 hi def link ocamlConstructor Constant
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
289 hi def link ocamlVal Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
290 hi def link ocamlModPreRHS Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
291 hi def link ocamlMPRestr2 Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
292 hi def link ocamlKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
293 hi def link ocamlMethod Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
294 hi def link ocamlFunDef Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
295 hi def link ocamlRefAssign Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
296 hi def link ocamlKeyChar Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
297 hi def link ocamlAnyVar Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
298 hi def link ocamlTopStop Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
299 hi def link ocamlOperator Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
301 hi def link ocamlBoolean Boolean
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
302 hi def link ocamlCharacter Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
303 hi def link ocamlNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
304 hi def link ocamlFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
305 hi def link ocamlString String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
307 hi def link ocamlLabel Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
308
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
309 hi def link ocamlType Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
311 hi def link ocamlTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
312
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
313 hi def link ocamlEncl Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
314
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 let b:current_syntax = "ocaml"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 " vim: ts=8