@codingame/monaco-languageclient-wrapper 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/main.js +3 -5
  2. package/package.json +15 -15
  3. package/stats.html +1 -1
  4. package/dist/BSV.tmLanguage.js +0 -299
  5. package/dist/COBOL Copybook.js +0 -2017
  6. package/dist/COBOL.js +0 -2017
  7. package/dist/COBOL.tmLanguage.js +0 -149
  8. package/dist/CodinGameMonacoWorkspace.d.ts +0 -13
  9. package/dist/Configuration.d.ts +0 -15
  10. package/dist/Erlang.plist.js +0 -1752
  11. package/dist/JSON.tmLanguage.js +0 -221
  12. package/dist/JSONC.tmLanguage.js +0 -221
  13. package/dist/JavaScript.tmLanguage.js +0 -5894
  14. package/dist/Kotlin.tmLanguage.js +0 -724
  15. package/dist/MagicPython.tmLanguage.js +0 -5340
  16. package/dist/MagicRegExp.tmLanguage.js +0 -505
  17. package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
  18. package/dist/SQL.plist.js +0 -482
  19. package/dist/Scala.tmLanguage.js +0 -1255
  20. package/dist/TypeScript.tmLanguage.js +0 -5641
  21. package/dist/WatchableConsoleWindow.d.ts +0 -22
  22. package/dist/_rollupPluginBabelHelpers.js +0 -54
  23. package/dist/asp-vb-net.tmlanguage.js +0 -247
  24. package/dist/bsv.js +0 -49
  25. package/dist/c.js +0 -18
  26. package/dist/c.tmLanguage.js +0 -3347
  27. package/dist/cabal.tmLanguage.js +0 -66
  28. package/dist/clojure.tmLanguage.js +0 -443
  29. package/dist/codeblock-cabal.js +0 -42
  30. package/dist/codeblock-haskell.js +0 -42
  31. package/dist/codeblock-literate-haskell.js +0 -42
  32. package/dist/codeblock.js +0 -36
  33. package/dist/codeblock2.js +0 -95
  34. package/dist/coffeescript.js +0 -18
  35. package/dist/coffeescript.tmLanguage.js +0 -1324
  36. package/dist/configuration/index.d.ts +0 -5
  37. package/dist/cpp.js +0 -18
  38. package/dist/cpp.tmLanguage.js +0 -19996
  39. package/dist/csharp.js +0 -18
  40. package/dist/csharp.tmLanguage.js +0 -4750
  41. package/dist/css.tmLanguage.js +0 -1873
  42. package/dist/css.worker.js +0 -6
  43. package/dist/cssContribution.js +0 -10
  44. package/dist/cuda-cpp.tmLanguage.js +0 -19993
  45. package/dist/d.js +0 -3159
  46. package/dist/dart.js +0 -530
  47. package/dist/diet.js +0 -758
  48. package/dist/diet2.js +0 -92
  49. package/dist/dml.js +0 -169
  50. package/dist/eex.js +0 -55
  51. package/dist/elixir.js +0 -2341
  52. package/dist/elixir2.js +0 -184
  53. package/dist/erlang.js +0 -195
  54. package/dist/expression.js +0 -846
  55. package/dist/extensions/autofold.d.ts +0 -2
  56. package/dist/extensions/cobol.d.ts +0 -2
  57. package/dist/extensions/index.d.ts +0 -2
  58. package/dist/features/cssContribution.d.ts +0 -1
  59. package/dist/features/htmlContribution.d.ts +0 -1
  60. package/dist/features/jsonContribution.d.ts +0 -1
  61. package/dist/features/typescriptContribution.d.ts +0 -1
  62. package/dist/fsharp.js +0 -18
  63. package/dist/fsharp.tmLanguage.js +0 -1811
  64. package/dist/go.tmLanguage.js +0 -1025
  65. package/dist/groovy.js +0 -229
  66. package/dist/groovy.tmLanguage.js +0 -1391
  67. package/dist/haskell.tmLanguage.js +0 -629
  68. package/dist/html (eex).js +0 -31
  69. package/dist/html-derivative.tmLanguage.js +0 -57
  70. package/dist/html.tmLanguage.js +0 -2652
  71. package/dist/html.tmLanguage2.js +0 -97
  72. package/dist/html.worker.js +0 -6
  73. package/dist/htmlContribution.js +0 -10
  74. package/dist/inline-styles.js +0 -104
  75. package/dist/inline-template.js +0 -88
  76. package/dist/java.js +0 -18
  77. package/dist/java.tmLanguage.js +0 -1863
  78. package/dist/javascript.js +0 -196
  79. package/dist/javascriptreact.js +0 -196
  80. package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
  81. package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
  82. package/dist/json.worker.js +0 -6
  83. package/dist/jsonContribution.js +0 -78
  84. package/dist/keybindings/index.d.ts +0 -2
  85. package/dist/keybindings/keybindingHelper.d.ts +0 -2
  86. package/dist/keybindings/vim.d.ts +0 -3
  87. package/dist/kotlin.js +0 -117
  88. package/dist/kotlinscript.js +0 -117
  89. package/dist/languages/extensions/grammarLoader.d.ts +0 -91037
  90. package/dist/languages/extensions/snippetLoader.d.ts +0 -4578
  91. package/dist/languages/index.d.ts +0 -3
  92. package/dist/languages/monarch/index.d.ts +0 -7
  93. package/dist/languages/monarch/list.d.ts +0 -7
  94. package/dist/languages/monarch/stub-generator.d.ts +0 -2
  95. package/dist/languages/snippets/index.d.ts +0 -1
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
  98. package/dist/languages/textMate/index.d.ts +0 -2
  99. package/dist/literateHaskell.tmLanguage.js +0 -70
  100. package/dist/lua.tmLanguage.js +0 -289
  101. package/dist/markdown.js +0 -103
  102. package/dist/markdown.tmLanguage.js +0 -2784
  103. package/dist/merlin.js +0 -111
  104. package/dist/monaco.d.ts +0 -8
  105. package/dist/objective-c.tmLanguage.js +0 -3618
  106. package/dist/ocaml-hover-info.js +0 -34
  107. package/dist/ocaml-hover-type.js +0 -24
  108. package/dist/ocaml-markdown-codeblock.js +0 -42
  109. package/dist/ocaml.js +0 -2979
  110. package/dist/ocamlbuild.js +0 -239
  111. package/dist/opam.js +0 -149
  112. package/dist/pascal.js +0 -382
  113. package/dist/pascal.tmLanguage.js +0 -169
  114. package/dist/perl.tmLanguage.js +0 -2986
  115. package/dist/perl6.tmLanguage.js +0 -323
  116. package/dist/pgsql.tmLanguage.js +0 -284
  117. package/dist/php.js +0 -265
  118. package/dist/php.tmLanguage.js +0 -3791
  119. package/dist/platform.tmLanguage.js +0 -1135
  120. package/dist/powershell.js +0 -18
  121. package/dist/powershell.tmLanguage.js +0 -1037
  122. package/dist/r.tmLanguage.js +0 -551
  123. package/dist/reason-hover-info.js +0 -34
  124. package/dist/reason-hover-signature.js +0 -21
  125. package/dist/reason-hover-type.js +0 -21
  126. package/dist/reason-markdown-codeblock.js +0 -42
  127. package/dist/reason.js +0 -100
  128. package/dist/ruby.tmLanguage.js +0 -2784
  129. package/dist/rust.tmLanguage.js +0 -1178
  130. package/dist/sassdoc.tmLanguage.js +0 -362
  131. package/dist/scss.tmLanguage.js +0 -1887
  132. package/dist/sdc.tmLanguage.js +0 -712
  133. package/dist/sdl.js +0 -162
  134. package/dist/services/EditorModelResolverService.d.ts +0 -8
  135. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -7
  136. package/dist/shell-unix-bash.tmLanguage.js +0 -1291
  137. package/dist/sql.js +0 -21
  138. package/dist/stub-generator.js +0 -15
  139. package/dist/swift.js +0 -183
  140. package/dist/swift.tmLanguage.js +0 -3288
  141. package/dist/systemverilog.js +0 -208
  142. package/dist/systemverilog.tmLanguage.js +0 -1067
  143. package/dist/tcl.js +0 -151
  144. package/dist/tcl.tmlanguage.yaml.js +0 -5484
  145. package/dist/template.js +0 -207
  146. package/dist/theme/index.d.ts +0 -3
  147. package/dist/theme/registry.d.ts +0 -4
  148. package/dist/theme/semanticHighlight.d.ts +0 -1
  149. package/dist/theme/tools.d.ts +0 -13
  150. package/dist/tools.d.ts +0 -3
  151. package/dist/ts.worker.js +0 -6
  152. package/dist/typescript.js +0 -312
  153. package/dist/typescriptContribution.js +0 -36
  154. package/dist/typescriptreact.js +0 -312
  155. package/dist/ucf.tmLanguage.js +0 -36
  156. package/dist/vb.js +0 -88
  157. package/dist/verilog.js +0 -432
  158. package/dist/verilog.tmLanguage.js +0 -321
  159. package/dist/worker.d.ts +0 -6
  160. package/dist/worker.js +0 -54
  161. package/dist/xml.tmLanguage.js +0 -395
  162. package/dist/xsl.tmLanguage.js +0 -102
  163. package/dist/yaml.tmLanguage.js +0 -629
package/dist/ocaml.js DELETED
@@ -1,2979 +0,0 @@
1
- var name = "OCaml";
2
- var scopeName = "source.ocaml";
3
- var fileTypes = [
4
- ".ml",
5
- ".mli"
6
- ];
7
- var patterns = [
8
- {
9
- include: "#comment"
10
- },
11
- {
12
- include: "#pragma"
13
- },
14
- {
15
- include: "#decl"
16
- }
17
- ];
18
- var repository = {
19
- attribute: {
20
- begin: "(\\[)[[:space:]]*((?<![#\\-:!?.@*/&%^+<=>|~$])@{1,3}(?![#\\-:!?.@*/&%^+<=>|~$]))",
21
- end: "\\]",
22
- beginCaptures: {
23
- "1": {
24
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
25
- },
26
- "2": {
27
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
28
- }
29
- },
30
- endCaptures: {
31
- "0": {
32
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
33
- }
34
- },
35
- patterns: [
36
- {
37
- include: "#attributePayload"
38
- }
39
- ]
40
- },
41
- attributeIdentifier: {
42
- match: "((?<![#\\-:!?.@*/&%^+<=>|~$])%(?![#\\-:!?.@*/&%^+<=>|~$]))((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))",
43
- captures: {
44
- "1": {
45
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
46
- },
47
- "2": {
48
- name: "punctuation.definition.tag"
49
- }
50
- }
51
- },
52
- attributePayload: {
53
- patterns: [
54
- {
55
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]%|^%))(?![#\\-:!?.@*/&%^+<=>|~$]))",
56
- end: "((?<![#\\-:!?.@*/&%^+<=>|~$])[:\\?](?![#\\-:!?.@*/&%^+<=>|~$]))|(?<=[[:space:]])|(?=\\])",
57
- endCaptures: {
58
- "1": {
59
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
60
- }
61
- },
62
- patterns: [
63
- {
64
- include: "#pathModuleExtended"
65
- },
66
- {
67
- include: "#pathRecord"
68
- }
69
- ]
70
- },
71
- {
72
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
73
- end: "(?=\\])",
74
- patterns: [
75
- {
76
- include: "#signature"
77
- },
78
- {
79
- include: "#type"
80
- }
81
- ]
82
- },
83
- {
84
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?))(?![#\\-:!?.@*/&%^+<=>|~$]))",
85
- end: "(?=\\])",
86
- patterns: [
87
- {
88
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?))(?![#\\-:!?.@*/&%^+<=>|~$]))",
89
- end: "(?=\\])|\\bwhen\\b",
90
- endCaptures: {
91
- "1": {
92
- }
93
- },
94
- patterns: [
95
- {
96
- include: "#pattern"
97
- }
98
- ]
99
- },
100
- {
101
- begin: "(?:(?<=(?:[^[:word:]]when|^when))(?![[:word:]]))",
102
- end: "(?=\\])",
103
- patterns: [
104
- {
105
- include: "#term"
106
- }
107
- ]
108
- }
109
- ]
110
- },
111
- {
112
- include: "#term"
113
- }
114
- ]
115
- },
116
- bindClassTerm: {
117
- patterns: [
118
- {
119
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
120
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|(=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
121
- endCaptures: {
122
- "1": {
123
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
124
- },
125
- "2": {
126
- name: "support.type strong"
127
- }
128
- },
129
- patterns: [
130
- {
131
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
132
- end: "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?=\\btype\\b)",
133
- endCaptures: {
134
- "0": {
135
- name: "entity.name.function strong emphasis"
136
- }
137
- },
138
- patterns: [
139
- {
140
- include: "#attributeIdentifier"
141
- }
142
- ]
143
- },
144
- {
145
- begin: "\\[",
146
- end: "\\]",
147
- captures: {
148
- "0": {
149
- name: "punctuation.definition.tag"
150
- }
151
- },
152
- patterns: [
153
- {
154
- include: "#type"
155
- }
156
- ]
157
- },
158
- {
159
- include: "#bindTermArgs"
160
- }
161
- ]
162
- },
163
- {
164
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
165
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\b)",
166
- endCaptures: {
167
- "0": {
168
- name: "support.type strong"
169
- }
170
- },
171
- patterns: [
172
- {
173
- include: "#literalClassType"
174
- }
175
- ]
176
- },
177
- {
178
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
179
- end: "\\band\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
180
- endCaptures: {
181
- "0": {
182
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
183
- }
184
- },
185
- patterns: [
186
- {
187
- include: "#term"
188
- }
189
- ]
190
- }
191
- ]
192
- },
193
- bindClassType: {
194
- patterns: [
195
- {
196
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
197
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|(=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
198
- endCaptures: {
199
- "1": {
200
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
201
- },
202
- "2": {
203
- name: "support.type strong"
204
- }
205
- },
206
- patterns: [
207
- {
208
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
209
- end: "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?=\\btype\\b)",
210
- endCaptures: {
211
- "0": {
212
- name: "entity.name.function strong emphasis"
213
- }
214
- },
215
- patterns: [
216
- {
217
- include: "#attributeIdentifier"
218
- }
219
- ]
220
- },
221
- {
222
- begin: "\\[",
223
- end: "\\]",
224
- captures: {
225
- "0": {
226
- name: "punctuation.definition.tag"
227
- }
228
- },
229
- patterns: [
230
- {
231
- include: "#type"
232
- }
233
- ]
234
- },
235
- {
236
- include: "#bindTermArgs"
237
- }
238
- ]
239
- },
240
- {
241
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
242
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\b)",
243
- endCaptures: {
244
- "0": {
245
- name: "support.type strong"
246
- }
247
- },
248
- patterns: [
249
- {
250
- include: "#literalClassType"
251
- }
252
- ]
253
- },
254
- {
255
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
256
- end: "\\band\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
257
- endCaptures: {
258
- "0": {
259
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
260
- }
261
- },
262
- patterns: [
263
- {
264
- include: "#literalClassType"
265
- }
266
- ]
267
- }
268
- ]
269
- },
270
- bindConstructor: {
271
- patterns: [
272
- {
273
- begin: "(?:(?<=(?:[^[:word:]]exception|^exception))(?![[:word:]]))|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\+=|^\\+=|[^#\\-:!?.@*/&%^+<=>|~$]=|^=|[^#\\-:!?.@*/&%^+<=>|~$]\\||^\\|))(?![#\\-:!?.@*/&%^+<=>|~$]))",
274
- end: "(:)|(\\bof\\b)|((?<![#\\-:!?.@*/&%^+<=>|~$])\\|(?![#\\-:!?.@*/&%^+<=>|~$]))|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
275
- endCaptures: {
276
- "1": {
277
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
278
- },
279
- "2": {
280
- name: "punctuation.definition.tag"
281
- },
282
- "3": {
283
- name: "support.type strong"
284
- }
285
- },
286
- patterns: [
287
- {
288
- include: "#attributeIdentifier"
289
- },
290
- {
291
- match: "\\.\\.",
292
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
293
- },
294
- {
295
- match: "\\b(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)\\b(?![[:space:]]*(?:\\.|\\([^\\*]))",
296
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
297
- },
298
- {
299
- include: "#type"
300
- }
301
- ]
302
- },
303
- {
304
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]of|^of))(?![[:word:]]))",
305
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\|(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
306
- endCaptures: {
307
- "0": {
308
- name: "support.type strong"
309
- }
310
- },
311
- patterns: [
312
- {
313
- include: "#type"
314
- }
315
- ]
316
- }
317
- ]
318
- },
319
- bindSignature: {
320
- patterns: [
321
- {
322
- include: "#comment"
323
- },
324
- {
325
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
326
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])",
327
- endCaptures: {
328
- "0": {
329
- name: "support.type strong"
330
- }
331
- },
332
- patterns: [
333
- {
334
- include: "#comment"
335
- },
336
- {
337
- include: "#pathModuleExtended"
338
- }
339
- ]
340
- },
341
- {
342
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
343
- end: "\\band\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
344
- endCaptures: {
345
- "0": {
346
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
347
- }
348
- },
349
- patterns: [
350
- {
351
- include: "#signature"
352
- }
353
- ]
354
- }
355
- ]
356
- },
357
- bindStructure: {
358
- patterns: [
359
- {
360
- include: "#comment"
361
- },
362
- {
363
- begin: "(?:(?<=(?:[^[:word:]]and|^and))(?![[:word:]]))|(?=[[:upper:]])",
364
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])(:(?!=))|(:?=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|open|type|val)\\b)",
365
- endCaptures: {
366
- "1": {
367
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
368
- },
369
- "2": {
370
- name: "support.type strong"
371
- }
372
- },
373
- patterns: [
374
- {
375
- include: "#comment"
376
- },
377
- {
378
- match: "\\bmodule\\b",
379
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
380
- },
381
- {
382
- match: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
383
- name: "entity.name.function strong emphasis"
384
- },
385
- {
386
- begin: "\\((?!\\))",
387
- end: "\\)",
388
- captures: {
389
- "0": {
390
- name: "punctuation.definition.tag"
391
- }
392
- },
393
- patterns: [
394
- {
395
- include: "#comment"
396
- },
397
- {
398
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$]):(?![#\\-:!?.@*/&%^+<=>|~$])",
399
- end: "(?=\\))",
400
- beginCaptures: {
401
- "0": {
402
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
403
- }
404
- },
405
- patterns: [
406
- {
407
- include: "#signature"
408
- }
409
- ]
410
- },
411
- {
412
- include: "#variableModule"
413
- }
414
- ]
415
- },
416
- {
417
- include: "#literalUnit"
418
- }
419
- ]
420
- },
421
- {
422
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
423
- end: "\\b(and)\\b|((?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$]))|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
424
- endCaptures: {
425
- "1": {
426
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
427
- },
428
- "2": {
429
- name: "support.type strong"
430
- }
431
- },
432
- patterns: [
433
- {
434
- include: "#signature"
435
- }
436
- ]
437
- },
438
- {
439
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:=|^:=|[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
440
- end: "\\b(?:(and)|(with))\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
441
- endCaptures: {
442
- "1": {
443
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
444
- },
445
- "2": {
446
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
447
- }
448
- },
449
- patterns: [
450
- {
451
- include: "#structure"
452
- }
453
- ]
454
- }
455
- ]
456
- },
457
- bindTerm: {
458
- patterns: [
459
- {
460
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]external|^external|[^[:word:]]let|^let|[^[:word:]]method|^method|[^[:word:]]val|^val))(?![[:word:]]))",
461
- end: "(\\bmodule\\b)|(\\bopen\\b)|(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|((?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$]))(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
462
- endCaptures: {
463
- "1": {
464
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
465
- },
466
- "2": {
467
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
468
- },
469
- "3": {
470
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
471
- },
472
- "4": {
473
- name: "support.type strong"
474
- }
475
- },
476
- patterns: [
477
- {
478
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]external|^external|[^[:word:]]let|^let|[^[:word:]]method|^method|[^[:word:]]val|^val))(?![[:word:]]))",
479
- end: "(?=\\b(?:module|open)\\b)|(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(\\brec\\b)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))",
480
- endCaptures: {
481
- "1": {
482
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
483
- },
484
- "2": {
485
- name: "entity.name.function strong emphasis"
486
- }
487
- },
488
- patterns: [
489
- {
490
- include: "#attributeIdentifier"
491
- },
492
- {
493
- include: "#comment"
494
- }
495
- ]
496
- },
497
- {
498
- begin: "(?:(?<=(?:[^[:word:]]rec|^rec))(?![[:word:]]))",
499
- end: "((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?=[^[:space:][:alpha:]])",
500
- endCaptures: {
501
- "0": {
502
- name: "entity.name.function strong emphasis"
503
- }
504
- },
505
- patterns: [
506
- {
507
- include: "#bindTermArgs"
508
- }
509
- ]
510
- },
511
- {
512
- include: "#bindTermArgs"
513
- }
514
- ]
515
- },
516
- {
517
- begin: "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
518
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
519
- patterns: [
520
- {
521
- include: "#declModule"
522
- }
523
- ]
524
- },
525
- {
526
- begin: "(?:(?<=(?:[^[:word:]]open|^open))(?![[:word:]]))",
527
- end: "(?=\\bin\\b)|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
528
- patterns: [
529
- {
530
- include: "#pathModuleSimple"
531
- }
532
- ]
533
- },
534
- {
535
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
536
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
537
- endCaptures: {
538
- "0": {
539
- name: "support.type strong"
540
- }
541
- },
542
- patterns: [
543
- {
544
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
545
- end: "\\btype\\b|(?=[^[:space:]])",
546
- endCaptures: {
547
- "0": {
548
- name: "keyword.control"
549
- }
550
- }
551
- },
552
- {
553
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
554
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$])",
555
- endCaptures: {
556
- "0": {
557
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
558
- }
559
- },
560
- patterns: [
561
- {
562
- include: "#pattern"
563
- }
564
- ]
565
- },
566
- {
567
- include: "#type"
568
- }
569
- ]
570
- },
571
- {
572
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
573
- end: "\\band\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
574
- endCaptures: {
575
- "0": {
576
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
577
- }
578
- },
579
- patterns: [
580
- {
581
- include: "#term"
582
- }
583
- ]
584
- }
585
- ]
586
- },
587
- bindTermArgs: {
588
- patterns: [
589
- {
590
- begin: "~|\\?",
591
- end: ":|(?=[^[:space:]])",
592
- applyEndPatternLast: true,
593
- beginCaptures: {
594
- "0": {
595
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
596
- }
597
- },
598
- endCaptures: {
599
- "0": {
600
- name: "keyword"
601
- }
602
- },
603
- patterns: [
604
- {
605
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]~|^~|[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?))(?![#\\-:!?.@*/&%^+<=>|~$]))",
606
- end: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?<=\\))",
607
- endCaptures: {
608
- "0": {
609
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
610
- }
611
- },
612
- patterns: [
613
- {
614
- include: "#comment"
615
- },
616
- {
617
- begin: "\\((?!\\*)",
618
- end: "\\)",
619
- captures: {
620
- "0": {
621
- name: "punctuation.definition.tag"
622
- }
623
- },
624
- patterns: [
625
- {
626
- begin: "(?<=\\()",
627
- end: ":|=",
628
- endCaptures: {
629
- "0": {
630
- name: "keyword"
631
- }
632
- },
633
- patterns: [
634
- {
635
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
636
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
637
- }
638
- ]
639
- },
640
- {
641
- begin: "(?<=:)",
642
- end: "=|(?=\\))",
643
- endCaptures: {
644
- "0": {
645
- name: "keyword"
646
- }
647
- },
648
- patterns: [
649
- {
650
- include: "#type"
651
- }
652
- ]
653
- },
654
- {
655
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
656
- end: "(?=\\))",
657
- patterns: [
658
- {
659
- include: "#term"
660
- }
661
- ]
662
- }
663
- ]
664
- }
665
- ]
666
- }
667
- ]
668
- },
669
- {
670
- include: "#pattern"
671
- }
672
- ]
673
- },
674
- bindType: {
675
- patterns: [
676
- {
677
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]type|^type))(?![[:word:]]))",
678
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\+=|=(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
679
- endCaptures: {
680
- "0": {
681
- name: "support.type strong"
682
- }
683
- },
684
- patterns: [
685
- {
686
- include: "#attributeIdentifier"
687
- },
688
- {
689
- include: "#pathType"
690
- },
691
- {
692
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
693
- name: "entity.name.function strong"
694
- },
695
- {
696
- include: "#type"
697
- }
698
- ]
699
- },
700
- {
701
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\+=|^\\+=|[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
702
- end: "\\band\\b|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
703
- endCaptures: {
704
- "0": {
705
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
706
- }
707
- },
708
- patterns: [
709
- {
710
- include: "#bindConstructor"
711
- }
712
- ]
713
- }
714
- ]
715
- },
716
- comment: {
717
- patterns: [
718
- {
719
- include: "#attribute"
720
- },
721
- {
722
- include: "#extension"
723
- },
724
- {
725
- include: "#commentBlock"
726
- },
727
- {
728
- include: "#commentDoc"
729
- }
730
- ]
731
- },
732
- commentBlock: {
733
- begin: "\\(\\*(?!\\*[^\\)])",
734
- end: "\\*\\)",
735
- name: "comment constant.regexp meta.separator.markdown",
736
- contentName: "emphasis",
737
- patterns: [
738
- {
739
- include: "#commentBlock"
740
- },
741
- {
742
- include: "#commentDoc"
743
- }
744
- ]
745
- },
746
- commentDoc: {
747
- begin: "\\(\\*\\*",
748
- end: "\\*\\)",
749
- name: "comment constant.regexp meta.separator.markdown",
750
- patterns: [
751
- {
752
- match: "\\*"
753
- },
754
- {
755
- include: "#comment"
756
- }
757
- ]
758
- },
759
- decl: {
760
- patterns: [
761
- {
762
- include: "#declClass"
763
- },
764
- {
765
- include: "#declException"
766
- },
767
- {
768
- include: "#declInclude"
769
- },
770
- {
771
- include: "#declModule"
772
- },
773
- {
774
- include: "#declOpen"
775
- },
776
- {
777
- include: "#declTerm"
778
- },
779
- {
780
- include: "#declType"
781
- }
782
- ]
783
- },
784
- declClass: {
785
- begin: "\\bclass\\b",
786
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
787
- beginCaptures: {
788
- "0": {
789
- name: "entity.name.class constant.numeric markup.underline"
790
- }
791
- },
792
- endCaptures: {
793
- "0": {
794
- name: "punctuation.definition.tag"
795
- }
796
- },
797
- patterns: [
798
- {
799
- include: "#comment"
800
- },
801
- {
802
- include: "#pragma"
803
- },
804
- {
805
- begin: "(?:(?<=(?:[^[:word:]]class|^class))(?![[:word:]]))",
806
- end: "\\btype\\b|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\b)",
807
- beginCaptures: {
808
- "0": {
809
- name: "entity.name.class constant.numeric markup.underline"
810
- }
811
- },
812
- endCaptures: {
813
- "0": {
814
- name: "keyword"
815
- }
816
- },
817
- patterns: [
818
- {
819
- include: "#bindClassTerm"
820
- }
821
- ]
822
- },
823
- {
824
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
825
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
826
- patterns: [
827
- {
828
- include: "#bindClassType"
829
- }
830
- ]
831
- }
832
- ]
833
- },
834
- declException: {
835
- begin: "\\bexception\\b",
836
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
837
- beginCaptures: {
838
- "0": {
839
- name: "keyword markup.underline"
840
- }
841
- },
842
- endCaptures: {
843
- "0": {
844
- name: "punctuation.definition.tag"
845
- }
846
- },
847
- patterns: [
848
- {
849
- include: "#attributeIdentifier"
850
- },
851
- {
852
- include: "#comment"
853
- },
854
- {
855
- include: "#pragma"
856
- },
857
- {
858
- include: "#bindConstructor"
859
- }
860
- ]
861
- },
862
- declInclude: {
863
- begin: "\\binclude\\b",
864
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
865
- beginCaptures: {
866
- "0": {
867
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
868
- }
869
- },
870
- endCaptures: {
871
- "0": {
872
- name: "punctuation.definition.tag"
873
- }
874
- },
875
- patterns: [
876
- {
877
- include: "#attributeIdentifier"
878
- },
879
- {
880
- include: "#comment"
881
- },
882
- {
883
- include: "#pragma"
884
- },
885
- {
886
- include: "#signature"
887
- }
888
- ]
889
- },
890
- declModule: {
891
- begin: "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))|\\bmodule\\b",
892
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
893
- beginCaptures: {
894
- "0": {
895
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename markup.underline"
896
- }
897
- },
898
- endCaptures: {
899
- "0": {
900
- name: "punctuation.definition.tag"
901
- }
902
- },
903
- patterns: [
904
- {
905
- include: "#comment"
906
- },
907
- {
908
- include: "#pragma"
909
- },
910
- {
911
- begin: "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
912
- end: "(\\btype\\b)|(?=[[:upper:]])",
913
- endCaptures: {
914
- "0": {
915
- name: "keyword"
916
- }
917
- },
918
- patterns: [
919
- {
920
- include: "#attributeIdentifier"
921
- },
922
- {
923
- include: "#comment"
924
- },
925
- {
926
- match: "\\brec\\b",
927
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
928
- }
929
- ]
930
- },
931
- {
932
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
933
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
934
- patterns: [
935
- {
936
- include: "#bindSignature"
937
- }
938
- ]
939
- },
940
- {
941
- begin: "(?=[[:upper:]])",
942
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
943
- patterns: [
944
- {
945
- include: "#bindStructure"
946
- }
947
- ]
948
- }
949
- ]
950
- },
951
- declOpen: {
952
- begin: "\\bopen\\b",
953
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
954
- beginCaptures: {
955
- "0": {
956
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
957
- }
958
- },
959
- endCaptures: {
960
- "0": {
961
- name: "punctuation.definition.tag"
962
- }
963
- },
964
- patterns: [
965
- {
966
- include: "#attributeIdentifier"
967
- },
968
- {
969
- include: "#comment"
970
- },
971
- {
972
- include: "#pragma"
973
- },
974
- {
975
- include: "#pathModuleExtended"
976
- }
977
- ]
978
- },
979
- declTerm: {
980
- begin: "\\b(?:(external|val)|(method)|(let))\\b(!?)",
981
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
982
- beginCaptures: {
983
- "1": {
984
- name: "support.type markup.underline"
985
- },
986
- "2": {
987
- name: "storage.type markup.underline"
988
- },
989
- "3": {
990
- name: "keyword.control markup.underline"
991
- },
992
- "4": {
993
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
994
- }
995
- },
996
- endCaptures: {
997
- "0": {
998
- name: "punctuation.definition.tag"
999
- }
1000
- },
1001
- patterns: [
1002
- {
1003
- include: "#comment"
1004
- },
1005
- {
1006
- include: "#pragma"
1007
- },
1008
- {
1009
- include: "#bindTerm"
1010
- }
1011
- ]
1012
- },
1013
- declType: {
1014
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))|\\btype\\b",
1015
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1016
- beginCaptures: {
1017
- "0": {
1018
- name: "keyword markup.underline"
1019
- }
1020
- },
1021
- endCaptures: {
1022
- "0": {
1023
- name: "punctuation.definition.tag"
1024
- }
1025
- },
1026
- patterns: [
1027
- {
1028
- include: "#comment"
1029
- },
1030
- {
1031
- include: "#pragma"
1032
- },
1033
- {
1034
- include: "#bindType"
1035
- }
1036
- ]
1037
- },
1038
- extension: {
1039
- begin: "(\\[)((?<![#\\-:!?.@*/&%^+<=>|~$])%{1,3}(?![#\\-:!?.@*/&%^+<=>|~$]))",
1040
- end: "\\]",
1041
- beginCaptures: {
1042
- "1": {
1043
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1044
- },
1045
- "2": {
1046
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1047
- }
1048
- },
1049
- endCaptures: {
1050
- "0": {
1051
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1052
- }
1053
- },
1054
- patterns: [
1055
- {
1056
- include: "#attributePayload"
1057
- }
1058
- ]
1059
- },
1060
- literal: {
1061
- patterns: [
1062
- {
1063
- include: "#termConstructor"
1064
- },
1065
- {
1066
- include: "#literalArray"
1067
- },
1068
- {
1069
- include: "#literalBoolean"
1070
- },
1071
- {
1072
- include: "#literalCharacter"
1073
- },
1074
- {
1075
- include: "#literalList"
1076
- },
1077
- {
1078
- include: "#literalNumber"
1079
- },
1080
- {
1081
- include: "#literalObjectTerm"
1082
- },
1083
- {
1084
- include: "#literalString"
1085
- },
1086
- {
1087
- include: "#literalRecord"
1088
- },
1089
- {
1090
- include: "#literalUnit"
1091
- }
1092
- ]
1093
- },
1094
- literalArray: {
1095
- begin: "\\[\\|",
1096
- end: "\\|\\]",
1097
- captures: {
1098
- "0": {
1099
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1100
- }
1101
- },
1102
- patterns: [
1103
- {
1104
- include: "#term"
1105
- }
1106
- ]
1107
- },
1108
- literalBoolean: {
1109
- match: "\\bfalse|true\\b",
1110
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1111
- },
1112
- literalCharacter: {
1113
- begin: "(?<![[:word:]])'",
1114
- end: "'",
1115
- name: "markup.punctuation.quote.beginning",
1116
- patterns: [
1117
- {
1118
- include: "#literalCharacterEscape"
1119
- }
1120
- ]
1121
- },
1122
- literalCharacterEscape: {
1123
- match: "\\\\(?:[\\\\\"'ntbr]|[[:digit:]][[:digit:]][[:digit:]]|x[[:xdigit:]][[:xdigit:]]|o[0-3][0-7][0-7])"
1124
- },
1125
- literalClassType: {
1126
- patterns: [
1127
- {
1128
- include: "#comment"
1129
- },
1130
- {
1131
- begin: "\\bobject\\b",
1132
- end: "\\bend\\b",
1133
- captures: {
1134
- "0": {
1135
- name: "punctuation.definition.tag emphasis"
1136
- }
1137
- },
1138
- patterns: [
1139
- {
1140
- begin: "\\binherit\\b",
1141
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1142
- beginCaptures: {
1143
- "0": {
1144
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1145
- }
1146
- },
1147
- endCaptures: {
1148
- "0": {
1149
- name: "punctuation.definition.tag"
1150
- }
1151
- },
1152
- patterns: [
1153
- {
1154
- begin: "\\bas\\b",
1155
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1156
- beginCaptures: {
1157
- "0": {
1158
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1159
- }
1160
- },
1161
- patterns: [
1162
- {
1163
- include: "#variablePattern"
1164
- }
1165
- ]
1166
- },
1167
- {
1168
- include: "#type"
1169
- }
1170
- ]
1171
- },
1172
- {
1173
- include: "#pattern"
1174
- },
1175
- {
1176
- include: "#declTerm"
1177
- }
1178
- ]
1179
- },
1180
- {
1181
- begin: "\\[",
1182
- end: "\\]"
1183
- }
1184
- ]
1185
- },
1186
- literalList: {
1187
- patterns: [
1188
- {
1189
- begin: "\\[",
1190
- end: "\\]",
1191
- captures: {
1192
- "0": {
1193
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1194
- }
1195
- },
1196
- patterns: [
1197
- {
1198
- include: "#term"
1199
- }
1200
- ]
1201
- }
1202
- ]
1203
- },
1204
- literalNumber: {
1205
- match: "(?<![[:alpha:]])[[:digit:]][[:digit:]]*(\\.[[:digit:]][[:digit:]]*)?",
1206
- name: "constant.numeric"
1207
- },
1208
- literalObjectTerm: {
1209
- patterns: [
1210
- {
1211
- include: "#comment"
1212
- },
1213
- {
1214
- begin: "\\bobject\\b",
1215
- end: "\\bend\\b",
1216
- captures: {
1217
- "0": {
1218
- name: "punctuation.definition.tag emphasis"
1219
- }
1220
- },
1221
- patterns: [
1222
- {
1223
- begin: "\\binherit\\b",
1224
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1225
- beginCaptures: {
1226
- "0": {
1227
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1228
- }
1229
- },
1230
- endCaptures: {
1231
- "0": {
1232
- name: "punctuation.definition.tag"
1233
- }
1234
- },
1235
- patterns: [
1236
- {
1237
- begin: "\\bas\\b",
1238
- end: ";;|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1239
- beginCaptures: {
1240
- "0": {
1241
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1242
- }
1243
- },
1244
- patterns: [
1245
- {
1246
- include: "#variablePattern"
1247
- }
1248
- ]
1249
- },
1250
- {
1251
- include: "#term"
1252
- }
1253
- ]
1254
- },
1255
- {
1256
- include: "#pattern"
1257
- },
1258
- {
1259
- include: "#declTerm"
1260
- }
1261
- ]
1262
- },
1263
- {
1264
- begin: "\\[",
1265
- end: "\\]"
1266
- }
1267
- ]
1268
- },
1269
- literalRecord: {
1270
- begin: "\\{",
1271
- end: "\\}",
1272
- captures: {
1273
- "0": {
1274
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong strong"
1275
- }
1276
- },
1277
- patterns: [
1278
- {
1279
- begin: "(?<=\\{|;)",
1280
- end: "(:)|(=)|(;)|(with)|(?=\\})",
1281
- endCaptures: {
1282
- "1": {
1283
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1284
- },
1285
- "2": {
1286
- name: "support.type strong"
1287
- },
1288
- "3": {
1289
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1290
- },
1291
- "4": {
1292
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1293
- }
1294
- },
1295
- patterns: [
1296
- {
1297
- include: "#comment"
1298
- },
1299
- {
1300
- include: "#pathModulePrefixSimple"
1301
- },
1302
- {
1303
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
1304
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
1305
- }
1306
- ]
1307
- },
1308
- {
1309
- begin: "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
1310
- end: "(:)|(=)|(;)|(?=\\})",
1311
- endCaptures: {
1312
- "1": {
1313
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1314
- },
1315
- "2": {
1316
- name: "support.type strong"
1317
- },
1318
- "3": {
1319
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1320
- }
1321
- },
1322
- patterns: [
1323
- {
1324
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
1325
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
1326
- }
1327
- ]
1328
- },
1329
- {
1330
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1331
- end: "(;)|(=)|(?=\\})",
1332
- endCaptures: {
1333
- "1": {
1334
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1335
- },
1336
- "2": {
1337
- name: "support.type strong"
1338
- }
1339
- },
1340
- patterns: [
1341
- {
1342
- include: "#type"
1343
- }
1344
- ]
1345
- },
1346
- {
1347
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1348
- end: ";|(?=\\})",
1349
- endCaptures: {
1350
- "0": {
1351
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1352
- }
1353
- },
1354
- patterns: [
1355
- {
1356
- include: "#term"
1357
- }
1358
- ]
1359
- }
1360
- ]
1361
- },
1362
- literalString: {
1363
- patterns: [
1364
- {
1365
- begin: "\"",
1366
- end: "\"",
1367
- name: "string beginning.punctuation.definition.quote.markdown",
1368
- patterns: [
1369
- {
1370
- include: "#literalStringEscape"
1371
- }
1372
- ]
1373
- },
1374
- {
1375
- begin: "(\\{)([_[:lower:]]*?)(\\|)",
1376
- end: "(\\|)(\\2)(\\})",
1377
- name: "string beginning.punctuation.definition.quote.markdown",
1378
- patterns: [
1379
- {
1380
- include: "#literalStringEscape"
1381
- }
1382
- ]
1383
- }
1384
- ]
1385
- },
1386
- literalStringEscape: {
1387
- match: "\\\\(?:[\\\\\"ntbr]|[[:digit:]][[:digit:]][[:digit:]]|x[[:xdigit:]][[:xdigit:]]|o[0-3][0-7][0-7])"
1388
- },
1389
- literalUnit: {
1390
- match: "\\(\\)",
1391
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1392
- },
1393
- pathModuleExtended: {
1394
- patterns: [
1395
- {
1396
- include: "#pathModulePrefixExtended"
1397
- },
1398
- {
1399
- match: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
1400
- name: "entity.name.class constant.numeric"
1401
- }
1402
- ]
1403
- },
1404
- pathModulePrefixExtended: {
1405
- begin: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.|$|\\()",
1406
- end: "(?![[:space:]\\.]|$|\\()",
1407
- beginCaptures: {
1408
- "0": {
1409
- name: "entity.name.class constant.numeric"
1410
- }
1411
- },
1412
- patterns: [
1413
- {
1414
- include: "#comment"
1415
- },
1416
- {
1417
- begin: "\\(",
1418
- end: "\\)",
1419
- captures: {
1420
- "0": {
1421
- name: "keyword.control"
1422
- }
1423
- },
1424
- patterns: [
1425
- {
1426
- match: "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))",
1427
- name: "string.other.link variable.language variable.parameter emphasis"
1428
- },
1429
- {
1430
- include: "#structure"
1431
- }
1432
- ]
1433
- },
1434
- {
1435
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$])",
1436
- end: "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.|$))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*(?:$|\\()))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))|(?![[:space:]\\.[:upper:]]|$|\\()",
1437
- beginCaptures: {
1438
- "0": {
1439
- name: "keyword strong"
1440
- }
1441
- },
1442
- endCaptures: {
1443
- "1": {
1444
- name: "entity.name.class constant.numeric"
1445
- },
1446
- "2": {
1447
- name: "entity.name.function strong"
1448
- },
1449
- "3": {
1450
- name: "string.other.link variable.language variable.parameter emphasis"
1451
- }
1452
- }
1453
- }
1454
- ]
1455
- },
1456
- pathModulePrefixExtendedParens: {
1457
- begin: "\\(",
1458
- end: "\\)",
1459
- captures: {
1460
- "0": {
1461
- name: "keyword.control"
1462
- }
1463
- },
1464
- patterns: [
1465
- {
1466
- match: "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))",
1467
- name: "string.other.link variable.language variable.parameter emphasis"
1468
- },
1469
- {
1470
- include: "#structure"
1471
- }
1472
- ]
1473
- },
1474
- pathModulePrefixSimple: {
1475
- begin: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.)",
1476
- end: "(?![[:space:]\\.])",
1477
- beginCaptures: {
1478
- "0": {
1479
- name: "entity.name.class constant.numeric"
1480
- }
1481
- },
1482
- patterns: [
1483
- {
1484
- include: "#comment"
1485
- },
1486
- {
1487
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$])",
1488
- end: "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*))|(?![[:space:]\\.[:upper:]])",
1489
- beginCaptures: {
1490
- "0": {
1491
- name: "keyword strong"
1492
- }
1493
- },
1494
- endCaptures: {
1495
- "1": {
1496
- name: "entity.name.class constant.numeric"
1497
- },
1498
- "2": {
1499
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1500
- }
1501
- }
1502
- }
1503
- ]
1504
- },
1505
- pathModuleSimple: {
1506
- patterns: [
1507
- {
1508
- include: "#pathModulePrefixSimple"
1509
- },
1510
- {
1511
- match: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
1512
- name: "entity.name.class constant.numeric"
1513
- }
1514
- ]
1515
- },
1516
- pathRecord: {
1517
- patterns: [
1518
- {
1519
- begin: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
1520
- end: "(?=[^[:space:]\\.])(?!\\(\\*)",
1521
- patterns: [
1522
- {
1523
- include: "#comment"
1524
- },
1525
- {
1526
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\.|^\\.))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$])",
1527
- end: "((?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$]))|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|mutable|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?<=\\))|(?<=\\])",
1528
- beginCaptures: {
1529
- "0": {
1530
- name: "keyword strong"
1531
- }
1532
- },
1533
- endCaptures: {
1534
- "1": {
1535
- name: "keyword strong"
1536
- },
1537
- "2": {
1538
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
1539
- }
1540
- },
1541
- patterns: [
1542
- {
1543
- include: "#comment"
1544
- },
1545
- {
1546
- include: "#pathModulePrefixSimple"
1547
- },
1548
- {
1549
- begin: "\\((?!\\*)",
1550
- end: "\\)",
1551
- captures: {
1552
- "0": {
1553
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1554
- }
1555
- },
1556
- patterns: [
1557
- {
1558
- include: "#term"
1559
- }
1560
- ]
1561
- },
1562
- {
1563
- begin: "\\[",
1564
- end: "\\]",
1565
- captures: {
1566
- "0": {
1567
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1568
- }
1569
- },
1570
- patterns: [
1571
- {
1572
- include: "#pattern"
1573
- }
1574
- ]
1575
- }
1576
- ]
1577
- }
1578
- ]
1579
- }
1580
- ]
1581
- },
1582
- pattern: {
1583
- patterns: [
1584
- {
1585
- include: "#comment"
1586
- },
1587
- {
1588
- include: "#patternArray"
1589
- },
1590
- {
1591
- include: "#patternLazy"
1592
- },
1593
- {
1594
- include: "#patternList"
1595
- },
1596
- {
1597
- include: "#patternMisc"
1598
- },
1599
- {
1600
- include: "#patternModule"
1601
- },
1602
- {
1603
- include: "#patternRecord"
1604
- },
1605
- {
1606
- include: "#literal"
1607
- },
1608
- {
1609
- include: "#patternParens"
1610
- },
1611
- {
1612
- include: "#patternType"
1613
- },
1614
- {
1615
- include: "#variablePattern"
1616
- },
1617
- {
1618
- include: "#termOperator"
1619
- }
1620
- ]
1621
- },
1622
- patternArray: {
1623
- begin: "\\[\\|",
1624
- end: "\\|\\]",
1625
- captures: {
1626
- "0": {
1627
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1628
- }
1629
- },
1630
- patterns: [
1631
- {
1632
- include: "#pattern"
1633
- }
1634
- ]
1635
- },
1636
- patternLazy: {
1637
- match: "lazy",
1638
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1639
- },
1640
- patternList: {
1641
- begin: "\\[",
1642
- end: "\\]",
1643
- captures: {
1644
- "0": {
1645
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1646
- }
1647
- },
1648
- patterns: [
1649
- {
1650
- include: "#pattern"
1651
- }
1652
- ]
1653
- },
1654
- patternMisc: {
1655
- match: "((?<![#\\-:!?.@*/&%^+<=>|~$]),(?![#\\-:!?.@*/&%^+<=>|~$]))|([#\\-:!?.@*/&%^+<=>|~$]+)|\\b(as)\\b",
1656
- captures: {
1657
- "1": {
1658
- name: "string.regexp strong"
1659
- },
1660
- "2": {
1661
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1662
- },
1663
- "3": {
1664
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1665
- }
1666
- }
1667
- },
1668
- patternModule: {
1669
- begin: "\\bmodule\\b",
1670
- end: "(?=\\))",
1671
- beginCaptures: {
1672
- "0": {
1673
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
1674
- }
1675
- },
1676
- patterns: [
1677
- {
1678
- include: "#declModule"
1679
- }
1680
- ]
1681
- },
1682
- patternParens: {
1683
- begin: "\\((?!\\))",
1684
- end: "\\)",
1685
- captures: {
1686
- "0": {
1687
- name: "punctuation.definition.tag"
1688
- }
1689
- },
1690
- patterns: [
1691
- {
1692
- include: "#comment"
1693
- },
1694
- {
1695
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$]):(?![#\\-:!?.@*/&%^+<=>|~$])",
1696
- end: "(?=\\))",
1697
- beginCaptures: {
1698
- "0": {
1699
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1700
- }
1701
- },
1702
- patterns: [
1703
- {
1704
- include: "#type"
1705
- }
1706
- ]
1707
- },
1708
- {
1709
- include: "#pattern"
1710
- }
1711
- ]
1712
- },
1713
- patternRecord: {
1714
- begin: "\\{",
1715
- end: "\\}",
1716
- captures: {
1717
- "0": {
1718
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong strong"
1719
- }
1720
- },
1721
- patterns: [
1722
- {
1723
- begin: "(?<=\\{|;)",
1724
- end: "(:)|(=)|(;)|(with)|(?=\\})",
1725
- endCaptures: {
1726
- "1": {
1727
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1728
- },
1729
- "2": {
1730
- name: "support.type strong"
1731
- },
1732
- "3": {
1733
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1734
- },
1735
- "4": {
1736
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1737
- }
1738
- },
1739
- patterns: [
1740
- {
1741
- include: "#comment"
1742
- },
1743
- {
1744
- include: "#pathModulePrefixSimple"
1745
- },
1746
- {
1747
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
1748
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
1749
- }
1750
- ]
1751
- },
1752
- {
1753
- begin: "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
1754
- end: "(:)|(=)|(;)|(?=\\})",
1755
- endCaptures: {
1756
- "1": {
1757
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1758
- },
1759
- "2": {
1760
- name: "support.type strong"
1761
- },
1762
- "3": {
1763
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1764
- }
1765
- },
1766
- patterns: [
1767
- {
1768
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
1769
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
1770
- }
1771
- ]
1772
- },
1773
- {
1774
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1775
- end: "(;)|(=)|(?=\\})",
1776
- endCaptures: {
1777
- "1": {
1778
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1779
- },
1780
- "2": {
1781
- name: "support.type strong"
1782
- }
1783
- },
1784
- patterns: [
1785
- {
1786
- include: "#type"
1787
- }
1788
- ]
1789
- },
1790
- {
1791
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1792
- end: ";|(?=\\})",
1793
- endCaptures: {
1794
- "0": {
1795
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
1796
- }
1797
- },
1798
- patterns: [
1799
- {
1800
- include: "#pattern"
1801
- }
1802
- ]
1803
- }
1804
- ]
1805
- },
1806
- patternType: {
1807
- begin: "\\btype\\b",
1808
- end: "(?=\\))",
1809
- beginCaptures: {
1810
- "0": {
1811
- name: "keyword"
1812
- }
1813
- },
1814
- patterns: [
1815
- {
1816
- include: "#declType"
1817
- }
1818
- ]
1819
- },
1820
- pragma: {
1821
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$])#(?![#\\-:!?.@*/&%^+<=>|~$])",
1822
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1823
- beginCaptures: {
1824
- "0": {
1825
- name: "punctuation.definition.tag"
1826
- }
1827
- },
1828
- patterns: [
1829
- {
1830
- include: "#comment"
1831
- },
1832
- {
1833
- include: "#literalNumber"
1834
- },
1835
- {
1836
- include: "#literalString"
1837
- }
1838
- ]
1839
- },
1840
- signature: {
1841
- patterns: [
1842
- {
1843
- include: "#comment"
1844
- },
1845
- {
1846
- include: "#signatureLiteral"
1847
- },
1848
- {
1849
- include: "#signatureFunctor"
1850
- },
1851
- {
1852
- include: "#pathModuleExtended"
1853
- },
1854
- {
1855
- include: "#signatureParens"
1856
- },
1857
- {
1858
- include: "#signatureRecovered"
1859
- },
1860
- {
1861
- include: "#signatureConstraints"
1862
- }
1863
- ]
1864
- },
1865
- signatureConstraints: {
1866
- begin: "\\bwith\\b",
1867
- end: "(?=\\))|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1868
- beginCaptures: {
1869
- "0": {
1870
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
1871
- }
1872
- },
1873
- patterns: [
1874
- {
1875
- begin: "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
1876
- end: "\\b(?:(module)|(type))\\b",
1877
- endCaptures: {
1878
- "1": {
1879
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
1880
- },
1881
- "2": {
1882
- name: "keyword"
1883
- }
1884
- }
1885
- },
1886
- {
1887
- include: "#declModule"
1888
- },
1889
- {
1890
- include: "#declType"
1891
- }
1892
- ]
1893
- },
1894
- signatureFunctor: {
1895
- patterns: [
1896
- {
1897
- begin: "\\bfunctor\\b",
1898
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1899
- beginCaptures: {
1900
- "0": {
1901
- name: "keyword"
1902
- }
1903
- },
1904
- patterns: [
1905
- {
1906
- begin: "(?:(?<=(?:[^[:word:]]functor|^functor))(?![[:word:]]))",
1907
- end: "(\\(\\))|(\\((?!\\)))",
1908
- endCaptures: {
1909
- "1": {
1910
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
1911
- },
1912
- "2": {
1913
- name: "punctuation.definition.tag"
1914
- }
1915
- }
1916
- },
1917
- {
1918
- begin: "(?<=\\()",
1919
- end: "(:)|(\\))",
1920
- endCaptures: {
1921
- "1": {
1922
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
1923
- },
1924
- "2": {
1925
- name: "punctuation.definition.tag"
1926
- }
1927
- },
1928
- patterns: [
1929
- {
1930
- include: "#variableModule"
1931
- }
1932
- ]
1933
- },
1934
- {
1935
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1936
- end: "\\)",
1937
- endCaptures: {
1938
- "0": {
1939
- name: "punctuation.definition.tag"
1940
- }
1941
- },
1942
- patterns: [
1943
- {
1944
- include: "#signature"
1945
- }
1946
- ]
1947
- },
1948
- {
1949
- begin: "(?<=\\))",
1950
- end: "(\\()|((?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$]))",
1951
- endCaptures: {
1952
- "1": {
1953
- name: "punctuation.definition.tag"
1954
- },
1955
- "2": {
1956
- name: "support.type strong"
1957
- }
1958
- }
1959
- },
1960
- {
1961
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))",
1962
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
1963
- patterns: [
1964
- {
1965
- include: "#signature"
1966
- }
1967
- ]
1968
- }
1969
- ]
1970
- },
1971
- {
1972
- match: "(?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$])",
1973
- name: "support.type strong"
1974
- }
1975
- ]
1976
- },
1977
- signatureLiteral: {
1978
- begin: "\\bsig\\b",
1979
- end: "\\bend\\b",
1980
- captures: {
1981
- "0": {
1982
- name: "punctuation.definition.tag emphasis"
1983
- }
1984
- },
1985
- patterns: [
1986
- {
1987
- include: "#comment"
1988
- },
1989
- {
1990
- include: "#pragma"
1991
- },
1992
- {
1993
- include: "#decl"
1994
- }
1995
- ]
1996
- },
1997
- signatureParens: {
1998
- begin: "\\((?!\\))",
1999
- end: "\\)",
2000
- captures: {
2001
- "0": {
2002
- name: "punctuation.definition.tag"
2003
- }
2004
- },
2005
- patterns: [
2006
- {
2007
- include: "#comment"
2008
- },
2009
- {
2010
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$]):(?![#\\-:!?.@*/&%^+<=>|~$])",
2011
- end: "(?=\\))",
2012
- beginCaptures: {
2013
- "0": {
2014
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2015
- }
2016
- },
2017
- patterns: [
2018
- {
2019
- include: "#signature"
2020
- }
2021
- ]
2022
- },
2023
- {
2024
- include: "#signature"
2025
- }
2026
- ]
2027
- },
2028
- signatureRecovered: {
2029
- patterns: [
2030
- {
2031
- begin: "\\(|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]include|^include|[^[:word:]]open|^open))(?![[:word:]]))",
2032
- end: "\\bmodule\\b|(?!$|[[:space:]]|\\bmodule\\b)",
2033
- endCaptures: {
2034
- "0": {
2035
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
2036
- }
2037
- }
2038
- },
2039
- {
2040
- begin: "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
2041
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2042
- patterns: [
2043
- {
2044
- begin: "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
2045
- end: "\\btype\\b",
2046
- endCaptures: {
2047
- "0": {
2048
- name: "keyword"
2049
- }
2050
- }
2051
- },
2052
- {
2053
- begin: "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
2054
- end: "\\bof\\b",
2055
- endCaptures: {
2056
- "0": {
2057
- name: "punctuation.definition.tag"
2058
- }
2059
- }
2060
- },
2061
- {
2062
- begin: "(?:(?<=(?:[^[:word:]]of|^of))(?![[:word:]]))",
2063
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2064
- patterns: [
2065
- {
2066
- include: "#signature"
2067
- }
2068
- ]
2069
- }
2070
- ]
2071
- }
2072
- ]
2073
- },
2074
- structure: {
2075
- patterns: [
2076
- {
2077
- include: "#comment"
2078
- },
2079
- {
2080
- include: "#structureLiteral"
2081
- },
2082
- {
2083
- include: "#structureFunctor"
2084
- },
2085
- {
2086
- include: "#pathModuleExtended"
2087
- },
2088
- {
2089
- include: "#structureParens"
2090
- }
2091
- ]
2092
- },
2093
- structureFunctor: {
2094
- patterns: [
2095
- {
2096
- begin: "\\bfunctor\\b",
2097
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2098
- beginCaptures: {
2099
- "0": {
2100
- name: "keyword"
2101
- }
2102
- },
2103
- patterns: [
2104
- {
2105
- begin: "(?:(?<=(?:[^[:word:]]functor|^functor))(?![[:word:]]))",
2106
- end: "(\\(\\))|(\\((?!\\)))",
2107
- endCaptures: {
2108
- "1": {
2109
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
2110
- },
2111
- "2": {
2112
- name: "punctuation.definition.tag"
2113
- }
2114
- }
2115
- },
2116
- {
2117
- begin: "(?<=\\()",
2118
- end: "(:)|(\\))",
2119
- endCaptures: {
2120
- "1": {
2121
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2122
- },
2123
- "2": {
2124
- name: "punctuation.definition.tag"
2125
- }
2126
- },
2127
- patterns: [
2128
- {
2129
- include: "#variableModule"
2130
- }
2131
- ]
2132
- },
2133
- {
2134
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2135
- end: "\\)",
2136
- endCaptures: {
2137
- "0": {
2138
- name: "punctuation.definition.tag"
2139
- }
2140
- },
2141
- patterns: [
2142
- {
2143
- include: "#signature"
2144
- }
2145
- ]
2146
- },
2147
- {
2148
- begin: "(?<=\\))",
2149
- end: "(\\()|((?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$]))",
2150
- endCaptures: {
2151
- "1": {
2152
- name: "punctuation.definition.tag"
2153
- },
2154
- "2": {
2155
- name: "support.type strong"
2156
- }
2157
- }
2158
- },
2159
- {
2160
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2161
- end: "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2162
- patterns: [
2163
- {
2164
- include: "#structure"
2165
- }
2166
- ]
2167
- }
2168
- ]
2169
- },
2170
- {
2171
- match: "(?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$])",
2172
- name: "support.type strong"
2173
- }
2174
- ]
2175
- },
2176
- structureLiteral: {
2177
- begin: "\\bstruct\\b",
2178
- end: "\\bend\\b",
2179
- captures: {
2180
- "0": {
2181
- name: "punctuation.definition.tag emphasis"
2182
- }
2183
- },
2184
- patterns: [
2185
- {
2186
- include: "#comment"
2187
- },
2188
- {
2189
- include: "#pragma"
2190
- },
2191
- {
2192
- include: "#decl"
2193
- }
2194
- ]
2195
- },
2196
- structureParens: {
2197
- begin: "\\(",
2198
- end: "\\)",
2199
- captures: {
2200
- "0": {
2201
- name: "punctuation.definition.tag"
2202
- }
2203
- },
2204
- patterns: [
2205
- {
2206
- include: "#structureUnpack"
2207
- },
2208
- {
2209
- include: "#structure"
2210
- }
2211
- ]
2212
- },
2213
- structureUnpack: {
2214
- begin: "\\bval\\b",
2215
- end: "(?=\\))",
2216
- beginCaptures: {
2217
- "0": {
2218
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2219
- }
2220
- }
2221
- },
2222
- term: {
2223
- patterns: [
2224
- {
2225
- include: "#termLet"
2226
- },
2227
- {
2228
- include: "#termAtomic"
2229
- }
2230
- ]
2231
- },
2232
- termAtomic: {
2233
- patterns: [
2234
- {
2235
- include: "#comment"
2236
- },
2237
- {
2238
- include: "#termConditional"
2239
- },
2240
- {
2241
- include: "#termConstructor"
2242
- },
2243
- {
2244
- include: "#termDelim"
2245
- },
2246
- {
2247
- include: "#termFor"
2248
- },
2249
- {
2250
- include: "#termFunction"
2251
- },
2252
- {
2253
- include: "#literal"
2254
- },
2255
- {
2256
- include: "#termMatch"
2257
- },
2258
- {
2259
- include: "#termMatchRule"
2260
- },
2261
- {
2262
- include: "#termPun"
2263
- },
2264
- {
2265
- include: "#termOperator"
2266
- },
2267
- {
2268
- include: "#termTry"
2269
- },
2270
- {
2271
- include: "#termWhile"
2272
- },
2273
- {
2274
- include: "#pathRecord"
2275
- }
2276
- ]
2277
- },
2278
- termConditional: {
2279
- match: "\\b(?:if|then|else)\\b",
2280
- name: "keyword.control"
2281
- },
2282
- termConstructor: {
2283
- patterns: [
2284
- {
2285
- include: "#pathModulePrefixSimple"
2286
- },
2287
- {
2288
- match: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
2289
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong"
2290
- }
2291
- ]
2292
- },
2293
- termDelim: {
2294
- patterns: [
2295
- {
2296
- begin: "\\((?!\\))",
2297
- end: "\\)",
2298
- captures: {
2299
- "0": {
2300
- name: "punctuation.definition.tag"
2301
- }
2302
- },
2303
- patterns: [
2304
- {
2305
- include: "#term"
2306
- }
2307
- ]
2308
- },
2309
- {
2310
- begin: "\\bbegin\\b",
2311
- end: "\\bend\\b",
2312
- captures: {
2313
- "0": {
2314
- name: "punctuation.definition.tag"
2315
- }
2316
- },
2317
- patterns: [
2318
- {
2319
- include: "#attributeIdentifier"
2320
- },
2321
- {
2322
- include: "#term"
2323
- }
2324
- ]
2325
- }
2326
- ]
2327
- },
2328
- termFor: {
2329
- patterns: [
2330
- {
2331
- begin: "\\bfor\\b",
2332
- end: "\\bdone\\b",
2333
- beginCaptures: {
2334
- "0": {
2335
- name: "keyword.control"
2336
- }
2337
- },
2338
- endCaptures: {
2339
- "0": {
2340
- name: "keyword.control"
2341
- }
2342
- },
2343
- patterns: [
2344
- {
2345
- begin: "(?:(?<=(?:[^[:word:]]for|^for))(?![[:word:]]))",
2346
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])",
2347
- endCaptures: {
2348
- "0": {
2349
- name: "support.type strong"
2350
- }
2351
- },
2352
- patterns: [
2353
- {
2354
- include: "#pattern"
2355
- }
2356
- ]
2357
- },
2358
- {
2359
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2360
- end: "\\b(?:downto|to)\\b",
2361
- endCaptures: {
2362
- "0": {
2363
- name: "keyword.control"
2364
- }
2365
- },
2366
- patterns: [
2367
- {
2368
- include: "#term"
2369
- }
2370
- ]
2371
- },
2372
- {
2373
- begin: "(?:(?<=(?:[^[:word:]]to|^to))(?![[:word:]]))",
2374
- end: "\\bdo\\b",
2375
- endCaptures: {
2376
- "0": {
2377
- name: "keyword.control"
2378
- }
2379
- },
2380
- patterns: [
2381
- {
2382
- include: "#term"
2383
- }
2384
- ]
2385
- },
2386
- {
2387
- begin: "(?:(?<=(?:[^[:word:]]do|^do))(?![[:word:]]))",
2388
- end: "(?=\\bdone\\b)",
2389
- patterns: [
2390
- {
2391
- include: "#term"
2392
- }
2393
- ]
2394
- }
2395
- ]
2396
- }
2397
- ]
2398
- },
2399
- termFunction: {
2400
- match: "\\b(?:(fun)|(function))\\b",
2401
- captures: {
2402
- "1": {
2403
- name: "storage.type"
2404
- },
2405
- "2": {
2406
- name: "storage.type"
2407
- }
2408
- }
2409
- },
2410
- termLet: {
2411
- patterns: [
2412
- {
2413
- begin: "(?:(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?<=;|\\())(?=[[:space:]]|\\blet\\b)|(?:(?<=(?:[^[:word:]]begin|^begin|[^[:word:]]do|^do|[^[:word:]]else|^else|[^[:word:]]in|^in|[^[:word:]]struct|^struct|[^[:word:]]then|^then|[^[:word:]]try|^try))(?![[:word:]]))|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]@@|^@@))(?![#\\-:!?.@*/&%^+<=>|~$]))[[:space:]]+",
2414
- end: "\\b(?:(and)|(let))\\b|(?=[^[:space:]])(?!\\(\\*)",
2415
- endCaptures: {
2416
- "1": {
2417
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
2418
- },
2419
- "2": {
2420
- name: "storage.type markup.underline"
2421
- }
2422
- },
2423
- patterns: [
2424
- {
2425
- include: "#comment"
2426
- }
2427
- ]
2428
- },
2429
- {
2430
- begin: "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]let|^let))(?![[:word:]]))|(let)",
2431
- end: "\\b(?:(and)|(in))\\b|(?=\\}|\\)|\\]|\\b(?:end|class|exception|external|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2432
- beginCaptures: {
2433
- "1": {
2434
- name: "storage.type markup.underline"
2435
- }
2436
- },
2437
- endCaptures: {
2438
- "1": {
2439
- name: "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
2440
- },
2441
- "2": {
2442
- name: "storage.type markup.underline"
2443
- }
2444
- },
2445
- patterns: [
2446
- {
2447
- include: "#bindTerm"
2448
- }
2449
- ]
2450
- }
2451
- ]
2452
- },
2453
- termMatch: {
2454
- begin: "\\bmatch\\b",
2455
- end: "\\bwith\\b",
2456
- captures: {
2457
- "0": {
2458
- name: "keyword.control"
2459
- }
2460
- },
2461
- patterns: [
2462
- {
2463
- include: "#term"
2464
- }
2465
- ]
2466
- },
2467
- termMatchRule: {
2468
- patterns: [
2469
- {
2470
- begin: "(?:(?<=(?:[^[:word:]]fun|^fun|[^[:word:]]function|^function|[^[:word:]]with|^with))(?![[:word:]]))",
2471
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])(\\|)|(->)(?![#\\-:!?.@*/&%^+<=>|~$])",
2472
- endCaptures: {
2473
- "1": {
2474
- name: "support.type strong"
2475
- },
2476
- "2": {
2477
- name: "support.type strong"
2478
- }
2479
- },
2480
- patterns: [
2481
- {
2482
- include: "#comment"
2483
- },
2484
- {
2485
- include: "#attributeIdentifier"
2486
- },
2487
- {
2488
- include: "#pattern"
2489
- }
2490
- ]
2491
- },
2492
- {
2493
- begin: "(?:(?<=(?:[^\\[#\\-:!?.@*/&%^+<=>|~$]\\||^\\|))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?<![#\\-:!?.@*/&%^+<=>|~$])\\|(?![#\\-:!?.@*/&%^+<=>|~$])",
2494
- end: "(?<![#\\-:!?.@*/&%^+<=>|~$])(\\|)|(->)(?![#\\-:!?.@*/&%^+<=>|~$])",
2495
- beginCaptures: {
2496
- "0": {
2497
- name: "support.type strong"
2498
- }
2499
- },
2500
- endCaptures: {
2501
- "1": {
2502
- name: "support.type strong"
2503
- },
2504
- "2": {
2505
- name: "support.type strong"
2506
- }
2507
- },
2508
- patterns: [
2509
- {
2510
- include: "#pattern"
2511
- },
2512
- {
2513
- begin: "\\bwhen\\b",
2514
- end: "(?=(?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$]))",
2515
- beginCaptures: {
2516
- "0": {
2517
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2518
- }
2519
- },
2520
- patterns: [
2521
- {
2522
- include: "#term"
2523
- }
2524
- ]
2525
- }
2526
- ]
2527
- }
2528
- ]
2529
- },
2530
- termOperator: {
2531
- patterns: [
2532
- {
2533
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$])#(?![#\\-:!?.@*/&%^+<=>|~$])",
2534
- end: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
2535
- beginCaptures: {
2536
- "0": {
2537
- name: "keyword"
2538
- }
2539
- },
2540
- endCaptures: {
2541
- "0": {
2542
- name: "entity.name.function"
2543
- }
2544
- }
2545
- },
2546
- {
2547
- match: "<-",
2548
- captures: {
2549
- "0": {
2550
- name: "keyword.control strong"
2551
- }
2552
- }
2553
- },
2554
- {
2555
- match: "(,|[#\\-:!?.@*/&%^+<=>|~$]+)|(;)",
2556
- captures: {
2557
- "1": {
2558
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2559
- },
2560
- "2": {
2561
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2562
- }
2563
- }
2564
- },
2565
- {
2566
- match: "\\b(?:and|assert|asr|land|lazy|lsr|lxor|mod|new|or)\\b",
2567
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2568
- }
2569
- ]
2570
- },
2571
- termPun: {
2572
- begin: "(?<![#\\-:!?.@*/&%^+<=>|~$])\\?|~(?![#\\-:!?.@*/&%^+<=>|~$])",
2573
- end: ":|(?=[^[:space:]:])",
2574
- applyEndPatternLast: true,
2575
- beginCaptures: {
2576
- "0": {
2577
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2578
- }
2579
- },
2580
- endCaptures: {
2581
- "0": {
2582
- name: "keyword"
2583
- }
2584
- },
2585
- patterns: [
2586
- {
2587
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?|[^#\\-:!?.@*/&%^+<=>|~$]~|^~))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2588
- end: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
2589
- endCaptures: {
2590
- "0": {
2591
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
2592
- }
2593
- }
2594
- }
2595
- ]
2596
- },
2597
- termTry: {
2598
- begin: "\\btry\\b",
2599
- end: "\\bwith\\b",
2600
- captures: {
2601
- "0": {
2602
- name: "keyword.control"
2603
- }
2604
- },
2605
- patterns: [
2606
- {
2607
- include: "#term"
2608
- }
2609
- ]
2610
- },
2611
- termWhile: {
2612
- patterns: [
2613
- {
2614
- begin: "\\bwhile\\b",
2615
- end: "\\bdone\\b",
2616
- beginCaptures: {
2617
- "0": {
2618
- name: "keyword.control"
2619
- }
2620
- },
2621
- endCaptures: {
2622
- "0": {
2623
- name: "keyword.control"
2624
- }
2625
- },
2626
- patterns: [
2627
- {
2628
- begin: "(?:(?<=(?:[^[:word:]]while|^while))(?![[:word:]]))",
2629
- end: "\\bdo\\b",
2630
- endCaptures: {
2631
- "0": {
2632
- name: "keyword.control"
2633
- }
2634
- },
2635
- patterns: [
2636
- {
2637
- include: "#term"
2638
- }
2639
- ]
2640
- },
2641
- {
2642
- begin: "(?:(?<=(?:[^[:word:]]do|^do))(?![[:word:]]))",
2643
- end: "(?=\\bdone\\b)",
2644
- patterns: [
2645
- {
2646
- include: "#term"
2647
- }
2648
- ]
2649
- }
2650
- ]
2651
- }
2652
- ]
2653
- },
2654
- type: {
2655
- patterns: [
2656
- {
2657
- include: "#comment"
2658
- },
2659
- {
2660
- match: "\\bnonrec\\b",
2661
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2662
- },
2663
- {
2664
- include: "#pathModulePrefixExtended"
2665
- },
2666
- {
2667
- include: "#typeLabel"
2668
- },
2669
- {
2670
- include: "#typeObject"
2671
- },
2672
- {
2673
- include: "#typeOperator"
2674
- },
2675
- {
2676
- include: "#typeParens"
2677
- },
2678
- {
2679
- include: "#typePolymorphicVariant"
2680
- },
2681
- {
2682
- include: "#typeRecord"
2683
- },
2684
- {
2685
- include: "#typeConstructor"
2686
- }
2687
- ]
2688
- },
2689
- typeConstructor: {
2690
- patterns: [
2691
- {
2692
- begin: "(_)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(')((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?<=[^\\*]\\)|\\])",
2693
- end: "(?=\\((?!\\*)|\\*|:|,|=|\\.|>|-|\\{|\\[|\\+|\\}|\\)|\\]|;|\\|)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))[:space:]*(?!\\(\\*|[[:word:]])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
2694
- beginCaptures: {
2695
- "1": {
2696
- name: "comment constant.regexp meta.separator.markdown"
2697
- },
2698
- "3": {
2699
- name: "string.other.link variable.language variable.parameter emphasis strong emphasis"
2700
- },
2701
- "4": {
2702
- name: "keyword.control emphasis"
2703
- }
2704
- },
2705
- endCaptures: {
2706
- "1": {
2707
- name: "entity.name.function strong"
2708
- }
2709
- },
2710
- patterns: [
2711
- {
2712
- include: "#comment"
2713
- },
2714
- {
2715
- include: "#pathModulePrefixExtended"
2716
- }
2717
- ]
2718
- }
2719
- ]
2720
- },
2721
- typeLabel: {
2722
- patterns: [
2723
- {
2724
- begin: "(\\??)((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))[[:space:]]*((?<![#\\-:!?.@*/&%^+<=>|~$]):(?![#\\-:!?.@*/&%^+<=>|~$]))",
2725
- end: "(?=(?<![#\\-:!?.@*/&%^+<=>|~$])->(?![#\\-:!?.@*/&%^+<=>|~$]))",
2726
- captures: {
2727
- "1": {
2728
- name: "keyword strong emphasis"
2729
- },
2730
- "2": {
2731
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
2732
- },
2733
- "3": {
2734
- name: "keyword"
2735
- }
2736
- },
2737
- patterns: [
2738
- {
2739
- include: "#type"
2740
- }
2741
- ]
2742
- }
2743
- ]
2744
- },
2745
- typeModule: {
2746
- begin: "\\bmodule\\b",
2747
- end: "(?=\\))",
2748
- beginCaptures: {
2749
- "0": {
2750
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename"
2751
- }
2752
- },
2753
- patterns: [
2754
- {
2755
- include: "#pathModuleExtended"
2756
- },
2757
- {
2758
- include: "#signatureConstraints"
2759
- }
2760
- ]
2761
- },
2762
- typeObject: {
2763
- begin: "<",
2764
- end: ">",
2765
- captures: {
2766
- "0": {
2767
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong strong"
2768
- }
2769
- },
2770
- patterns: [
2771
- {
2772
- begin: "(?<=<|;)",
2773
- end: "(:)|(?=>)",
2774
- endCaptures: {
2775
- "1": {
2776
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2777
- },
2778
- "3": {
2779
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2780
- },
2781
- "4": {
2782
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2783
- }
2784
- },
2785
- patterns: [
2786
- {
2787
- include: "#comment"
2788
- },
2789
- {
2790
- include: "#pathModulePrefixSimple"
2791
- },
2792
- {
2793
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
2794
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
2795
- }
2796
- ]
2797
- },
2798
- {
2799
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2800
- end: "(;)|(?=>)",
2801
- endCaptures: {
2802
- "1": {
2803
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2804
- },
2805
- "2": {
2806
- name: "support.type strong"
2807
- }
2808
- },
2809
- patterns: [
2810
- {
2811
- include: "#type"
2812
- }
2813
- ]
2814
- }
2815
- ]
2816
- },
2817
- typeOperator: {
2818
- patterns: [
2819
- {
2820
- match: ",|;|[#\\-:!?.@*/&%^+<=>|~$]+",
2821
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2822
- }
2823
- ]
2824
- },
2825
- typeParens: {
2826
- begin: "\\(",
2827
- end: "\\)",
2828
- captures: {
2829
- "0": {
2830
- name: "punctuation.definition.tag"
2831
- }
2832
- },
2833
- patterns: [
2834
- {
2835
- match: ",",
2836
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2837
- },
2838
- {
2839
- include: "#typeModule"
2840
- },
2841
- {
2842
- include: "#type"
2843
- }
2844
- ]
2845
- },
2846
- typePolymorphicVariant: {
2847
- begin: "\\[",
2848
- end: "\\]",
2849
- patterns: [
2850
- ]
2851
- },
2852
- typeRecord: {
2853
- begin: "\\{",
2854
- end: "\\}",
2855
- captures: {
2856
- "0": {
2857
- name: "constant.language constant.numeric entity.other.attribute-name.id.css strong strong"
2858
- }
2859
- },
2860
- patterns: [
2861
- {
2862
- begin: "(?<=\\{|;)",
2863
- end: "(:)|(=)|(;)|(with)|(?=\\})",
2864
- endCaptures: {
2865
- "1": {
2866
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2867
- },
2868
- "2": {
2869
- name: "support.type strong"
2870
- },
2871
- "3": {
2872
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2873
- },
2874
- "4": {
2875
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2876
- }
2877
- },
2878
- patterns: [
2879
- {
2880
- include: "#comment"
2881
- },
2882
- {
2883
- include: "#pathModulePrefixSimple"
2884
- },
2885
- {
2886
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
2887
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
2888
- }
2889
- ]
2890
- },
2891
- {
2892
- begin: "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
2893
- end: "(:)|(=)|(;)|(?=\\})",
2894
- endCaptures: {
2895
- "1": {
2896
- name: "variable.other.class.js message.error variable.interpolation string.regexp strong"
2897
- },
2898
- "2": {
2899
- name: "support.type strong"
2900
- },
2901
- "3": {
2902
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2903
- }
2904
- },
2905
- patterns: [
2906
- {
2907
- match: "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
2908
- name: "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
2909
- }
2910
- ]
2911
- },
2912
- {
2913
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2914
- end: "(;)|(=)|(?=\\})",
2915
- endCaptures: {
2916
- "1": {
2917
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2918
- },
2919
- "2": {
2920
- name: "support.type strong"
2921
- }
2922
- },
2923
- patterns: [
2924
- {
2925
- include: "#type"
2926
- }
2927
- ]
2928
- },
2929
- {
2930
- begin: "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=))(?![#\\-:!?.@*/&%^+<=>|~$]))",
2931
- end: ";|(?=\\})",
2932
- endCaptures: {
2933
- "0": {
2934
- name: "variable.other.class.js message.error variable.interpolation string.regexp"
2935
- }
2936
- },
2937
- patterns: [
2938
- {
2939
- include: "#type"
2940
- }
2941
- ]
2942
- }
2943
- ]
2944
- },
2945
- variableModule: {
2946
- match: "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
2947
- captures: {
2948
- "0": {
2949
- name: "string.other.link variable.language variable.parameter emphasis"
2950
- }
2951
- }
2952
- },
2953
- variablePattern: {
2954
- match: "(\\b_\\b)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))",
2955
- captures: {
2956
- "1": {
2957
- name: "comment constant.regexp meta.separator.markdown"
2958
- },
2959
- "2": {
2960
- name: "string.other.link variable.language variable.parameter emphasis"
2961
- }
2962
- }
2963
- }
2964
- };
2965
- var information_for_contributors = [
2966
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
2967
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
2968
- "Once accepted there, we are happy to receive an update request."
2969
- ];
2970
- var ocaml = {
2971
- name: name,
2972
- scopeName: scopeName,
2973
- fileTypes: fileTypes,
2974
- patterns: patterns,
2975
- repository: repository,
2976
- information_for_contributors: information_for_contributors
2977
- };
2978
-
2979
- export { ocaml as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };