Mercurial > vim
annotate runtime/syntax/ocaml.vim @ 10873:fba4d2f22425 v8.0.0326
patch 8.0.0326: packadd test uses wrong directory name
commit https://github.com/vim/vim/commit/24f8f543d4036c5d2ce4ea6973a174cf2176cb72
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 11 23:00:36 2017 +0100
patch 8.0.0326: packadd test uses wrong directory name
Problem: Packadd test uses wrong directory name.
Solution: Use the variable name value. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Feb 2017 23:15:04 +0100 |
parents | 46763b01cd9a |
children | e18b1c654d09 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: OCaml | |
3 " Filenames: *.ml *.mli *.mll *.mly | |
550 | 4 " Maintainers: Markus Mottl <markus.mottl@gmail.com> |
20 | 5 " Karl-Heinz Sylla <Karl-Heinz.Sylla@gmd.de> |
6 " Issac Trotts <ijtrotts@ucdavis.edu> | |
550 | 7 " URL: http://www.ocaml.info/vim/syntax/ocaml.vim |
5244 | 8 " Last Change: 2012 May 12 - Added Dominique Pellé's spell checking patch (MM) |
9 " 2012 Feb 01 - Improved module path highlighting (MM) | |
10 " 2010 Oct 11 - Added highlighting of lnot (MM, thanks to Erick Matsen) | |
550 | 11 |
12 " A minor patch was applied to the official version so that object/end | |
13 " can be distinguished from begin/end, which is used for indentation, | |
14 " and folding. (David Baelde) | |
7 | 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 | 18 finish |
19 endif | |
20 | |
21 " OCaml is case sensitive. | |
22 syn case match | |
23 | |
2833 | 24 " Access to the method of an object |
25 syn match ocamlMethod "#" | |
26 | |
7 | 27 " Script headers highlighted like comments |
5244 | 28 syn match ocamlComment "^#!.*" contains=@Spell |
7 | 29 |
30 " Scripting directives | |
2833 | 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 | 32 |
7 | 33 " lowercase identifier - the standard way to match |
34 syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ | |
35 | |
36 syn match ocamlKeyChar "|" | |
37 | |
38 " Errors | |
39 syn match ocamlBraceErr "}" | |
40 syn match ocamlBrackErr "\]" | |
41 syn match ocamlParenErr ")" | |
42 syn match ocamlArrErr "|]" | |
43 | |
44 syn match ocamlCommentErr "\*)" | |
45 | |
46 syn match ocamlCountErr "\<downto\>" | |
47 syn match ocamlCountErr "\<to\>" | |
48 | |
49 if !exists("ocaml_revised") | |
50 syn match ocamlDoErr "\<do\>" | |
51 endif | |
52 | |
53 syn match ocamlDoneErr "\<done\>" | |
54 syn match ocamlThenErr "\<then\>" | |
55 | |
56 " Error-highlighting of "end" without synchronization: | |
57 " as keyword or as error (default) | |
58 if exists("ocaml_noend_error") | |
59 syn match ocamlKeyword "\<end\>" | |
60 else | |
61 syn match ocamlEndErr "\<end\>" | |
62 endif | |
63 | |
64 " Some convenient clusters | |
65 syn cluster ocamlAllErrs contains=ocamlBraceErr,ocamlBrackErr,ocamlParenErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr | |
66 | |
67 syn cluster ocamlAENoParen contains=ocamlBraceErr,ocamlBrackErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr | |
68 | |
2833 | 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 | 70 |
71 | |
72 " Enclosing delimiters | |
73 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="(" matchgroup=ocamlKeyword end=")" contains=ALLBUT,@ocamlContained,ocamlParenErr | |
74 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="{" matchgroup=ocamlKeyword end="}" contains=ALLBUT,@ocamlContained,ocamlBraceErr | |
75 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[" matchgroup=ocamlKeyword end="\]" contains=ALLBUT,@ocamlContained,ocamlBrackErr | |
76 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[|" matchgroup=ocamlKeyword end="|\]" contains=ALLBUT,@ocamlContained,ocamlArrErr | |
77 | |
78 | |
79 " Comments | |
5244 | 80 syn region ocamlComment start="(\*" end="\*)" contains=@Spell,ocamlComment,ocamlTodo |
550 | 81 syn keyword ocamlTodo contained TODO FIXME XXX NOTE |
7 | 82 |
83 | |
84 " Objects | |
550 | 85 syn region ocamlEnd matchgroup=ocamlObject start="\<object\>" matchgroup=ocamlObject end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr |
7 | 86 |
87 | |
88 " Blocks | |
89 if !exists("ocaml_revised") | |
90 syn region ocamlEnd matchgroup=ocamlKeyword start="\<begin\>" matchgroup=ocamlKeyword end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr | |
91 endif | |
92 | |
93 | |
94 " "for" | |
95 syn region ocamlNone matchgroup=ocamlKeyword start="\<for\>" matchgroup=ocamlKeyword end="\<\(to\|downto\)\>" contains=ALLBUT,@ocamlContained,ocamlCountErr | |
96 | |
97 | |
98 " "do" | |
99 if !exists("ocaml_revised") | |
100 syn region ocamlDo matchgroup=ocamlKeyword start="\<do\>" matchgroup=ocamlKeyword end="\<done\>" contains=ALLBUT,@ocamlContained,ocamlDoneErr | |
101 endif | |
102 | |
103 " "if" | |
104 syn region ocamlNone matchgroup=ocamlKeyword start="\<if\>" matchgroup=ocamlKeyword end="\<then\>" contains=ALLBUT,@ocamlContained,ocamlThenErr | |
105 | |
106 | |
107 "" Modules | |
108 | |
109 " "sig" | |
110 syn region ocamlSig matchgroup=ocamlModule start="\<sig\>" matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule | |
111 syn region ocamlModSpec matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contained contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlModTRWith,ocamlMPRestr | |
112 | |
113 " "open" | |
5244 | 114 syn region ocamlNone matchgroup=ocamlKeyword start="\<open\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*\>" contains=@ocamlAllErrs,ocamlComment |
7 | 115 |
116 " "include" | |
550 | 117 syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod |
7 | 118 |
119 " "module" - somewhat complicated stuff ;-) | |
120 syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef | |
2833 | 121 syn region ocamlPreDef start="."me=e-1 matchgroup=ocamlKeyword end="\l\|=\|)"me=e-1 contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlModTypeRestr,ocamlModTRWith nextgroup=ocamlModPreRHS |
122 syn region ocamlModParam start="([^*]" end=")" contained contains=@ocamlAENoParen,ocamlModParam1,ocamlVal | |
7 | 123 syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlPreMPRestr |
124 | |
125 syn region ocamlPreMPRestr start="."me=e-1 end=")"me=e-1 contained contains=@ocamlAllErrs,ocamlComment,ocamlMPRestr,ocamlModTypeRestr | |
126 | |
127 syn region ocamlMPRestr start=":" end="."me=e-1 contained contains=@ocamlComment skipwhite skipempty nextgroup=ocamlMPRestr1,ocamlMPRestr2,ocamlMPRestr3 | |
128 syn region ocamlMPRestr1 matchgroup=ocamlModule start="\ssig\s\=" matchgroup=ocamlModule end="\<end\>" contained contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule | |
129 syn region ocamlMPRestr2 start="\sfunctor\(\s\|(\)\="me=e-1 matchgroup=ocamlKeyword end="->" contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam skipwhite skipempty nextgroup=ocamlFuncWith,ocamlMPRestr2 | |
5244 | 130 syn match ocamlMPRestr3 "\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*" contained |
7 | 131 syn match ocamlModPreRHS "=" contained skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod |
2833 | 132 syn keyword ocamlKeyword val |
5244 | 133 syn region ocamlVal matchgroup=ocamlKeyword start="\<val\>" matchgroup=ocamlLCIdentifier end="\<\l\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment,ocamlFullMod skipwhite skipempty nextgroup=ocamlMPRestr |
134 syn region ocamlModRHS start="." end=". *\w\|([^*]"me=e-2 contained contains=ocamlComment skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod | |
135 syn match ocamlFullMod "\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*" contained skipwhite skipempty nextgroup=ocamlFuncWith | |
7 | 136 |
137 syn region ocamlFuncWith start="([^*]"me=e-1 end=")" contained contains=ocamlComment,ocamlWith,ocamlFuncStruct skipwhite skipempty nextgroup=ocamlFuncWith | |
138 syn region ocamlFuncStruct matchgroup=ocamlModule start="[^a-zA-Z]struct\>"hs=s+1 matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr | |
139 | |
5244 | 140 syn match ocamlModTypeRestr "\<\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*\>" contained |
7 | 141 syn region ocamlModTRWith start=":\s*("hs=s+1 end=")" contained contains=@ocamlAENoParen,ocamlWith |
5244 | 142 syn match ocamlWith "\<\(\u\(\w\|'\)* *\. *\)*\w\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlWithRest |
7 | 143 syn region ocamlWithRest start="[^)]" end=")"me=e-1 contained contains=ALLBUT,@ocamlContained |
144 | |
2833 | 145 " "struct" |
146 syn region ocamlStruct matchgroup=ocamlModule start="\<\(module\s\+\)\=struct\>" matchgroup=ocamlModule end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr | |
147 | |
7 | 148 " "module type" |
2833 | 149 syn region ocamlKeyword start="\<module\>\s*\<type\>\(\s*\<of\>\)\=" matchgroup=ocamlModule end="\<\w\(\w\|'\)*\>" contains=ocamlComment skipwhite skipempty nextgroup=ocamlMTDef |
5244 | 150 syn match ocamlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s+1 skipwhite skipempty nextgroup=ocamlFullMod |
7 | 151 |
152 syn keyword ocamlKeyword and as assert class | |
153 syn keyword ocamlKeyword constraint else | |
154 syn keyword ocamlKeyword exception external fun | |
155 | |
156 syn keyword ocamlKeyword in inherit initializer | |
157 syn keyword ocamlKeyword land lazy let match | |
158 syn keyword ocamlKeyword method mutable new of | |
159 syn keyword ocamlKeyword parser private raise rec | |
160 syn keyword ocamlKeyword try type | |
2833 | 161 syn keyword ocamlKeyword virtual when while with |
7 | 162 |
163 if exists("ocaml_revised") | |
164 syn keyword ocamlKeyword do value | |
165 syn keyword ocamlBoolean True False | |
166 else | |
167 syn keyword ocamlKeyword function | |
168 syn keyword ocamlBoolean true false | |
169 syn match ocamlKeyChar "!" | |
170 endif | |
171 | |
550 | 172 syn keyword ocamlType array bool char exn float format format4 |
173 syn keyword ocamlType int int32 int64 lazy_t list nativeint option | |
174 syn keyword ocamlType string unit | |
7 | 175 |
2833 | 176 syn keyword ocamlOperator asr lnot lor lsl lsr lxor mod not |
7 | 177 |
178 syn match ocamlConstructor "(\s*)" | |
179 syn match ocamlConstructor "\[\s*\]" | |
180 syn match ocamlConstructor "\[|\s*>|]" | |
181 syn match ocamlConstructor "\[<\s*>\]" | |
182 syn match ocamlConstructor "\u\(\w\|'\)*\>" | |
183 | |
184 " Polymorphic variants | |
185 syn match ocamlConstructor "`\w\(\w\|'\)*\>" | |
186 | |
187 " Module prefix | |
5244 | 188 syn match ocamlModPath "\u\(\w\|'\)* *\."he=e-1 |
7 | 189 |
190 syn match ocamlCharacter "'\\\d\d\d'\|'\\[\'ntbr]'\|'.'" | |
2833 | 191 syn match ocamlCharacter "'\\x\x\x'" |
7 | 192 syn match ocamlCharErr "'\\\d\d'\|'\\\d'" |
193 syn match ocamlCharErr "'\\[^\'ntbr]'" | |
5244 | 194 syn region ocamlString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell |
7 | 195 |
196 syn match ocamlFunDef "->" | |
197 syn match ocamlRefAssign ":=" | |
198 syn match ocamlTopStop ";;" | |
199 syn match ocamlOperator "\^" | |
200 syn match ocamlOperator "::" | |
201 | |
202 syn match ocamlOperator "&&" | |
203 syn match ocamlOperator "<" | |
204 syn match ocamlOperator ">" | |
205 syn match ocamlAnyVar "\<_\>" | |
206 syn match ocamlKeyChar "|[^\]]"me=e-1 | |
207 syn match ocamlKeyChar ";" | |
208 syn match ocamlKeyChar "\~" | |
209 syn match ocamlKeyChar "?" | |
210 syn match ocamlKeyChar "\*" | |
211 syn match ocamlKeyChar "=" | |
212 | |
213 if exists("ocaml_revised") | |
550 | 214 syn match ocamlErr "<-" |
7 | 215 else |
550 | 216 syn match ocamlOperator "<-" |
7 | 217 endif |
218 | |
1121 | 219 syn match ocamlNumber "\<-\=\d\(_\|\d\)*[l|L|n]\?\>" |
220 syn match ocamlNumber "\<-\=0[x|X]\(\x\|_\)\+[l|L|n]\?\>" | |
221 syn match ocamlNumber "\<-\=0[o|O]\(\o\|_\)\+[l|L|n]\?\>" | |
222 syn match ocamlNumber "\<-\=0[b|B]\([01]\|_\)\+[l|L|n]\?\>" | |
2833 | 223 syn match ocamlFloat "\<-\=\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>" |
7 | 224 |
225 " Labels | |
550 | 226 syn match ocamlLabel "\~\(\l\|_\)\(\w\|'\)*"lc=1 |
227 syn match ocamlLabel "?\(\l\|_\)\(\w\|'\)*"lc=1 | |
7 | 228 syn region ocamlLabel transparent matchgroup=ocamlLabel start="?(\(\l\|_\)\(\w\|'\)*"lc=2 end=")"me=e-1 contains=ALLBUT,@ocamlContained,ocamlParenErr |
229 | |
230 | |
231 " Synchronization | |
232 syn sync minlines=50 | |
233 syn sync maxlines=500 | |
234 | |
235 if !exists("ocaml_revised") | |
236 syn sync match ocamlDoSync grouphere ocamlDo "\<do\>" | |
237 syn sync match ocamlDoSync groupthere ocamlDo "\<done\>" | |
238 endif | |
239 | |
240 if exists("ocaml_revised") | |
241 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(object\)\>" | |
242 else | |
243 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(begin\|object\)\>" | |
244 endif | |
245 | |
246 syn sync match ocamlEndSync groupthere ocamlEnd "\<end\>" | |
247 syn sync match ocamlStructSync grouphere ocamlStruct "\<struct\>" | |
248 syn sync match ocamlStructSync groupthere ocamlStruct "\<end\>" | |
249 syn sync match ocamlSigSync grouphere ocamlSig "\<sig\>" | |
250 syn sync match ocamlSigSync groupthere ocamlSig "\<end\>" | |
251 | |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 315 |
316 let b:current_syntax = "ocaml" | |
317 | |
318 " vim: ts=8 |