github-linguist 4.8.8 → 4.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/hint.haskell.json +1123 -0
  3. data/grammars/hint.message.haskell.json +1147 -0
  4. data/grammars/hint.type.haskell.json +1120 -0
  5. data/grammars/source.asn.json +59 -0
  6. data/grammars/source.blitzmax.json +0 -2
  7. data/grammars/source.bsl.json +372 -0
  8. data/grammars/source.c++.json +67 -0
  9. data/grammars/source.c2hs.json +27 -0
  10. data/grammars/source.cabal.json +66 -0
  11. data/grammars/source.coffee.json +6 -5
  12. data/grammars/source.crystal.json +0 -11
  13. data/grammars/source.csound-score.json +3 -3
  14. data/grammars/source.csound.json +51 -15
  15. data/grammars/source.css.json +1 -1
  16. data/grammars/source.css.less.json +9 -5
  17. data/grammars/source.cython.json +42 -193
  18. data/grammars/source.d.json +7 -7
  19. data/grammars/source.elixir.json +2 -2
  20. data/grammars/source.forth.json +0 -2
  21. data/grammars/source.graphql.json +8 -2
  22. data/grammars/source.haskell.json +1089 -323
  23. data/grammars/source.hsc2hs.json +12 -0
  24. data/grammars/source.ideal.json +356 -0
  25. data/grammars/source.java.json +3 -0
  26. data/grammars/source.js.json +262 -131
  27. data/grammars/source.js.jsx.json +848 -256
  28. data/grammars/source.lsl.json +51 -103
  29. data/grammars/source.objc.json +1 -1
  30. data/grammars/source.parrot.pir.json +49 -15
  31. data/grammars/source.pic.json +868 -0
  32. data/grammars/source.purescript.json +114 -90
  33. data/grammars/source.python.json +11 -9
  34. data/grammars/source.regexp.babel.json +1 -1
  35. data/grammars/source.renpy.json +7 -7
  36. data/grammars/source.rexx.json +59 -0
  37. data/grammars/source.sas.json +8 -75
  38. data/grammars/source.sdbl.json +97 -0
  39. data/grammars/source.shell.json +1 -0
  40. data/grammars/source.smali.json +2 -2
  41. data/grammars/source.sqf.json +11 -11
  42. data/grammars/source.stan.json +60 -25
  43. data/grammars/source.tla.json +18 -6
  44. data/grammars/source.toc.json +5 -1
  45. data/grammars/source.ts.json +134 -31
  46. data/grammars/source.tsx.json +134 -31
  47. data/grammars/source.vhdl.json +150 -117
  48. data/grammars/source.viml.json +4 -4
  49. data/grammars/source.xquery.json +23 -5
  50. data/grammars/source.yaml.json +35 -19
  51. data/grammars/text.html.handlebars.json +2 -2
  52. data/grammars/text.html.php.blade.json +1 -1
  53. data/grammars/text.html.twig.json +1 -4
  54. data/grammars/text.html.vue.json +41 -1
  55. data/grammars/text.restructuredtext.json +56 -1
  56. data/grammars/text.roff.json +5089 -0
  57. data/grammars/text.runoff.json +321 -0
  58. data/grammars/text.slim.json +126 -105
  59. data/grammars/text.tex.latex.haskell.json +1335 -21
  60. data/lib/linguist/heuristics.rb +8 -0
  61. data/lib/linguist/languages.json +1 -1
  62. data/lib/linguist/languages.yml +58 -3
  63. data/lib/linguist/samples.json +5257 -76
  64. data/lib/linguist/version.rb +1 -1
  65. metadata +16 -4
  66. data/grammars/source.man.json +0 -53
  67. data/grammars/text.groff.json +0 -113
@@ -0,0 +1,1147 @@
1
+ {
2
+ "fileTypes": [
3
+
4
+ ],
5
+ "scopeName": "hint.message.haskell",
6
+ "macros": {
7
+ "identStartCharClass": "[\\p{Ll}_\\p{Lu}\\p{Lt}]",
8
+ "identCharClass": "[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']",
9
+ "functionNameOne": "[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
10
+ "classNameOne": "[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
11
+ "functionName": "(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
12
+ "className": "[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*",
13
+ "operatorChar": "[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]",
14
+ "operator": "[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+",
15
+ "operatorFun": "(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))",
16
+ "basicChar": "[\\ -\\[\\]-~]",
17
+ "escapeChar": "\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
18
+ "octalChar": "(?:\\\\o[0-7]+)",
19
+ "hexChar": "(?:\\\\x[0-9A-Fa-f]+)",
20
+ "controlChar": "(?:\\^[A-Z@\\[\\]\\\\\\^_])",
21
+ "character": "(?:[\\ -\\[\\]-~]|\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])|(?:\\\\o[0-7]+)|(?:\\\\x[0-9A-Fa-f]+)|(?:\\^[A-Z@\\[\\]\\\\\\^_]))",
22
+ "functionTypeDeclaration": "(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']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][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)))*)",
28
+ "indentChar": "[ \\t]",
29
+ "indentBlockStart": "^([ \\t]*)",
30
+ "indentBlockEnd": "^(?!\\1[ \\t]|[ \\t]*$)",
31
+ "maybeBirdTrack": "^",
32
+ "lb": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))",
33
+ "rb": "(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
34
+ "b": "(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))|(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])))"
35
+ },
36
+ "patterns": [
37
+ {
38
+ "match": "^[^:]*:(.+)$",
39
+ "captures": {
40
+ "1": {
41
+ "patterns": [
42
+ {
43
+ "include": "source.haskell"
44
+ }
45
+ ]
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "begin": "^[^:]*:$",
51
+ "end": "^(?=\\S)",
52
+ "patterns": [
53
+ {
54
+ "include": "source.haskell"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "begin": "‘",
60
+ "end": "’",
61
+ "patterns": [
62
+ {
63
+ "include": "source.haskell"
64
+ }
65
+ ]
66
+ }
67
+ ],
68
+ "repository": {
69
+ "block_comment": {
70
+ "patterns": [
71
+ {
72
+ "name": "comment.block.haddock.haskell",
73
+ "begin": "\\{-\\s*[|^]",
74
+ "end": "-\\}",
75
+ "applyEndPatternLast": 1,
76
+ "beginCaptures": {
77
+ "0": {
78
+ "name": "punctuation.definition.comment.haddock.haskell"
79
+ }
80
+ },
81
+ "endCaptures": {
82
+ "0": {
83
+ "name": "punctuation.definition.comment.haddock.haskell"
84
+ }
85
+ },
86
+ "patterns": [
87
+ {
88
+ "include": "#block_comment"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "name": "comment.block.haskell",
94
+ "begin": "\\{-",
95
+ "end": "-\\}",
96
+ "applyEndPatternLast": 1,
97
+ "beginCaptures": {
98
+ "0": {
99
+ "name": "punctuation.definition.comment.block.start.haskell"
100
+ }
101
+ },
102
+ "endCaptures": {
103
+ "0": {
104
+ "name": "punctuation.definition.comment.block.end.haskell"
105
+ }
106
+ },
107
+ "patterns": [
108
+ {
109
+ "include": "#block_comment"
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ },
115
+ "comments": {
116
+ "patterns": [
117
+ {
118
+ "begin": "(^[ \\t]+)?(?=--+\\s+[|^])",
119
+ "end": "(?!\\G)",
120
+ "beginCaptures": {
121
+ "1": {
122
+ "name": "punctuation.whitespace.comment.leading.haskell"
123
+ }
124
+ },
125
+ "patterns": [
126
+ {
127
+ "name": "comment.line.double-dash.haddock.haskell",
128
+ "begin": "(--+)\\s+([|^])",
129
+ "end": "\\n",
130
+ "beginCaptures": {
131
+ "1": {
132
+ "name": "punctuation.definition.comment.haskell"
133
+ },
134
+ "2": {
135
+ "name": "punctuation.definition.comment.haddock.haskell"
136
+ }
137
+ }
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "begin": "(^[ \\t]+)?(?=--+(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]))",
143
+ "end": "(?!\\G)",
144
+ "beginCaptures": {
145
+ "1": {
146
+ "name": "punctuation.whitespace.comment.leading.haskell"
147
+ }
148
+ },
149
+ "patterns": [
150
+ {
151
+ "name": "comment.line.double-dash.haskell",
152
+ "begin": "--",
153
+ "end": "\\n",
154
+ "beginCaptures": {
155
+ "0": {
156
+ "name": "punctuation.definition.comment.haskell"
157
+ }
158
+ }
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "include": "#block_comment"
164
+ }
165
+ ]
166
+ },
167
+ "characters": {
168
+ "patterns": [
169
+ {
170
+ "match": "\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
171
+ "name": "constant.character.escape.haskell"
172
+ },
173
+ {
174
+ "match": "(?:\\\\o[0-7]+)",
175
+ "name": "constant.character.escape.octal.haskell"
176
+ },
177
+ {
178
+ "match": "(?:\\\\x[0-9A-Fa-f]+)",
179
+ "name": "constant.character.escape.hexadecimal.haskell"
180
+ },
181
+ {
182
+ "match": "(?:\\^[A-Z@\\[\\]\\\\\\^_])",
183
+ "name": "constant.character.escape.control.haskell"
184
+ }
185
+ ]
186
+ },
187
+ "infix_op": {
188
+ "patterns": [
189
+ {
190
+ "name": "entity.name.function.infix.haskell",
191
+ "match": "(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))"
192
+ }
193
+ ]
194
+ },
195
+ "module_exports": {
196
+ "patterns": [
197
+ {
198
+ "name": "meta.declaration.exports.haskell",
199
+ "begin": "\\(",
200
+ "end": "\\)",
201
+ "patterns": [
202
+ {
203
+ "include": "#comments"
204
+ },
205
+ {
206
+ "include": "#function_name"
207
+ },
208
+ {
209
+ "include": "#type_name"
210
+ },
211
+ {
212
+ "include": "#comma"
213
+ },
214
+ {
215
+ "name": "meta.other.constructor-list.haskell",
216
+ "begin": "(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))\\s*\\(",
217
+ "end": "\\)",
218
+ "patterns": [
219
+ {
220
+ "include": "#type_ctor"
221
+ },
222
+ {
223
+ "include": "#attribute_name"
224
+ },
225
+ {
226
+ "include": "#comma"
227
+ },
228
+ {
229
+ "match": "\\.\\.",
230
+ "name": "keyword.operator.wildcard.haskell"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "include": "#infix_op"
236
+ }
237
+ ]
238
+ }
239
+ ]
240
+ },
241
+ "module_name": {
242
+ "patterns": [
243
+ {
244
+ "name": "support.other.module.haskell",
245
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
246
+ }
247
+ ]
248
+ },
249
+ "module_name_prefix": {
250
+ "patterns": [
251
+ {
252
+ "name": "support.other.module.haskell",
253
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\."
254
+ }
255
+ ]
256
+ },
257
+ "pragma": {
258
+ "patterns": [
259
+ {
260
+ "name": "meta.preprocessor.haskell",
261
+ "begin": "\\{-#",
262
+ "end": "#-\\}",
263
+ "patterns": [
264
+ {
265
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(NOTINLINE CONSTRUCTORLIKE|NOINLINE CONSTRUCTORLIKE|INLINE CONSTRUCTORLIKE|SPECIALISE NOTINLINE|SPECIALIZE NOTINLINE|SPECIALISE NOINLINE|SPECIALIZE NOINLINE|NOTINLINE CONLIKE|SPECIALISE INLINE|SPECIALIZE INLINE|NOINLINE CONLIKE|VECTORISE SCALAR|VECTORIZE SCALAR|OPTIONS_HADDOCK|INLINE CONLIKE|OPTIONS_DERIVE|OPTIONS_CATCH|OPTIONS_NHC98|OPTIONS_HUGS|OVERLAPPABLE|NOVECTORISE|NOVECTORIZE|OPTIONS_GHC|OPTIONS_JHC|OPTIONS_YHC|OVERLAPPING|DEPRECATED|INCOHERENT|INLINEABLE|SPECIALISE|SPECIALIZE|GENERATED|INLINABLE|NOTINLINE|VECTORISE|VECTORIZE|CONTRACT|LANGUAGE|NOINLINE|NOUNPACK|OVERLAPS|INCLUDE|MINIMAL|OPTIONS|WARNING|CFILES|INLINE|SOURCE|UNPACK|CTYPE|RULES|CORE|LINE|ANN|SCC)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
266
+ "name": "keyword.other.preprocessor.haskell"
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ },
272
+ "function_type_declaration": {
273
+ "patterns": [
274
+ {
275
+ "name": "meta.function.type-declaration.haskell",
276
+ "begin": "^([ \\t]*)(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))))*))(?:\\s*(::|∷)))",
277
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
278
+ "contentName": "meta.type-signature.haskell",
279
+ "beginCaptures": {
280
+ "2": {
281
+ "patterns": [
282
+ {
283
+ "include": "#function_name"
284
+ },
285
+ {
286
+ "include": "#infix_op"
287
+ }
288
+ ]
289
+ },
290
+ "3": {
291
+ "name": "keyword.other.double-colon.haskell"
292
+ }
293
+ },
294
+ "patterns": [
295
+ {
296
+ "include": "#type_signature"
297
+ }
298
+ ]
299
+ }
300
+ ]
301
+ },
302
+ "ctor_type_declaration": {
303
+ "patterns": [
304
+ {
305
+ "name": "meta.ctor.type-declaration.haskell",
306
+ "begin": "^([ \\t]*)(?:(?:((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\)))(?:(?:\\s*,\\s*)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))))*))(?:\\s*(::|∷)))",
307
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
308
+ "contentName": "meta.type-signature.haskell",
309
+ "beginCaptures": {
310
+ "2": {
311
+ "patterns": [
312
+ {
313
+ "include": "#type_ctor"
314
+ },
315
+ {
316
+ "include": "#infix_op"
317
+ }
318
+ ]
319
+ },
320
+ "3": {
321
+ "name": "keyword.other.double-colon.haskell"
322
+ }
323
+ },
324
+ "patterns": [
325
+ {
326
+ "include": "#type_signature"
327
+ }
328
+ ]
329
+ }
330
+ ]
331
+ },
332
+ "record_field_declaration": {
333
+ "patterns": [
334
+ {
335
+ "name": "meta.record-field.type-declaration.haskell",
336
+ "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))))*))(?:\\s*(::|∷)))",
337
+ "end": "(?=(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))))*))(?:\\s*(::|∷)))|})",
338
+ "contentName": "meta.type-signature.haskell",
339
+ "beginCaptures": {
340
+ "1": {
341
+ "patterns": [
342
+ {
343
+ "include": "#attribute_name"
344
+ },
345
+ {
346
+ "include": "#infix_op"
347
+ }
348
+ ]
349
+ },
350
+ "2": {
351
+ "name": "keyword.other.double-colon.haskell"
352
+ }
353
+ },
354
+ "patterns": [
355
+ {
356
+ "include": "#type_signature"
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ },
362
+ "type_signature": {
363
+ "patterns": [
364
+ {
365
+ "include": "#pragma"
366
+ },
367
+ {
368
+ "include": "#comments"
369
+ },
370
+ {
371
+ "name": "keyword.other.forall.haskell",
372
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))forall(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
373
+ },
374
+ {
375
+ "include": "#unit"
376
+ },
377
+ {
378
+ "include": "#empty_list"
379
+ },
380
+ {
381
+ "name": "keyword.other.arrow.haskell",
382
+ "match": "(?<![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])(->|→)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])"
383
+ },
384
+ {
385
+ "name": "keyword.other.big-arrow.haskell",
386
+ "match": "(?<![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])(=>|⇒)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])"
387
+ },
388
+ {
389
+ "include": "#operator"
390
+ },
391
+ {
392
+ "name": "variable.other.generic-type.haskell",
393
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
394
+ },
395
+ {
396
+ "include": "#type_name"
397
+ }
398
+ ]
399
+ },
400
+ "unit": {
401
+ "patterns": [
402
+ {
403
+ "name": "constant.language.unit.haskell",
404
+ "match": "\\(\\)"
405
+ }
406
+ ]
407
+ },
408
+ "empty_list": {
409
+ "patterns": [
410
+ {
411
+ "name": "constant.language.empty-list.haskell",
412
+ "match": "\\[\\]"
413
+ }
414
+ ]
415
+ },
416
+ "deriving": {
417
+ "patterns": [
418
+ {
419
+ "include": "#deriving_list"
420
+ },
421
+ {
422
+ "include": "#deriving_simple"
423
+ },
424
+ {
425
+ "include": "#deriving_keyword"
426
+ }
427
+ ]
428
+ },
429
+ "deriving_keyword": {
430
+ "patterns": [
431
+ {
432
+ "name": "meta.deriving.haskell",
433
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(deriving)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
434
+ "captures": {
435
+ "1": {
436
+ "name": "keyword.other.haskell"
437
+ }
438
+ }
439
+ }
440
+ ]
441
+ },
442
+ "deriving_list": {
443
+ "patterns": [
444
+ {
445
+ "name": "meta.deriving.haskell",
446
+ "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(deriving)\\s*\\(",
447
+ "end": "\\)",
448
+ "beginCaptures": {
449
+ "1": {
450
+ "name": "keyword.other.haskell"
451
+ }
452
+ },
453
+ "patterns": [
454
+ {
455
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
456
+ "captures": {
457
+ "1": {
458
+ "name": "entity.other.inherited-class.haskell"
459
+ }
460
+ }
461
+ }
462
+ ]
463
+ }
464
+ ]
465
+ },
466
+ "deriving_simple": {
467
+ "patterns": [
468
+ {
469
+ "name": "meta.deriving.haskell",
470
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(deriving)\\s*([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
471
+ "captures": {
472
+ "1": {
473
+ "name": "keyword.other.haskell"
474
+ },
475
+ "2": {
476
+ "name": "entity.other.inherited-class.haskell"
477
+ }
478
+ }
479
+ }
480
+ ]
481
+ },
482
+ "infix_function": {
483
+ "patterns": [
484
+ {
485
+ "name": "keyword.operator.function.infix.haskell",
486
+ "match": "(`)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(`)",
487
+ "captures": {
488
+ "1": {
489
+ "name": "punctuation.definition.entity.haskell"
490
+ },
491
+ "2": {
492
+ "name": "punctuation.definition.entity.haskell"
493
+ }
494
+ }
495
+ }
496
+ ]
497
+ },
498
+ "quasi_quotes": {
499
+ "patterns": [
500
+ {
501
+ "begin": "(\\[)([\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)(\\|)",
502
+ "end": "(\\|)(\\])",
503
+ "beginCaptures": {
504
+ "1": {
505
+ "name": "punctuation.definition.quasiquotes.begin.haskell"
506
+ },
507
+ "2": {
508
+ "name": "entity.name.tag.haskell"
509
+ }
510
+ },
511
+ "endCaptures": {
512
+ "2": {
513
+ "name": "punctuation.definition.quasiquotes.end.haskell"
514
+ }
515
+ },
516
+ "contentName": "string.quoted.quasiquotes.haskell"
517
+ }
518
+ ]
519
+ },
520
+ "module_decl": {
521
+ "patterns": [
522
+ {
523
+ "name": "meta.declaration.module.haskell",
524
+ "begin": "^([ \\t]*)(module)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
525
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
526
+ "beginCaptures": {
527
+ "2": {
528
+ "name": "keyword.other.haskell"
529
+ }
530
+ },
531
+ "endCaptures": {
532
+ "1": {
533
+ "name": "keyword.other.haskell"
534
+ }
535
+ },
536
+ "patterns": [
537
+ {
538
+ "include": "#comments"
539
+ },
540
+ {
541
+ "include": "#module_name"
542
+ },
543
+ {
544
+ "include": "#module_exports"
545
+ },
546
+ {
547
+ "include": "#invalid"
548
+ }
549
+ ]
550
+ }
551
+ ]
552
+ },
553
+ "class_decl": {
554
+ "patterns": [
555
+ {
556
+ "name": "meta.declaration.class.haskell",
557
+ "begin": "^([ \\t]*)(class)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
558
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|$",
559
+ "beginCaptures": {
560
+ "2": {
561
+ "name": "storage.type.class.haskell"
562
+ }
563
+ },
564
+ "endCaptures": {
565
+ "1": {
566
+ "name": "keyword.other.haskell"
567
+ }
568
+ },
569
+ "patterns": [
570
+ {
571
+ "include": "#type_signature"
572
+ }
573
+ ]
574
+ }
575
+ ]
576
+ },
577
+ "instance_decl": {
578
+ "patterns": [
579
+ {
580
+ "name": "meta.declaration.instance.haskell",
581
+ "begin": "^([ \\t]*)(instance)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
582
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|$",
583
+ "contentName": "meta.type-signature.haskell",
584
+ "beginCaptures": {
585
+ "2": {
586
+ "name": "keyword.other.haskell"
587
+ }
588
+ },
589
+ "endCaptures": {
590
+ "1": {
591
+ "name": "keyword.other.haskell"
592
+ }
593
+ },
594
+ "patterns": [
595
+ {
596
+ "include": "#pragma"
597
+ },
598
+ {
599
+ "include": "#type_signature"
600
+ }
601
+ ]
602
+ }
603
+ ]
604
+ },
605
+ "foreign_import": {
606
+ "patterns": [
607
+ {
608
+ "name": "meta.foreign.haskell",
609
+ "begin": "^([ \\t]*)(foreign)\\s+(import|export)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
610
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
611
+ "beginCaptures": {
612
+ "2": {
613
+ "name": "keyword.other.haskell"
614
+ },
615
+ "3": {
616
+ "name": "keyword.other.haskell"
617
+ }
618
+ },
619
+ "patterns": [
620
+ {
621
+ "match": "(?:un)?safe",
622
+ "captures": {
623
+ "0": {
624
+ "name": "keyword.other.haskell"
625
+ }
626
+ }
627
+ },
628
+ {
629
+ "include": "$self"
630
+ }
631
+ ]
632
+ }
633
+ ]
634
+ },
635
+ "regular_import": {
636
+ "patterns": [
637
+ {
638
+ "name": "meta.import.haskell",
639
+ "begin": "^([ \\t]*)(import)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
640
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
641
+ "beginCaptures": {
642
+ "2": {
643
+ "name": "keyword.other.haskell"
644
+ }
645
+ },
646
+ "patterns": [
647
+ {
648
+ "include": "#module_name"
649
+ },
650
+ {
651
+ "include": "#module_exports"
652
+ },
653
+ {
654
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(qualified|as|hiding)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
655
+ "captures": {
656
+ "1": {
657
+ "name": "keyword.other.haskell"
658
+ }
659
+ }
660
+ }
661
+ ]
662
+ }
663
+ ]
664
+ },
665
+ "data_decl": {
666
+ "patterns": [
667
+ {
668
+ "name": "meta.declaration.type.data.haskell",
669
+ "begin": "^([ \\t]*)(data|newtype)\\s+((?:(?!=|where).)*)",
670
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
671
+ "beginCaptures": {
672
+ "2": {
673
+ "name": "storage.type.data.haskell"
674
+ },
675
+ "3": {
676
+ "name": "meta.type-signature.haskell",
677
+ "patterns": [
678
+ {
679
+ "include": "#family_and_instance"
680
+ },
681
+ {
682
+ "include": "#type_signature"
683
+ }
684
+ ]
685
+ }
686
+ },
687
+ "patterns": [
688
+ {
689
+ "include": "#comments"
690
+ },
691
+ {
692
+ "include": "#where"
693
+ },
694
+ {
695
+ "include": "#deriving"
696
+ },
697
+ {
698
+ "include": "#assignment_op"
699
+ },
700
+ {
701
+ "match": "(?:(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)\\s*)(?:((?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|->|=>)+\\s*)+))(?:(?:\\s+)(?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|->|=>)+\\s*)+)))*)?))",
702
+ "captures": {
703
+ "1": {
704
+ "patterns": [
705
+ {
706
+ "include": "#type_ctor"
707
+ }
708
+ ]
709
+ },
710
+ "2": {
711
+ "name": "meta.type-signature.haskell",
712
+ "patterns": [
713
+ {
714
+ "include": "#type_signature"
715
+ }
716
+ ]
717
+ }
718
+ }
719
+ },
720
+ {
721
+ "match": "\\|",
722
+ "captures": {
723
+ "0": {
724
+ "name": "punctuation.separator.pipe.haskell"
725
+ }
726
+ }
727
+ },
728
+ {
729
+ "name": "meta.declaration.type.data.record.block.haskell",
730
+ "begin": "\\{",
731
+ "beginCaptures": {
732
+ "0": {
733
+ "name": "keyword.operator.record.begin.haskell"
734
+ }
735
+ },
736
+ "end": "\\}",
737
+ "endCaptures": {
738
+ "0": {
739
+ "name": "keyword.operator.record.end.haskell"
740
+ }
741
+ },
742
+ "patterns": [
743
+ {
744
+ "include": "#comments"
745
+ },
746
+ {
747
+ "include": "#comma"
748
+ },
749
+ {
750
+ "include": "#record_field_declaration"
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ "include": "#ctor_type_declaration"
756
+ }
757
+ ]
758
+ }
759
+ ]
760
+ },
761
+ "type_alias": {
762
+ "patterns": [
763
+ {
764
+ "name": "meta.declaration.type.type.haskell",
765
+ "begin": "^([ \\t]*)(type)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
766
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
767
+ "contentName": "meta.type-signature.haskell",
768
+ "beginCaptures": {
769
+ "2": {
770
+ "name": "storage.type.data.haskell"
771
+ }
772
+ },
773
+ "patterns": [
774
+ {
775
+ "include": "#comments"
776
+ },
777
+ {
778
+ "include": "#family_and_instance"
779
+ },
780
+ {
781
+ "include": "#where"
782
+ },
783
+ {
784
+ "include": "#assignment_op"
785
+ },
786
+ {
787
+ "include": "#type_signature"
788
+ }
789
+ ]
790
+ }
791
+ ]
792
+ },
793
+ "keywords": {
794
+ "patterns": [
795
+ {
796
+ "name": "keyword.other.haskell",
797
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(deriving|where|data|type|newtype)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
798
+ },
799
+ {
800
+ "name": "storage.type.haskell",
801
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(data|type|newtype)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
802
+ },
803
+ {
804
+ "name": "keyword.operator.haskell",
805
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))infix[lr]?(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
806
+ },
807
+ {
808
+ "name": "keyword.control.haskell",
809
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(do|if|then|else|case|of|let|in|default)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
810
+ }
811
+ ]
812
+ },
813
+ "c_preprocessor": {
814
+ "patterns": [
815
+ {
816
+ "name": "meta.preprocessor.c.haskell",
817
+ "begin": "^(?=#)",
818
+ "end": "(?<!\\\\)(?=\\n)",
819
+ "patterns": [
820
+ {
821
+ "include": "source.c"
822
+ }
823
+ ]
824
+ }
825
+ ]
826
+ },
827
+ "string": {
828
+ "patterns": [
829
+ {
830
+ "name": "string.quoted.double.haskell",
831
+ "begin": "\"",
832
+ "end": "\"",
833
+ "beginCaptures": {
834
+ "0": {
835
+ "name": "punctuation.definition.string.begin.haskell"
836
+ }
837
+ },
838
+ "endCaptures": {
839
+ "0": {
840
+ "name": "punctuation.definition.string.end.haskell"
841
+ }
842
+ },
843
+ "patterns": [
844
+ {
845
+ "include": "#characters"
846
+ },
847
+ {
848
+ "begin": "\\\\\\s",
849
+ "end": "\\\\",
850
+ "beginCaptures": {
851
+ "0": {
852
+ "name": "markup.other.escape.newline.begin.haskell"
853
+ }
854
+ },
855
+ "endCaptures": {
856
+ "0": {
857
+ "name": "markup.other.escape.newline.end.haskell"
858
+ }
859
+ },
860
+ "patterns": [
861
+ {
862
+ "include": "#invalid"
863
+ }
864
+ ]
865
+ }
866
+ ]
867
+ }
868
+ ]
869
+ },
870
+ "newline_escape": {
871
+ "patterns": [
872
+ {
873
+ "name": "markup.other.escape.newline.haskell",
874
+ "match": "\\\\$"
875
+ }
876
+ ]
877
+ },
878
+ "quoted_character": {
879
+ "patterns": [
880
+ {
881
+ "name": "string.quoted.single.haskell",
882
+ "match": "(')((?:[\\ -\\[\\]-~]|\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])|(?:\\\\o[0-7]+)|(?:\\\\x[0-9A-Fa-f]+)|(?:\\^[A-Z@\\[\\]\\\\\\^_])))(')",
883
+ "captures": {
884
+ "1": {
885
+ "name": "punctuation.definition.string.begin.haskell"
886
+ },
887
+ "2": {
888
+ "patterns": [
889
+ {
890
+ "include": "#characters"
891
+ }
892
+ ]
893
+ },
894
+ "3": {
895
+ "name": "punctuation.definition.string.end.haskell"
896
+ }
897
+ }
898
+ }
899
+ ]
900
+ },
901
+ "scoped_type": {
902
+ "patterns": [
903
+ {
904
+ "match": "\\((?<paren>(?:[^()]|\\(\\g<paren>\\))*)(::|∷)(?<paren2>(?:[^()]|\\(\\g<paren2>\\))*)\\)",
905
+ "captures": {
906
+ "1": {
907
+ "patterns": [
908
+ {
909
+ "include": "source.haskell"
910
+ }
911
+ ]
912
+ },
913
+ "2": {
914
+ "name": "keyword.other.double-colon.haskell"
915
+ },
916
+ "3": {
917
+ "name": "meta.type-signature.haskell",
918
+ "patterns": [
919
+ {
920
+ "include": "#type_signature"
921
+ }
922
+ ]
923
+ }
924
+ }
925
+ },
926
+ {
927
+ "match": "(::|∷)(.*?)(?:(?<![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])(<-|=)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])|$)",
928
+ "captures": {
929
+ "1": {
930
+ "name": "keyword.other.double-colon.haskell"
931
+ },
932
+ "2": {
933
+ "name": "meta.type-signature.haskell",
934
+ "patterns": [
935
+ {
936
+ "include": "#type_signature"
937
+ }
938
+ ]
939
+ },
940
+ "3": {
941
+ "patterns": [
942
+ {
943
+ "include": "#assignment_op"
944
+ },
945
+ {
946
+ "include": "#operator"
947
+ }
948
+ ]
949
+ }
950
+ }
951
+ }
952
+ ]
953
+ },
954
+ "scoped_type_override": {
955
+ "patterns": [
956
+ {
957
+ "match": "^([ \\t]*)(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+\\))))*))(?:\\s*(::|∷)))(.*)(?<![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])(<-|=)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])",
958
+ "captures": {
959
+ "2": {
960
+ "patterns": [
961
+ {
962
+ "include": "#identifier"
963
+ }
964
+ ]
965
+ },
966
+ "3": {
967
+ "name": "keyword.other.double-colon.haskell"
968
+ },
969
+ "4": {
970
+ "name": "meta.type-signature.haskell",
971
+ "patterns": [
972
+ {
973
+ "include": "#type_signature"
974
+ }
975
+ ]
976
+ },
977
+ "5": {
978
+ "patterns": [
979
+ {
980
+ "include": "#assignment_op"
981
+ },
982
+ {
983
+ "include": "#operator"
984
+ }
985
+ ]
986
+ }
987
+ }
988
+ }
989
+ ]
990
+ },
991
+ "comma": {
992
+ "patterns": [
993
+ {
994
+ "name": "punctuation.separator.comma.haskell",
995
+ "match": ","
996
+ }
997
+ ]
998
+ },
999
+ "lit_num": {
1000
+ "patterns": [
1001
+ {
1002
+ "name": "constant.numeric.hexadecimal.haskell",
1003
+ "match": "0[xX][0-9a-fA-F]+"
1004
+ },
1005
+ {
1006
+ "name": "constant.numeric.octal.haskell",
1007
+ "match": "0[oO][0-7]+"
1008
+ },
1009
+ {
1010
+ "name": "constant.numeric.float.haskell",
1011
+ "match": "[0-9]+(\\.[0-9]+[eE][+-]?|\\.|[eE][+-]?)[0-9]+"
1012
+ },
1013
+ {
1014
+ "name": "constant.numeric.decimal.haskell",
1015
+ "match": "[0-9]+"
1016
+ }
1017
+ ]
1018
+ },
1019
+ "operator": {
1020
+ "patterns": [
1021
+ {
1022
+ "name": "keyword.operator.haskell",
1023
+ "match": "[\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]+"
1024
+ }
1025
+ ]
1026
+ },
1027
+ "identifier": {
1028
+ "patterns": [
1029
+ {
1030
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1031
+ "name": "identifier.haskell",
1032
+ "captures": {
1033
+ "0": {
1034
+ "patterns": [
1035
+ {
1036
+ "include": "#module_name_prefix"
1037
+ },
1038
+ {
1039
+ "name": "support.function.prelude.haskell",
1040
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(abs|acos|acosh|all|and|any|appendFile|asTypeOf|asin|asinh|atan|atan2|atanh|break|ceiling|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldMap|foldl|foldl1|foldr|foldr1|fromEnum|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|head|id|init|interact|ioError|isDenormalized|isIEEE|isInfinite|isNaN|isNegativeZero|iterate|last|lcm|length|lex|lines|log|logBase|lookup|map|mapM|mapM_|mappend|max|maxBound|maximum|maybe|mconcat|mempty|min|minBound|minimum|mod|negate|not|notElem|null|odd|or|otherwise|pi|pred|print|product|properFraction|pure|putChar|putStr|putStrLn|quot|quotRem|read|readFile|readIO|readList|readLn|readParen|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequenceA|sequence_|show|showChar|showList|showParen|showString|shows|showsPrec|significand|signum|sin|sinh|snd|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|toEnum|toInteger|toRational|traverse|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1041
+ }
1042
+ ]
1043
+ }
1044
+ }
1045
+ }
1046
+ ]
1047
+ },
1048
+ "type_name": {
1049
+ "patterns": [
1050
+ {
1051
+ "name": "entity.name.type.haskell",
1052
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1053
+ "captures": {
1054
+ "0": {
1055
+ "patterns": [
1056
+ {
1057
+ "include": "#module_name_prefix"
1058
+ },
1059
+ {
1060
+ "name": "entity.other.inherited-class.prelude.haskell",
1061
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(Applicative|Bounded|Enum|Eq|Floating|Foldable|Fractional|Functor|Integral|Monad|Monoid|Num|Ord|Read|Real|RealFloat|RealFrac|Show|Traversable)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1062
+ },
1063
+ {
1064
+ "name": "support.class.prelude.haskell",
1065
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(Either|FilePath|IO|IOError|Integer|Maybe|Ordering|Rational|ReadS|ShowS|String|Bool|Char|Double|Float|Int|Word)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1066
+ }
1067
+ ]
1068
+ }
1069
+ }
1070
+ }
1071
+ ]
1072
+ },
1073
+ "type_ctor": {
1074
+ "patterns": [
1075
+ {
1076
+ "name": "entity.name.tag.haskell",
1077
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1078
+ "captures": {
1079
+ "0": {
1080
+ "patterns": [
1081
+ {
1082
+ "include": "#module_name_prefix"
1083
+ },
1084
+ {
1085
+ "name": "support.tag.prelude.haskell",
1086
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(EQ|GT|Just|LT|Left|Nothing|Right|True|False)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1087
+ }
1088
+ ]
1089
+ }
1090
+ }
1091
+ }
1092
+ ]
1093
+ },
1094
+ "where": {
1095
+ "patterns": [
1096
+ {
1097
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))where(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1098
+ "name": "keyword.other.haskell"
1099
+ }
1100
+ ]
1101
+ },
1102
+ "family_and_instance": {
1103
+ "patterns": [
1104
+ {
1105
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(family|instance)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1106
+ "name": "keyword.other.haskell"
1107
+ }
1108
+ ]
1109
+ },
1110
+ "invalid": {
1111
+ "patterns": [
1112
+ {
1113
+ "match": "\\S+",
1114
+ "name": "invalid.illegal.character-not-allowed-here.haskell"
1115
+ }
1116
+ ]
1117
+ },
1118
+ "function_name": {
1119
+ "patterns": [
1120
+ {
1121
+ "name": "entity.name.function.haskell",
1122
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1123
+ }
1124
+ ]
1125
+ },
1126
+ "assignment_op": {
1127
+ "patterns": [
1128
+ {
1129
+ "match": "=",
1130
+ "captures": {
1131
+ "0": {
1132
+ "name": "keyword.operator.assignment.haskell"
1133
+ }
1134
+ }
1135
+ }
1136
+ ]
1137
+ },
1138
+ "attribute_name": {
1139
+ "patterns": [
1140
+ {
1141
+ "name": "entity.other.attribute-name.haskell",
1142
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}]))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1143
+ }
1144
+ ]
1145
+ }
1146
+ }
1147
+ }