Mercurial > vim
annotate runtime/syntax/ocaml.vim @ 18748:c7b16393c248 v8.1.2364
patch 8.1.2364: termwinscroll test is flaky on FreeBSD
Commit: https://github.com/vim/vim/commit/e219f73ed546abeba1ff4f5c08b380d648852222
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 15:34:08 2019 +0100
patch 8.1.2364: termwinscroll test is flaky on FreeBSD
Problem: Termwinscroll test is flaky on FreeBSD.
Solution: Add to list of flaky tests. Rename function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 15:45:03 +0100 |
parents | 432714f5c0f7 |
children | 15fa3923cc49 |
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> | |
17261 | 7 " URL: https://github.com/rgrinberg/vim-ocaml |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
8 " Last Change: |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
9 " 2018 Nov 08 - Improved highlighting of operators (Maëlan) |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
10 " 2018 Apr 22 - Improved support for PPX (Andrey Popp) |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
11 " 2018 Mar 16 - Remove raise, lnot and not from keywords (Étienne Millon, "copy") |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
12 " 2017 Apr 11 - Improved matching of negative numbers (MM) |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
13 " 2016 Mar 11 - Improved support for quoted strings (Glen Mével) |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
14 " 2015 Aug 13 - Allow apostrophes in identifiers (Jonathan Chan, Einar Lielmanis) |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
15 " 2015 Jun 17 - Added new "nonrec" keyword (MM) |
550 | 16 |
17 " A minor patch was applied to the official version so that object/end | |
18 " can be distinguished from begin/end, which is used for indentation, | |
19 " and folding. (David Baelde) | |
7 | 20 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5244
diff
changeset
|
21 " 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
|
22 if exists("b:current_syntax") && b:current_syntax == "ocaml" |
7 | 23 finish |
24 endif | |
25 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
26 " ' can be used in OCaml identifiers |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
27 setlocal iskeyword+=' |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
28 |
7 | 29 " OCaml is case sensitive. |
30 syn case match | |
31 | |
2833 | 32 " Access to the method of an object |
33 syn match ocamlMethod "#" | |
34 | |
7 | 35 " Script headers highlighted like comments |
5244 | 36 syn match ocamlComment "^#!.*" contains=@Spell |
7 | 37 |
38 " Scripting directives | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
39 syn match ocamlScript "^#\<\(quit\|labels\|warnings\|warn_error\|directory\|remove_directory\|cd\|load\|load_rec\|use\|mod_use\|install_printer\|remove_printer\|require\|list\|ppx\|principal\|predicates\|rectypes\|thread\|trace\|untrace\|untrace_all\|print_depth\|print_length\|camlp4o\|camlp4r\|topfind_log\|topfind_verbose\)\>" |
1121 | 40 |
7 | 41 " lowercase identifier - the standard way to match |
42 syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ | |
43 | |
44 syn match ocamlKeyChar "|" | |
45 | |
46 " Errors | |
47 syn match ocamlBraceErr "}" | |
48 syn match ocamlBrackErr "\]" | |
49 syn match ocamlParenErr ")" | |
50 syn match ocamlArrErr "|]" | |
51 | |
52 syn match ocamlCommentErr "\*)" | |
53 | |
54 syn match ocamlCountErr "\<downto\>" | |
55 syn match ocamlCountErr "\<to\>" | |
56 | |
57 if !exists("ocaml_revised") | |
58 syn match ocamlDoErr "\<do\>" | |
59 endif | |
60 | |
61 syn match ocamlDoneErr "\<done\>" | |
62 syn match ocamlThenErr "\<then\>" | |
63 | |
64 " Error-highlighting of "end" without synchronization: | |
65 " as keyword or as error (default) | |
66 if exists("ocaml_noend_error") | |
67 syn match ocamlKeyword "\<end\>" | |
68 else | |
69 syn match ocamlEndErr "\<end\>" | |
70 endif | |
71 | |
72 " Some convenient clusters | |
73 syn cluster ocamlAllErrs contains=ocamlBraceErr,ocamlBrackErr,ocamlParenErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr | |
74 | |
75 syn cluster ocamlAENoParen contains=ocamlBraceErr,ocamlBrackErr,ocamlCommentErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr | |
76 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
77 syn cluster ocamlContained contains=ocamlTodo,ocamlPreDef,ocamlModParam,ocamlModParam1,ocamlMPRestr,ocamlMPRestr1,ocamlMPRestr2,ocamlMPRestr3,ocamlModRHS,ocamlFuncWith,ocamlFuncStruct,ocamlModTypeRestr,ocamlModTRWith,ocamlWith,ocamlWithRest,ocamlModType,ocamlFullMod,ocamlVal |
7 | 78 |
79 | |
80 " Enclosing delimiters | |
81 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="(" matchgroup=ocamlKeyword end=")" contains=ALLBUT,@ocamlContained,ocamlParenErr | |
82 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="{" matchgroup=ocamlKeyword end="}" contains=ALLBUT,@ocamlContained,ocamlBraceErr | |
83 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[" matchgroup=ocamlKeyword end="\]" contains=ALLBUT,@ocamlContained,ocamlBrackErr | |
84 syn region ocamlEncl transparent matchgroup=ocamlKeyword start="\[|" matchgroup=ocamlKeyword end="|\]" contains=ALLBUT,@ocamlContained,ocamlArrErr | |
85 | |
86 | |
87 " Comments | |
5244 | 88 syn region ocamlComment start="(\*" end="\*)" contains=@Spell,ocamlComment,ocamlTodo |
550 | 89 syn keyword ocamlTodo contained TODO FIXME XXX NOTE |
7 | 90 |
91 | |
92 " Objects | |
550 | 93 syn region ocamlEnd matchgroup=ocamlObject start="\<object\>" matchgroup=ocamlObject end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr |
7 | 94 |
95 | |
96 " Blocks | |
97 if !exists("ocaml_revised") | |
98 syn region ocamlEnd matchgroup=ocamlKeyword start="\<begin\>" matchgroup=ocamlKeyword end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr | |
99 endif | |
100 | |
101 | |
102 " "for" | |
103 syn region ocamlNone matchgroup=ocamlKeyword start="\<for\>" matchgroup=ocamlKeyword end="\<\(to\|downto\)\>" contains=ALLBUT,@ocamlContained,ocamlCountErr | |
104 | |
105 | |
106 " "do" | |
107 if !exists("ocaml_revised") | |
108 syn region ocamlDo matchgroup=ocamlKeyword start="\<do\>" matchgroup=ocamlKeyword end="\<done\>" contains=ALLBUT,@ocamlContained,ocamlDoneErr | |
109 endif | |
110 | |
111 " "if" | |
112 syn region ocamlNone matchgroup=ocamlKeyword start="\<if\>" matchgroup=ocamlKeyword end="\<then\>" contains=ALLBUT,@ocamlContained,ocamlThenErr | |
113 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
114 "" PPX nodes |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
115 |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
116 syn match ocamlPpxIdentifier /\(\[@\{1,3\}\)\@<=\w\+\(\.\w\+\)*/ |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
117 syn region ocamlPpx matchgroup=ocamlPpxEncl start="\[@\{1,3\}" contains=TOP end="\]" |
7 | 118 |
119 "" Modules | |
120 | |
121 " "sig" | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
122 syn region ocamlSig matchgroup=ocamlSigEncl start="\<sig\>" matchgroup=ocamlSigEncl end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule |
7 | 123 syn region ocamlModSpec matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contained contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlModTRWith,ocamlMPRestr |
124 | |
125 " "open" | |
5244 | 126 syn region ocamlNone matchgroup=ocamlKeyword start="\<open\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*\>" contains=@ocamlAllErrs,ocamlComment |
7 | 127 |
128 " "include" | |
550 | 129 syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod |
7 | 130 |
131 " "module" - somewhat complicated stuff ;-) | |
132 syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
133 syn region ocamlPreDef start="."me=e-1 matchgroup=ocamlKeyword end="\l\|=\|)"me=e-1 contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlGenMod,ocamlModTypeRestr,ocamlModTRWith nextgroup=ocamlModPreRHS |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
134 syn region ocamlModParam start="([^*]" end=")" contained contains=ocamlGenMod,ocamlModParam1,ocamlSig,ocamlVal |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
135 syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
136 syn match ocamlGenMod "()" contained skipwhite skipempty |
7 | 137 |
138 syn region ocamlMPRestr start=":" end="."me=e-1 contained contains=@ocamlComment skipwhite skipempty nextgroup=ocamlMPRestr1,ocamlMPRestr2,ocamlMPRestr3 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
139 syn region ocamlMPRestr1 matchgroup=ocamlSigEncl start="\ssig\s\=" matchgroup=ocamlSigEncl end="\<end\>" contained contains=ALLBUT,@ocamlContained,ocamlEndErr,ocamlModule |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
140 syn region ocamlMPRestr2 start="\sfunctor\(\s\|(\)\="me=e-1 matchgroup=ocamlKeyword end="->" contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlGenMod skipwhite skipempty nextgroup=ocamlFuncWith,ocamlMPRestr2 |
5244 | 141 syn match ocamlMPRestr3 "\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*" contained |
7 | 142 syn match ocamlModPreRHS "=" contained skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod |
2833 | 143 syn keyword ocamlKeyword val |
5244 | 144 syn region ocamlVal matchgroup=ocamlKeyword start="\<val\>" matchgroup=ocamlLCIdentifier end="\<\l\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment,ocamlFullMod skipwhite skipempty nextgroup=ocamlMPRestr |
145 syn region ocamlModRHS start="." end=". *\w\|([^*]"me=e-2 contained contains=ocamlComment skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod | |
146 syn match ocamlFullMod "\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*" contained skipwhite skipempty nextgroup=ocamlFuncWith | |
7 | 147 |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
148 syn region ocamlFuncWith start="([^*)]"me=e-1 end=")" contained contains=ocamlComment,ocamlWith,ocamlFuncStruct skipwhite skipempty nextgroup=ocamlFuncWith |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
149 syn region ocamlFuncStruct matchgroup=ocamlStructEncl start="[^a-zA-Z]struct\>"hs=s+1 matchgroup=ocamlStructEncl end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr |
7 | 150 |
5244 | 151 syn match ocamlModTypeRestr "\<\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*\>" contained |
7 | 152 syn region ocamlModTRWith start=":\s*("hs=s+1 end=")" contained contains=@ocamlAENoParen,ocamlWith |
5244 | 153 syn match ocamlWith "\<\(\u\(\w\|'\)* *\. *\)*\w\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlWithRest |
7 | 154 syn region ocamlWithRest start="[^)]" end=")"me=e-1 contained contains=ALLBUT,@ocamlContained |
155 | |
2833 | 156 " "struct" |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
157 syn region ocamlStruct matchgroup=ocamlStructEncl start="\<\(module\s\+\)\=struct\>" matchgroup=ocamlStructEncl end="\<end\>" contains=ALLBUT,@ocamlContained,ocamlEndErr |
2833 | 158 |
7 | 159 " "module type" |
2833 | 160 syn region ocamlKeyword start="\<module\>\s*\<type\>\(\s*\<of\>\)\=" matchgroup=ocamlModule end="\<\w\(\w\|'\)*\>" contains=ocamlComment skipwhite skipempty nextgroup=ocamlMTDef |
5244 | 161 syn match ocamlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s+1 skipwhite skipempty nextgroup=ocamlFullMod |
7 | 162 |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
163 " Quoted strings |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
164 syn region ocamlString matchgroup=ocamlQuotedStringDelim start="{\z\([a-z_]*\)|" end="|\z1}" contains=@Spell |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
165 |
7 | 166 syn keyword ocamlKeyword and as assert class |
167 syn keyword ocamlKeyword constraint else | |
168 syn keyword ocamlKeyword exception external fun | |
169 | |
170 syn keyword ocamlKeyword in inherit initializer | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
171 syn keyword ocamlKeyword lazy let match |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
172 syn keyword ocamlKeyword method mutable new nonrec of |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
173 syn keyword ocamlKeyword parser private rec |
7 | 174 syn keyword ocamlKeyword try type |
2833 | 175 syn keyword ocamlKeyword virtual when while with |
7 | 176 |
177 if exists("ocaml_revised") | |
178 syn keyword ocamlKeyword do value | |
179 syn keyword ocamlBoolean True False | |
180 else | |
181 syn keyword ocamlKeyword function | |
182 syn keyword ocamlBoolean true false | |
183 endif | |
184 | |
550 | 185 syn keyword ocamlType array bool char exn float format format4 |
186 syn keyword ocamlType int int32 int64 lazy_t list nativeint option | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
187 syn keyword ocamlType bytes string unit |
7 | 188 |
189 syn match ocamlConstructor "(\s*)" | |
190 syn match ocamlConstructor "\[\s*\]" | |
191 syn match ocamlConstructor "\[|\s*>|]" | |
192 syn match ocamlConstructor "\[<\s*>\]" | |
193 syn match ocamlConstructor "\u\(\w\|'\)*\>" | |
194 | |
195 " Polymorphic variants | |
196 syn match ocamlConstructor "`\w\(\w\|'\)*\>" | |
197 | |
198 " Module prefix | |
5244 | 199 syn match ocamlModPath "\u\(\w\|'\)* *\."he=e-1 |
7 | 200 |
201 syn match ocamlCharacter "'\\\d\d\d'\|'\\[\'ntbr]'\|'.'" | |
2833 | 202 syn match ocamlCharacter "'\\x\x\x'" |
7 | 203 syn match ocamlCharErr "'\\\d\d'\|'\\\d'" |
204 syn match ocamlCharErr "'\\[^\'ntbr]'" | |
5244 | 205 syn region ocamlString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell |
7 | 206 |
207 syn match ocamlTopStop ";;" | |
208 | |
209 syn match ocamlAnyVar "\<_\>" | |
210 syn match ocamlKeyChar "|[^\]]"me=e-1 | |
211 syn match ocamlKeyChar ";" | |
212 syn match ocamlKeyChar "\~" | |
213 syn match ocamlKeyChar "?" | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
214 |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
215 "" Operators |
7 | 216 |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
217 " The grammar of operators is found there: |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
218 " https://caml.inria.fr/pub/docs/manual-ocaml/names.html#operator-name |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
219 " https://caml.inria.fr/pub/docs/manual-ocaml/extn.html#s:ext-ops |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
220 " https://caml.inria.fr/pub/docs/manual-ocaml/extn.html#s:index-operators |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
221 " =, *, < and > are both operator names and keywords, we let the user choose how |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
222 " to display them (has to be declared before regular infix operators): |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
223 syn match ocamlEqual "=" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
224 syn match ocamlStar "*" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
225 syn match ocamlAngle "<" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
226 syn match ocamlAngle ">" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
227 " Custom indexing operators: |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
228 syn match ocamlIndexingOp "\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\(()\|\[]\|{}\)\(<-\)\?" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
229 " Extension operators (has to be declared before regular infix operators): |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
230 syn match ocamlExtensionOp "#[#~?!.:|&$%<=>@^*/+-]\+" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
231 " Infix and prefix operators: |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
232 syn match ocamlPrefixOp "![~?!.:|&$%<=>@^*/+-]*" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
233 syn match ocamlPrefixOp "[~?][~?!.:|&$%<=>@^*/+-]\+" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
234 syn match ocamlInfixOp "[&$%@^/+-][~?!.:|&$%<=>@^*/+-]*" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
235 syn match ocamlInfixOp "[|<=>*][~?!.:|&$%<=>@^*/+-]\+" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
236 syn match ocamlInfixOp "#[~?!.:|&$%<=>@^*/+-]\+#\@!" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
237 syn match ocamlInfixOp "!=[~?!.:|&$%<=>@^*/+-]\@!" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
238 syn keyword ocamlInfixOpKeyword asr land lor lsl lsr lxor mod or |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
239 " := is technically an infix operator, but we may want to show it as a keyword |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
240 " (somewhat analogously to = for let‐bindings and <- for assignations): |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
241 syn match ocamlRefAssign ":=" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
242 " :: is technically not an operator, but we may want to show it as such: |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
243 syn match ocamlCons "::" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
244 " -> and <- are keywords, not operators (but can appear in longer operators): |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
245 syn match ocamlArrow "->[~?!.:|&$%<=>@^*/+-]\@!" |
7 | 246 if exists("ocaml_revised") |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
247 syn match ocamlErr "<-[~?!.:|&$%<=>@^*/+-]\@!" |
7 | 248 else |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
249 syn match ocamlKeyChar "<-[~?!.:|&$%<=>@^*/+-]\@!" |
7 | 250 endif |
251 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
252 syn match ocamlNumber "-\=\<\d\(_\|\d\)*[l|L|n]\?\>" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
253 syn match ocamlNumber "-\=\<0[x|X]\(\x\|_\)\+[l|L|n]\?\>" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
254 syn match ocamlNumber "-\=\<0[o|O]\(\o\|_\)\+[l|L|n]\?\>" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
255 syn match ocamlNumber "-\=\<0[b|B]\([01]\|_\)\+[l|L|n]\?\>" |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
256 syn match ocamlFloat "-\=\<\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>" |
7 | 257 |
258 " Labels | |
550 | 259 syn match ocamlLabel "\~\(\l\|_\)\(\w\|'\)*"lc=1 |
260 syn match ocamlLabel "?\(\l\|_\)\(\w\|'\)*"lc=1 | |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
261 syn region ocamlLabel transparent matchgroup=ocamlLabel start="[~?](\(\l\|_\)\(\w\|'\)*"lc=2 end=")"me=e-1 contains=ALLBUT,@ocamlContained,ocamlParenErr |
7 | 262 |
263 | |
264 " Synchronization | |
265 syn sync minlines=50 | |
266 syn sync maxlines=500 | |
267 | |
268 if !exists("ocaml_revised") | |
269 syn sync match ocamlDoSync grouphere ocamlDo "\<do\>" | |
270 syn sync match ocamlDoSync groupthere ocamlDo "\<done\>" | |
271 endif | |
272 | |
273 if exists("ocaml_revised") | |
274 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(object\)\>" | |
275 else | |
276 syn sync match ocamlEndSync grouphere ocamlEnd "\<\(begin\|object\)\>" | |
277 endif | |
278 | |
279 syn sync match ocamlEndSync groupthere ocamlEnd "\<end\>" | |
280 syn sync match ocamlStructSync grouphere ocamlStruct "\<struct\>" | |
281 syn sync match ocamlStructSync groupthere ocamlStruct "\<end\>" | |
282 syn sync match ocamlSigSync grouphere ocamlSig "\<sig\>" | |
283 syn sync match ocamlSigSync groupthere ocamlSig "\<end\>" | |
284 | |
285 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5244
diff
changeset
|
286 " 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
|
287 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
288 hi def link ocamlBraceErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
289 hi def link ocamlBrackErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
290 hi def link ocamlParenErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
291 hi def link ocamlArrErr Error |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5244
diff
changeset
|
292 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
293 hi def link ocamlCommentErr Error |
7 | 294 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
295 hi def link ocamlCountErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
296 hi def link ocamlDoErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
297 hi def link ocamlDoneErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
298 hi def link ocamlEndErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
299 hi def link ocamlThenErr Error |
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 ocamlCharErr Error |
7 | 302 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
303 hi def link ocamlErr Error |
7 | 304 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
305 hi def link ocamlComment Comment |
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 ocamlModPath Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
308 hi def link ocamlObject Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
309 hi def link ocamlModule Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
310 hi def link ocamlModParam1 Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
311 hi def link ocamlModType Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
312 hi def link ocamlMPRestr3 Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
313 hi def link ocamlFullMod Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
314 hi def link ocamlModTypeRestr Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
315 hi def link ocamlWith Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
316 hi def link ocamlMTDef Include |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
317 hi def link ocamlSigEncl ocamlModule |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
318 hi def link ocamlStructEncl ocamlModule |
7 | 319 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
320 hi def link ocamlScript Include |
7 | 321 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
322 hi def link ocamlConstructor Constant |
7 | 323 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
324 hi def link ocamlVal Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
325 hi def link ocamlModPreRHS Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
326 hi def link ocamlMPRestr2 Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
327 hi def link ocamlKeyword Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
328 hi def link ocamlMethod Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
329 hi def link ocamlKeyChar Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
330 hi def link ocamlAnyVar Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
331 hi def link ocamlTopStop Keyword |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
332 |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
333 hi def link ocamlRefAssign ocamlKeyChar |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
334 hi def link ocamlEqual ocamlKeyChar |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
335 hi def link ocamlStar ocamlInfixOp |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
336 hi def link ocamlAngle ocamlInfixOp |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
337 hi def link ocamlCons ocamlInfixOp |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
338 |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
339 hi def link ocamlPrefixOp ocamlOperator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
340 hi def link ocamlInfixOp ocamlOperator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
341 hi def link ocamlExtensionOp ocamlOperator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
342 hi def link ocamlIndexingOp ocamlOperator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
343 |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
344 if exists("ocaml_highlight_operators") |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
345 hi def link ocamlInfixOpKeyword ocamlOperator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
346 hi def link ocamlOperator Operator |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
347 else |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
348 hi def link ocamlInfixOpKeyword Keyword |
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
349 endif |
7 | 350 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
351 hi def link ocamlBoolean Boolean |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
352 hi def link ocamlCharacter Character |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
353 hi def link ocamlNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
354 hi def link ocamlFloat Float |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
355 hi def link ocamlString String |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
356 hi def link ocamlQuotedStringDelim Identifier |
7 | 357 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
358 hi def link ocamlLabel Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
359 |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
360 hi def link ocamlType Type |
7 | 361 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
362 hi def link ocamlTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
363 |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
364 hi def link ocamlEncl Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
365 |
16971
e18b1c654d09
Update runtime files - Add typescript syntax and indent.
Bram Moolenaar <Bram@vim.org>
parents:
10051
diff
changeset
|
366 hi def link ocamlPpxEncl ocamlEncl |
7 | 367 |
368 let b:current_syntax = "ocaml" | |
369 | |
370 " vim: ts=8 |