@codingame/monaco-languageclient-wrapper 1.3.0 → 1.4.1

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 (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/csharp.js +18 -0
  37. package/dist/csharp.tmLanguage.js +4750 -0
  38. package/dist/css.tmLanguage.js +1873 -0
  39. package/dist/css.worker.js +6 -0
  40. package/dist/cssContribution.js +10 -0
  41. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  42. package/dist/d.js +3159 -0
  43. package/dist/dart.js +530 -0
  44. package/dist/diet.js +758 -0
  45. package/dist/diet2.js +92 -0
  46. package/dist/dml.js +169 -0
  47. package/dist/eex.js +55 -0
  48. package/dist/elixir.js +2341 -0
  49. package/dist/elixir2.js +184 -0
  50. package/dist/erlang.js +195 -0
  51. package/dist/expression.js +846 -0
  52. package/dist/extensionConfiguration.d.ts +7 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/extensions.d.ts +13 -1
  57. package/dist/features/cssContribution.d.ts +1 -0
  58. package/dist/features/htmlContribution.d.ts +1 -0
  59. package/dist/features/jsonContribution.d.ts +1 -0
  60. package/dist/features/typescriptContribution.d.ts +1 -0
  61. package/dist/fsharp.js +18 -0
  62. package/dist/fsharp.tmLanguage.js +1811 -0
  63. package/dist/go.tmLanguage.js +1025 -0
  64. package/dist/groovy.js +229 -0
  65. package/dist/groovy.tmLanguage.js +1391 -0
  66. package/dist/haskell.tmLanguage.js +629 -0
  67. package/dist/html (eex).js +31 -0
  68. package/dist/html-derivative.tmLanguage.js +57 -0
  69. package/dist/html.tmLanguage.js +2652 -0
  70. package/dist/html.tmLanguage2.js +97 -0
  71. package/dist/html.worker.js +6 -0
  72. package/dist/htmlContribution.js +10 -0
  73. package/dist/index.d.ts +5 -3
  74. package/dist/inline-styles.js +104 -0
  75. package/dist/inline-template.js +88 -0
  76. package/dist/java.js +18 -0
  77. package/dist/java.tmLanguage.js +1863 -0
  78. package/dist/javascript.js +196 -0
  79. package/dist/javascriptreact.js +196 -0
  80. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  81. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  82. package/dist/json.worker.js +6 -0
  83. package/dist/jsonContribution.js +78 -0
  84. package/dist/keybindings/index.d.ts +2 -0
  85. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  86. package/dist/keybindings/vim.d.ts +3 -0
  87. package/dist/kotlin.js +117 -0
  88. package/dist/kotlinscript.js +117 -0
  89. package/dist/languageClient.d.ts +18 -8
  90. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  91. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  92. package/dist/languages/index.d.ts +3 -0
  93. package/dist/languages/monarch/index.d.ts +7 -0
  94. package/dist/languages/monarch/list.d.ts +7 -0
  95. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  96. package/dist/languages/snippets/index.d.ts +1 -0
  97. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  98. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  99. package/dist/languages/textMate/index.d.ts +2 -0
  100. package/dist/literateHaskell.tmLanguage.js +70 -0
  101. package/dist/lua.tmLanguage.js +289 -0
  102. package/dist/main.js +377 -258
  103. package/dist/markdown.js +103 -0
  104. package/dist/markdown.tmLanguage.js +2784 -0
  105. package/dist/merlin.js +111 -0
  106. package/dist/monaco.d.ts +8 -0
  107. package/dist/objective-c.tmLanguage.js +3618 -0
  108. package/dist/ocaml-hover-info.js +34 -0
  109. package/dist/ocaml-hover-type.js +24 -0
  110. package/dist/ocaml-markdown-codeblock.js +42 -0
  111. package/dist/ocaml.js +2979 -0
  112. package/dist/ocamlbuild.js +239 -0
  113. package/dist/opam.js +149 -0
  114. package/dist/pascal.js +382 -0
  115. package/dist/pascal.tmLanguage.js +169 -0
  116. package/dist/perl.tmLanguage.js +2986 -0
  117. package/dist/perl6.tmLanguage.js +323 -0
  118. package/dist/pgsql.tmLanguage.js +284 -0
  119. package/dist/php.js +265 -0
  120. package/dist/php.tmLanguage.js +3791 -0
  121. package/dist/platform.tmLanguage.js +1135 -0
  122. package/dist/powershell.js +18 -0
  123. package/dist/powershell.tmLanguage.js +1037 -0
  124. package/dist/r.tmLanguage.js +551 -0
  125. package/dist/reason-hover-info.js +34 -0
  126. package/dist/reason-hover-signature.js +21 -0
  127. package/dist/reason-hover-type.js +21 -0
  128. package/dist/reason-markdown-codeblock.js +42 -0
  129. package/dist/reason.js +100 -0
  130. package/dist/ruby.tmLanguage.js +2784 -0
  131. package/dist/rust.tmLanguage.js +1178 -0
  132. package/dist/sassdoc.tmLanguage.js +362 -0
  133. package/dist/scss.tmLanguage.js +1887 -0
  134. package/dist/sdc.tmLanguage.js +712 -0
  135. package/dist/sdl.js +162 -0
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  139. package/dist/sql.js +21 -0
  140. package/dist/staticOptions.d.ts +5 -7
  141. package/dist/stub-generator.js +15 -0
  142. package/dist/swift.js +183 -0
  143. package/dist/swift.tmLanguage.js +3288 -0
  144. package/dist/systemverilog.js +208 -0
  145. package/dist/systemverilog.tmLanguage.js +1067 -0
  146. package/dist/tcl.js +151 -0
  147. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  148. package/dist/template.js +207 -0
  149. package/dist/theme/index.d.ts +3 -0
  150. package/dist/theme/registry.d.ts +4 -0
  151. package/dist/theme/semanticHighlight.d.ts +1 -0
  152. package/dist/theme/tools.d.ts +13 -0
  153. package/dist/tools.d.ts +3 -0
  154. package/dist/ts.worker.js +6 -0
  155. package/dist/typescript.js +312 -0
  156. package/dist/typescriptContribution.js +36 -0
  157. package/dist/typescriptreact.js +312 -0
  158. package/dist/ucf.tmLanguage.js +36 -0
  159. package/dist/vb.js +88 -0
  160. package/dist/verilog.js +432 -0
  161. package/dist/verilog.tmLanguage.js +321 -0
  162. package/dist/worker.d.ts +6 -0
  163. package/dist/worker.js +54 -0
  164. package/dist/xml.tmLanguage.js +395 -0
  165. package/dist/xsl.tmLanguage.js +102 -0
  166. package/dist/yaml.tmLanguage.js +629 -0
  167. package/package.json +2 -2
  168. package/stats.html +1 -1
  169. package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
  170. package/dist/tsdoc-metadata.json +0 -11
@@ -0,0 +1,1025 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/go/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/jeff-hykin/better-go-syntax/commit/6175663a7a0e23d58ccf9aab95054cb6e5c92aff";
7
+ var name = "Go";
8
+ var scopeName = "source.go";
9
+ var patterns = [
10
+ {
11
+ include: "#comments"
12
+ },
13
+ {
14
+ include: "#comments"
15
+ },
16
+ {
17
+ comment: "Interpreted string literals",
18
+ begin: "\"",
19
+ beginCaptures: {
20
+ "0": {
21
+ name: "punctuation.definition.string.begin.go"
22
+ }
23
+ },
24
+ end: "\"",
25
+ endCaptures: {
26
+ "0": {
27
+ name: "punctuation.definition.string.end.go"
28
+ }
29
+ },
30
+ name: "string.quoted.double.go",
31
+ patterns: [
32
+ {
33
+ include: "#string_escaped_char"
34
+ },
35
+ {
36
+ include: "#string_placeholder"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ comment: "Raw string literals",
42
+ begin: "`",
43
+ beginCaptures: {
44
+ "0": {
45
+ name: "punctuation.definition.string.begin.go"
46
+ }
47
+ },
48
+ end: "`",
49
+ endCaptures: {
50
+ "0": {
51
+ name: "punctuation.definition.string.end.go"
52
+ }
53
+ },
54
+ name: "string.quoted.raw.go",
55
+ patterns: [
56
+ {
57
+ include: "#string_placeholder"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ comment: "Syntax error receiving channels",
63
+ match: "<\\-([\\t ]+)chan\\b",
64
+ captures: {
65
+ "1": {
66
+ name: "invalid.illegal.receive-channel.go"
67
+ }
68
+ }
69
+ },
70
+ {
71
+ comment: "Syntax error sending channels",
72
+ match: "\\bchan([\\t ]+)<-",
73
+ captures: {
74
+ "1": {
75
+ name: "invalid.illegal.send-channel.go"
76
+ }
77
+ }
78
+ },
79
+ {
80
+ comment: "Syntax error using slices",
81
+ match: "\\[\\](\\s+)",
82
+ captures: {
83
+ "1": {
84
+ name: "invalid.illegal.slice.go"
85
+ }
86
+ }
87
+ },
88
+ {
89
+ comment: "Syntax error numeric literals",
90
+ match: "\\b0[0-7]*[89]\\d*\\b",
91
+ name: "invalid.illegal.numeric.go"
92
+ },
93
+ {
94
+ comment: "Built-in functions",
95
+ match: "\\b(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)\\b(?=\\()",
96
+ name: "support.function.builtin.go"
97
+ },
98
+ {
99
+ comment: "Function declarations",
100
+ match: "^(\\bfunc\\b)(?:\\s+(\\([^\\)]+\\)\\s+)?(\\w+)(?=\\())?",
101
+ captures: {
102
+ "1": {
103
+ name: "keyword.function.go"
104
+ },
105
+ "2": {
106
+ patterns: [
107
+ {
108
+ include: "#brackets"
109
+ },
110
+ {
111
+ include: "#operators"
112
+ }
113
+ ]
114
+ },
115
+ "3": {
116
+ patterns: [
117
+ {
118
+ match: "\\d\\w*",
119
+ name: "invalid.illegal.identifier.go"
120
+ },
121
+ {
122
+ match: "\\w+",
123
+ name: "entity.name.function.go"
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ },
129
+ {
130
+ comment: "Functions",
131
+ match: "(\\bfunc\\b)|(\\w+)(?=\\()",
132
+ captures: {
133
+ "1": {
134
+ name: "keyword.function.go"
135
+ },
136
+ "2": {
137
+ patterns: [
138
+ {
139
+ match: "\\d\\w*",
140
+ name: "invalid.illegal.identifier.go"
141
+ },
142
+ {
143
+ match: "\\w+",
144
+ name: "support.function.go"
145
+ }
146
+ ]
147
+ }
148
+ }
149
+ },
150
+ {
151
+ include: "#numeric_literals"
152
+ },
153
+ {
154
+ comment: "Language constants",
155
+ match: "\\b(true|false|nil|iota)\\b",
156
+ name: "constant.language.go"
157
+ },
158
+ {
159
+ begin: "\\b(package)\\s+",
160
+ beginCaptures: {
161
+ "1": {
162
+ name: "keyword.package.go"
163
+ }
164
+ },
165
+ end: "(?!\\G)",
166
+ patterns: [
167
+ {
168
+ match: "\\d\\w*",
169
+ name: "invalid.illegal.identifier.go"
170
+ },
171
+ {
172
+ match: "\\w+",
173
+ name: "entity.name.package.go"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ begin: "\\b(type)\\s+",
179
+ beginCaptures: {
180
+ "1": {
181
+ name: "keyword.type.go"
182
+ }
183
+ },
184
+ end: "(?!\\G)",
185
+ patterns: [
186
+ {
187
+ match: "\\d\\w*",
188
+ name: "invalid.illegal.identifier.go"
189
+ },
190
+ {
191
+ match: "\\w+",
192
+ name: "entity.name.type.go"
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ begin: "\\b(import)\\s+",
198
+ beginCaptures: {
199
+ "1": {
200
+ name: "keyword.import.go"
201
+ }
202
+ },
203
+ end: "(?!\\G)",
204
+ patterns: [
205
+ {
206
+ include: "#imports"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ begin: "\\b(var)\\s+",
212
+ beginCaptures: {
213
+ "1": {
214
+ name: "keyword.var.go"
215
+ }
216
+ },
217
+ end: "(?!\\G)",
218
+ patterns: [
219
+ {
220
+ include: "#variables"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ match: "(?<!var)\\s*(\\w+(?:\\.\\w+)*(?>,\\s*\\w+(?:\\.\\w+)*)*)(?=\\s*=(?!=))",
226
+ captures: {
227
+ "1": {
228
+ patterns: [
229
+ {
230
+ match: "\\d\\w*",
231
+ name: "invalid.illegal.identifier.go"
232
+ },
233
+ {
234
+ match: "\\w+(?:\\.\\w+)*",
235
+ name: "variable.other.assignment.go",
236
+ captures: {
237
+ "0": {
238
+ patterns: [
239
+ {
240
+ include: "#delimiters"
241
+ }
242
+ ]
243
+ }
244
+ }
245
+ },
246
+ {
247
+ include: "#delimiters"
248
+ }
249
+ ]
250
+ }
251
+ }
252
+ },
253
+ {
254
+ match: "\\b\\w+(?:,\\s*\\w+)*(?=\\s*:=)",
255
+ captures: {
256
+ "0": {
257
+ patterns: [
258
+ {
259
+ match: "\\d\\w*",
260
+ name: "invalid.illegal.identifier.go"
261
+ },
262
+ {
263
+ match: "\\w+",
264
+ name: "variable.other.assignment.go"
265
+ },
266
+ {
267
+ include: "#delimiters"
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ },
273
+ {
274
+ comment: "Terminators",
275
+ match: ";",
276
+ name: "punctuation.terminator.go"
277
+ },
278
+ {
279
+ include: "#brackets"
280
+ },
281
+ {
282
+ include: "#delimiters"
283
+ },
284
+ {
285
+ include: "#keywords"
286
+ },
287
+ {
288
+ include: "#operators"
289
+ },
290
+ {
291
+ include: "#runes"
292
+ },
293
+ {
294
+ include: "#storage_types"
295
+ }
296
+ ];
297
+ var repository = {
298
+ brackets: {
299
+ patterns: [
300
+ {
301
+ begin: "{",
302
+ beginCaptures: {
303
+ "0": {
304
+ name: "punctuation.definition.begin.bracket.curly.go"
305
+ }
306
+ },
307
+ end: "}",
308
+ endCaptures: {
309
+ "0": {
310
+ name: "punctuation.definition.end.bracket.curly.go"
311
+ }
312
+ },
313
+ patterns: [
314
+ {
315
+ include: "$self"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ begin: "\\(",
321
+ beginCaptures: {
322
+ "0": {
323
+ name: "punctuation.definition.begin.bracket.round.go"
324
+ }
325
+ },
326
+ end: "\\)",
327
+ endCaptures: {
328
+ "0": {
329
+ name: "punctuation.definition.end.bracket.round.go"
330
+ }
331
+ },
332
+ patterns: [
333
+ {
334
+ include: "$self"
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ match: "\\[|\\]",
340
+ name: "punctuation.definition.bracket.square.go"
341
+ }
342
+ ]
343
+ },
344
+ comments: {
345
+ patterns: [
346
+ {
347
+ name: "comment.block.go",
348
+ begin: "(\\/\\*)",
349
+ beginCaptures: {
350
+ "1": {
351
+ name: "punctuation.definition.comment.go"
352
+ }
353
+ },
354
+ end: "(\\*\\/)",
355
+ endCaptures: {
356
+ "1": {
357
+ name: "punctuation.definition.comment.go"
358
+ }
359
+ }
360
+ },
361
+ {
362
+ name: "comment.line.double-slash.go",
363
+ begin: "(\\/\\/)",
364
+ beginCaptures: {
365
+ "1": {
366
+ name: "punctuation.definition.comment.go"
367
+ }
368
+ },
369
+ end: "(?:\\n|$)"
370
+ }
371
+ ]
372
+ },
373
+ delimiters: {
374
+ patterns: [
375
+ {
376
+ match: ",",
377
+ name: "punctuation.other.comma.go"
378
+ },
379
+ {
380
+ match: "\\.(?!\\.\\.)",
381
+ name: "punctuation.other.period.go"
382
+ },
383
+ {
384
+ match: ":(?!=)",
385
+ name: "punctuation.other.colon.go"
386
+ }
387
+ ]
388
+ },
389
+ imports: {
390
+ patterns: [
391
+ {
392
+ match: "((?!\\s+\")[^\\s]*)?\\s*((\")([^\"]*)(\"))",
393
+ captures: {
394
+ "1": {
395
+ name: "entity.alias.import.go"
396
+ },
397
+ "2": {
398
+ name: "string.quoted.double.go"
399
+ },
400
+ "3": {
401
+ name: "punctuation.definition.string.begin.go"
402
+ },
403
+ "4": {
404
+ name: "entity.name.import.go"
405
+ },
406
+ "5": {
407
+ name: "punctuation.definition.string.end.go"
408
+ }
409
+ }
410
+ },
411
+ {
412
+ begin: "\\(",
413
+ beginCaptures: {
414
+ "0": {
415
+ name: "punctuation.definition.imports.begin.bracket.round.go"
416
+ }
417
+ },
418
+ end: "\\)",
419
+ endCaptures: {
420
+ "0": {
421
+ name: "punctuation.definition.imports.end.bracket.round.go"
422
+ }
423
+ },
424
+ patterns: [
425
+ {
426
+ include: "#comments"
427
+ },
428
+ {
429
+ include: "#imports"
430
+ }
431
+ ]
432
+ }
433
+ ]
434
+ },
435
+ keywords: {
436
+ patterns: [
437
+ {
438
+ comment: "Flow control keywords",
439
+ match: "\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\b",
440
+ name: "keyword.control.go"
441
+ },
442
+ {
443
+ match: "\\bchan\\b",
444
+ name: "keyword.channel.go"
445
+ },
446
+ {
447
+ match: "\\bconst\\b",
448
+ name: "keyword.const.go"
449
+ },
450
+ {
451
+ match: "\\bfunc\\b",
452
+ name: "keyword.function.go"
453
+ },
454
+ {
455
+ match: "\\binterface\\b",
456
+ name: "keyword.interface.go"
457
+ },
458
+ {
459
+ match: "\\bmap\\b",
460
+ name: "keyword.map.go"
461
+ },
462
+ {
463
+ match: "\\bstruct\\b",
464
+ name: "keyword.struct.go"
465
+ }
466
+ ]
467
+ },
468
+ operators: {
469
+ comment: "Note that the order here is very important!",
470
+ patterns: [
471
+ {
472
+ match: "(\\*|&)(?=\\w)",
473
+ name: "keyword.operator.address.go"
474
+ },
475
+ {
476
+ match: "<\\-",
477
+ name: "keyword.operator.channel.go"
478
+ },
479
+ {
480
+ match: "\\-\\-",
481
+ name: "keyword.operator.decrement.go"
482
+ },
483
+ {
484
+ match: "\\+\\+",
485
+ name: "keyword.operator.increment.go"
486
+ },
487
+ {
488
+ match: "(==|!=|<=|>=|<(?!<)|>(?!>))",
489
+ name: "keyword.operator.comparison.go"
490
+ },
491
+ {
492
+ match: "(&&|\\|\\||!)",
493
+ name: "keyword.operator.logical.go"
494
+ },
495
+ {
496
+ match: "(=|\\+=|\\-=|\\|=|\\^=|\\*=|/=|:=|%=|<<=|>>=|&\\^=|&=)",
497
+ name: "keyword.operator.assignment.go"
498
+ },
499
+ {
500
+ match: "(\\+|\\-|\\*|/|%)",
501
+ name: "keyword.operator.arithmetic.go"
502
+ },
503
+ {
504
+ match: "(&(?!\\^)|\\||\\^|&\\^|<<|>>)",
505
+ name: "keyword.operator.arithmetic.bitwise.go"
506
+ },
507
+ {
508
+ match: "\\.\\.\\.",
509
+ name: "keyword.operator.ellipsis.go"
510
+ }
511
+ ]
512
+ },
513
+ runes: {
514
+ patterns: [
515
+ {
516
+ begin: "'",
517
+ beginCaptures: {
518
+ "0": {
519
+ name: "punctuation.definition.string.begin.go"
520
+ }
521
+ },
522
+ end: "'",
523
+ endCaptures: {
524
+ "0": {
525
+ name: "punctuation.definition.string.end.go"
526
+ }
527
+ },
528
+ name: "string.quoted.rune.go",
529
+ patterns: [
530
+ {
531
+ match: "\\G(\\\\([0-7]{3}|[abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})|.)(?=')",
532
+ name: "constant.other.rune.go"
533
+ },
534
+ {
535
+ match: "[^']+",
536
+ name: "invalid.illegal.unknown-rune.go"
537
+ }
538
+ ]
539
+ }
540
+ ]
541
+ },
542
+ storage_types: {
543
+ patterns: [
544
+ {
545
+ match: "\\bbool\\b",
546
+ name: "storage.type.boolean.go"
547
+ },
548
+ {
549
+ match: "\\bbyte\\b",
550
+ name: "storage.type.byte.go"
551
+ },
552
+ {
553
+ match: "\\berror\\b",
554
+ name: "storage.type.error.go"
555
+ },
556
+ {
557
+ match: "\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\b",
558
+ name: "storage.type.numeric.go"
559
+ },
560
+ {
561
+ match: "\\brune\\b",
562
+ name: "storage.type.rune.go"
563
+ },
564
+ {
565
+ match: "\\bstring\\b",
566
+ name: "storage.type.string.go"
567
+ },
568
+ {
569
+ match: "\\buintptr\\b",
570
+ name: "storage.type.uintptr.go"
571
+ }
572
+ ]
573
+ },
574
+ string_escaped_char: {
575
+ patterns: [
576
+ {
577
+ match: "\\\\([0-7]{3}|[abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})",
578
+ name: "constant.character.escape.go"
579
+ },
580
+ {
581
+ match: "\\\\[^0-7xuUabfnrtv\\'\"]",
582
+ name: "invalid.illegal.unknown-escape.go"
583
+ }
584
+ ]
585
+ },
586
+ string_placeholder: {
587
+ patterns: [
588
+ {
589
+ match: "%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGspw]",
590
+ name: "constant.other.placeholder.go"
591
+ }
592
+ ]
593
+ },
594
+ variables: {
595
+ patterns: [
596
+ {
597
+ match: "(\\w+(?:,\\s*\\w+)*)(\\s+\\*?\\w+(?:\\.\\w+)?\\s*)?(?=\\s*=)",
598
+ captures: {
599
+ "1": {
600
+ patterns: [
601
+ {
602
+ match: "\\d\\w*",
603
+ name: "invalid.illegal.identifier.go"
604
+ },
605
+ {
606
+ match: "\\w+",
607
+ name: "variable.other.assignment.go"
608
+ },
609
+ {
610
+ include: "#delimiters"
611
+ }
612
+ ]
613
+ },
614
+ "2": {
615
+ patterns: [
616
+ {
617
+ include: "$self"
618
+ }
619
+ ]
620
+ }
621
+ }
622
+ },
623
+ {
624
+ match: "(\\w+(?:,\\s*\\w+)*)(\\s+(\\[(\\d*|\\.\\.\\.)\\])*\\*?(<-)?\\w+(?:\\.\\w+)?\\s*[^=].*)",
625
+ captures: {
626
+ "1": {
627
+ patterns: [
628
+ {
629
+ match: "\\d\\w*",
630
+ name: "invalid.illegal.identifier.go"
631
+ },
632
+ {
633
+ match: "\\w+",
634
+ name: "variable.other.declaration.go"
635
+ },
636
+ {
637
+ include: "#delimiters"
638
+ }
639
+ ]
640
+ },
641
+ "2": {
642
+ patterns: [
643
+ {
644
+ include: "$self"
645
+ }
646
+ ]
647
+ }
648
+ }
649
+ },
650
+ {
651
+ begin: "\\(",
652
+ beginCaptures: {
653
+ "0": {
654
+ name: "punctuation.definition.variables.begin.bracket.round.go"
655
+ }
656
+ },
657
+ end: "\\)",
658
+ endCaptures: {
659
+ "0": {
660
+ name: "punctuation.definition.variables.end.bracket.round.go"
661
+ }
662
+ },
663
+ patterns: [
664
+ {
665
+ include: "$self"
666
+ },
667
+ {
668
+ include: "#variables"
669
+ }
670
+ ]
671
+ }
672
+ ]
673
+ },
674
+ numeric_literals: {
675
+ match: "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])*",
676
+ captures: {
677
+ "0": {
678
+ patterns: [
679
+ {
680
+ begin: "(?=.)",
681
+ end: "(?:\\n|$)",
682
+ patterns: [
683
+ {
684
+ match: "(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$)|\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|\\G((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))",
685
+ captures: {
686
+ "1": {
687
+ name: "constant.numeric.decimal.go",
688
+ patterns: [
689
+ {
690
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
691
+ name: "punctuation.separator.constant.numeric.go"
692
+ }
693
+ ]
694
+ },
695
+ "2": {
696
+ name: "punctuation.separator.constant.numeric.go"
697
+ },
698
+ "3": {
699
+ name: "constant.numeric.decimal.point.go"
700
+ },
701
+ "4": {
702
+ name: "constant.numeric.decimal.go",
703
+ patterns: [
704
+ {
705
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
706
+ name: "punctuation.separator.constant.numeric.go"
707
+ }
708
+ ]
709
+ },
710
+ "5": {
711
+ name: "punctuation.separator.constant.numeric.go"
712
+ },
713
+ "6": {
714
+ name: "keyword.other.unit.exponent.decimal.go"
715
+ },
716
+ "7": {
717
+ name: "keyword.operator.plus.exponent.decimal.go"
718
+ },
719
+ "8": {
720
+ name: "keyword.operator.minus.exponent.decimal.go"
721
+ },
722
+ "9": {
723
+ name: "constant.numeric.exponent.decimal.go",
724
+ patterns: [
725
+ {
726
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
727
+ name: "punctuation.separator.constant.numeric.go"
728
+ }
729
+ ]
730
+ },
731
+ "10": {
732
+ name: "keyword.other.unit.imaginary.go"
733
+ },
734
+ "11": {
735
+ name: "constant.numeric.decimal.go",
736
+ patterns: [
737
+ {
738
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
739
+ name: "punctuation.separator.constant.numeric.go"
740
+ }
741
+ ]
742
+ },
743
+ "12": {
744
+ name: "punctuation.separator.constant.numeric.go"
745
+ },
746
+ "13": {
747
+ name: "keyword.other.unit.exponent.decimal.go"
748
+ },
749
+ "14": {
750
+ name: "keyword.operator.plus.exponent.decimal.go"
751
+ },
752
+ "15": {
753
+ name: "keyword.operator.minus.exponent.decimal.go"
754
+ },
755
+ "16": {
756
+ name: "constant.numeric.exponent.decimal.go",
757
+ patterns: [
758
+ {
759
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
760
+ name: "punctuation.separator.constant.numeric.go"
761
+ }
762
+ ]
763
+ },
764
+ "17": {
765
+ name: "keyword.other.unit.imaginary.go"
766
+ },
767
+ "18": {
768
+ name: "constant.numeric.decimal.point.go"
769
+ },
770
+ "19": {
771
+ name: "constant.numeric.decimal.go",
772
+ patterns: [
773
+ {
774
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
775
+ name: "punctuation.separator.constant.numeric.go"
776
+ }
777
+ ]
778
+ },
779
+ "20": {
780
+ name: "punctuation.separator.constant.numeric.go"
781
+ },
782
+ "21": {
783
+ name: "keyword.other.unit.exponent.decimal.go"
784
+ },
785
+ "22": {
786
+ name: "keyword.operator.plus.exponent.decimal.go"
787
+ },
788
+ "23": {
789
+ name: "keyword.operator.minus.exponent.decimal.go"
790
+ },
791
+ "24": {
792
+ name: "constant.numeric.exponent.decimal.go",
793
+ patterns: [
794
+ {
795
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
796
+ name: "punctuation.separator.constant.numeric.go"
797
+ }
798
+ ]
799
+ },
800
+ "25": {
801
+ name: "keyword.other.unit.imaginary.go"
802
+ },
803
+ "26": {
804
+ name: "keyword.other.unit.hexadecimal.go"
805
+ },
806
+ "27": {
807
+ name: "constant.numeric.hexadecimal.go",
808
+ patterns: [
809
+ {
810
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
811
+ name: "punctuation.separator.constant.numeric.go"
812
+ }
813
+ ]
814
+ },
815
+ "28": {
816
+ name: "punctuation.separator.constant.numeric.go"
817
+ },
818
+ "29": {
819
+ name: "constant.numeric.hexadecimal.go"
820
+ },
821
+ "30": {
822
+ name: "constant.numeric.hexadecimal.go",
823
+ patterns: [
824
+ {
825
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
826
+ name: "punctuation.separator.constant.numeric.go"
827
+ }
828
+ ]
829
+ },
830
+ "31": {
831
+ name: "punctuation.separator.constant.numeric.go"
832
+ },
833
+ "32": {
834
+ name: "keyword.other.unit.exponent.hexadecimal.go"
835
+ },
836
+ "33": {
837
+ name: "keyword.operator.plus.exponent.hexadecimal.go"
838
+ },
839
+ "34": {
840
+ name: "keyword.operator.minus.exponent.hexadecimal.go"
841
+ },
842
+ "35": {
843
+ name: "constant.numeric.exponent.hexadecimal.go",
844
+ patterns: [
845
+ {
846
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
847
+ name: "punctuation.separator.constant.numeric.go"
848
+ }
849
+ ]
850
+ },
851
+ "36": {
852
+ name: "keyword.other.unit.imaginary.go"
853
+ },
854
+ "37": {
855
+ name: "keyword.other.unit.hexadecimal.go"
856
+ },
857
+ "38": {
858
+ name: "constant.numeric.hexadecimal.go",
859
+ patterns: [
860
+ {
861
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
862
+ name: "punctuation.separator.constant.numeric.go"
863
+ }
864
+ ]
865
+ },
866
+ "39": {
867
+ name: "punctuation.separator.constant.numeric.go"
868
+ },
869
+ "40": {
870
+ name: "keyword.other.unit.exponent.hexadecimal.go"
871
+ },
872
+ "41": {
873
+ name: "keyword.operator.plus.exponent.hexadecimal.go"
874
+ },
875
+ "42": {
876
+ name: "keyword.operator.minus.exponent.hexadecimal.go"
877
+ },
878
+ "43": {
879
+ name: "constant.numeric.exponent.hexadecimal.go",
880
+ patterns: [
881
+ {
882
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
883
+ name: "punctuation.separator.constant.numeric.go"
884
+ }
885
+ ]
886
+ },
887
+ "44": {
888
+ name: "keyword.other.unit.imaginary.go"
889
+ },
890
+ "45": {
891
+ name: "keyword.other.unit.hexadecimal.go"
892
+ },
893
+ "46": {
894
+ name: "constant.numeric.hexadecimal.go"
895
+ },
896
+ "47": {
897
+ name: "constant.numeric.hexadecimal.go",
898
+ patterns: [
899
+ {
900
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
901
+ name: "punctuation.separator.constant.numeric.go"
902
+ }
903
+ ]
904
+ },
905
+ "48": {
906
+ name: "punctuation.separator.constant.numeric.go"
907
+ },
908
+ "49": {
909
+ name: "keyword.other.unit.exponent.hexadecimal.go"
910
+ },
911
+ "50": {
912
+ name: "keyword.operator.plus.exponent.hexadecimal.go"
913
+ },
914
+ "51": {
915
+ name: "keyword.operator.minus.exponent.hexadecimal.go"
916
+ },
917
+ "52": {
918
+ name: "constant.numeric.exponent.hexadecimal.go",
919
+ patterns: [
920
+ {
921
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
922
+ name: "punctuation.separator.constant.numeric.go"
923
+ }
924
+ ]
925
+ },
926
+ "53": {
927
+ name: "keyword.other.unit.imaginary.go"
928
+ }
929
+ }
930
+ },
931
+ {
932
+ match: "(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$)|(\\G0[bB])_?([01](?:[01]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))|(\\G0[oO]?)_?((?:[0-7]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))+)(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))",
933
+ captures: {
934
+ "1": {
935
+ name: "constant.numeric.decimal.go",
936
+ patterns: [
937
+ {
938
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
939
+ name: "punctuation.separator.constant.numeric.go"
940
+ }
941
+ ]
942
+ },
943
+ "2": {
944
+ name: "punctuation.separator.constant.numeric.go"
945
+ },
946
+ "3": {
947
+ name: "keyword.other.unit.imaginary.go"
948
+ },
949
+ "4": {
950
+ name: "keyword.other.unit.binary.go"
951
+ },
952
+ "5": {
953
+ name: "constant.numeric.binary.go",
954
+ patterns: [
955
+ {
956
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
957
+ name: "punctuation.separator.constant.numeric.go"
958
+ }
959
+ ]
960
+ },
961
+ "6": {
962
+ name: "punctuation.separator.constant.numeric.go"
963
+ },
964
+ "7": {
965
+ name: "keyword.other.unit.imaginary.go"
966
+ },
967
+ "8": {
968
+ name: "keyword.other.unit.octal.go"
969
+ },
970
+ "9": {
971
+ name: "constant.numeric.octal.go",
972
+ patterns: [
973
+ {
974
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
975
+ name: "punctuation.separator.constant.numeric.go"
976
+ }
977
+ ]
978
+ },
979
+ "10": {
980
+ name: "punctuation.separator.constant.numeric.go"
981
+ },
982
+ "11": {
983
+ name: "keyword.other.unit.imaginary.go"
984
+ },
985
+ "12": {
986
+ name: "keyword.other.unit.hexadecimal.go"
987
+ },
988
+ "13": {
989
+ name: "constant.numeric.hexadecimal.go",
990
+ patterns: [
991
+ {
992
+ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",
993
+ name: "punctuation.separator.constant.numeric.go"
994
+ }
995
+ ]
996
+ },
997
+ "14": {
998
+ name: "punctuation.separator.constant.numeric.go"
999
+ },
1000
+ "15": {
1001
+ name: "keyword.other.unit.imaginary.go"
1002
+ }
1003
+ }
1004
+ },
1005
+ {
1006
+ match: "(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])+",
1007
+ name: "invalid.illegal.constant.numeric.go"
1008
+ }
1009
+ ]
1010
+ }
1011
+ ]
1012
+ }
1013
+ }
1014
+ }
1015
+ };
1016
+ var go_tmLanguage = {
1017
+ information_for_contributors: information_for_contributors,
1018
+ version: version,
1019
+ name: name,
1020
+ scopeName: scopeName,
1021
+ patterns: patterns,
1022
+ repository: repository
1023
+ };
1024
+
1025
+ export { go_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };