@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
@@ -1,1255 +0,0 @@
1
- var fileTypes = [
2
- "scala"
3
- ];
4
- var firstLineMatch = "^#!/.*\\b\\w*scala\\b";
5
- var foldingStartMarker = "/\\*\\*|\\{\\s*$";
6
- var foldingStopMarker = "\\*\\*/|^\\s*\\}";
7
- var keyEquivalent = "^~S";
8
- var repository = {
9
- "empty-parentheses": {
10
- match: "(\\(\\))",
11
- captures: {
12
- "1": {
13
- name: "meta.bracket.scala"
14
- }
15
- },
16
- name: "meta.parentheses.scala"
17
- },
18
- imports: {
19
- end: "(?<=[\\n;])",
20
- begin: "\\b(import)\\s+",
21
- beginCaptures: {
22
- "1": {
23
- name: "keyword.other.import.scala"
24
- }
25
- },
26
- patterns: [
27
- {
28
- include: "#comments"
29
- },
30
- {
31
- match: "\\b(given)\\b",
32
- name: "keyword.other.import.given.scala"
33
- },
34
- {
35
- match: "[A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?",
36
- name: "entity.name.class.import.scala"
37
- },
38
- {
39
- match: "(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))",
40
- name: "entity.name.import.scala"
41
- },
42
- {
43
- match: "\\.",
44
- name: "punctuation.definition.import"
45
- },
46
- {
47
- end: "}",
48
- begin: "{",
49
- beginCaptures: {
50
- "0": {
51
- name: "meta.bracket.scala"
52
- }
53
- },
54
- patterns: [
55
- {
56
- match: "(?x)(given\\s)?\\s*(?:([A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?)|(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)))\\s*(=>)\\s*(?:([A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?)|(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)))\\s*",
57
- captures: {
58
- "1": {
59
- name: "keyword.other.import.given.scala"
60
- },
61
- "2": {
62
- name: "entity.name.class.import.renamed-from.scala"
63
- },
64
- "3": {
65
- name: "entity.name.import.renamed-from.scala"
66
- },
67
- "4": {
68
- name: "keyword.other.arrow.scala"
69
- },
70
- "5": {
71
- name: "entity.name.class.import.renamed-to.scala"
72
- },
73
- "6": {
74
- name: "entity.name.import.renamed-to.scala"
75
- }
76
- }
77
- },
78
- {
79
- match: "\\b(given)\\b",
80
- name: "keyword.other.import.given.scala"
81
- },
82
- {
83
- match: "(given\\s+)?(?:([A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?)|(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)))",
84
- captures: {
85
- "1": {
86
- name: "keyword.other.import.given.scala"
87
- },
88
- "2": {
89
- name: "entity.name.class.import.scala"
90
- },
91
- "3": {
92
- name: "entity.name.import.scala"
93
- }
94
- }
95
- }
96
- ],
97
- endCaptures: {
98
- "0": {
99
- name: "meta.bracket.scala"
100
- }
101
- },
102
- name: "meta.import.selector.scala"
103
- }
104
- ],
105
- name: "meta.import.scala"
106
- },
107
- exports: {
108
- end: "(?<=[\\n;])",
109
- begin: "\\b(export)\\s+(given\\s+)?",
110
- beginCaptures: {
111
- "1": {
112
- name: "keyword.other.export.scala"
113
- },
114
- "2": {
115
- name: "keyword.other.export.given.scala"
116
- }
117
- },
118
- patterns: [
119
- {
120
- include: "#comments"
121
- },
122
- {
123
- match: "(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))",
124
- name: "entity.name.export.scala"
125
- },
126
- {
127
- match: "\\.",
128
- name: "punctuation.definition.export"
129
- },
130
- {
131
- end: "}",
132
- begin: "{",
133
- beginCaptures: {
134
- "0": {
135
- name: "meta.bracket.scala"
136
- }
137
- },
138
- patterns: [
139
- {
140
- match: "(?x)\\s*(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))\\s*(=>)\\s*(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))\\s*",
141
- captures: {
142
- "1": {
143
- name: "entity.name.export.renamed-from.scala"
144
- },
145
- "2": {
146
- name: "keyword.other.arrow.scala"
147
- },
148
- "3": {
149
- name: "entity.name.export.renamed-to.scala"
150
- }
151
- }
152
- },
153
- {
154
- match: "([^\\s.,}]+)",
155
- name: "entity.name.export.scala"
156
- }
157
- ],
158
- endCaptures: {
159
- "0": {
160
- name: "meta.bracket.scala"
161
- }
162
- },
163
- name: "meta.export.selector.scala"
164
- }
165
- ],
166
- name: "meta.export.scala"
167
- },
168
- constants: {
169
- patterns: [
170
- {
171
- match: "\\b(false|null|true)\\b",
172
- name: "constant.language.scala"
173
- },
174
- {
175
- match: "\\b(0[xX][0-9a-fA-F_]*)\\b",
176
- name: "constant.numeric.scala"
177
- },
178
- {
179
- match: "\\b(([0-9][0-9_]*(\\.[0-9][0-9_]*)?)([eE](\\+|-)?[0-9][0-9_]*)?|[0-9][0-9_]*)[LlFfDd]?\\b",
180
- name: "constant.numeric.scala"
181
- },
182
- {
183
- match: "(\\.[0-9][0-9_]*)([eE](\\+|-)?[0-9][0-9_]*)?[LlFfDd]?\\b",
184
- name: "constant.numeric.scala"
185
- },
186
- {
187
- match: "\\b(this|super)\\b",
188
- name: "variable.language.scala"
189
- }
190
- ]
191
- },
192
- "script-header": {
193
- match: "^#!(.*)$",
194
- captures: {
195
- "1": {
196
- name: "string.unquoted.shebang.scala"
197
- }
198
- },
199
- name: "comment.block.shebang.scala"
200
- },
201
- code: {
202
- patterns: [
203
- {
204
- include: "#script-header"
205
- },
206
- {
207
- include: "#storage-modifiers"
208
- },
209
- {
210
- include: "#declarations"
211
- },
212
- {
213
- include: "#inheritance"
214
- },
215
- {
216
- include: "#extension"
217
- },
218
- {
219
- include: "#imports"
220
- },
221
- {
222
- include: "#exports"
223
- },
224
- {
225
- include: "#comments"
226
- },
227
- {
228
- include: "#strings"
229
- },
230
- {
231
- include: "#initialization"
232
- },
233
- {
234
- include: "#xml-literal"
235
- },
236
- {
237
- include: "#keywords"
238
- },
239
- {
240
- include: "#using"
241
- },
242
- {
243
- include: "#constants"
244
- },
245
- {
246
- include: "#scala-symbol"
247
- },
248
- {
249
- include: "#singleton-type"
250
- },
251
- {
252
- include: "#inline"
253
- },
254
- {
255
- include: "#scala-quoted"
256
- },
257
- {
258
- include: "#char-literal"
259
- },
260
- {
261
- include: "#empty-parentheses"
262
- },
263
- {
264
- include: "#parameter-list"
265
- },
266
- {
267
- include: "#qualifiedClassName"
268
- },
269
- {
270
- include: "#backQuotedVariable"
271
- },
272
- {
273
- include: "#curly-braces"
274
- },
275
- {
276
- include: "#meta-brackets"
277
- },
278
- {
279
- include: "#meta-bounds"
280
- },
281
- {
282
- include: "#meta-colons"
283
- }
284
- ]
285
- },
286
- strings: {
287
- patterns: [
288
- {
289
- end: "\"\"\"(?!\")",
290
- begin: "\"\"\"",
291
- beginCaptures: {
292
- "0": {
293
- name: "punctuation.definition.string.begin.scala"
294
- }
295
- },
296
- patterns: [
297
- {
298
- match: "\\\\\\\\|\\\\u[0-9A-Fa-f]{4}",
299
- name: "constant.character.escape.scala"
300
- }
301
- ],
302
- endCaptures: {
303
- "0": {
304
- name: "punctuation.definition.string.end.scala"
305
- }
306
- },
307
- name: "string.quoted.triple.scala"
308
- },
309
- {
310
- begin: "\\b(raw)(\"\"\")",
311
- end: "(\"\"\")(?!\")|\\$\n|(\\$[^\\$\"_{A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}])",
312
- beginCaptures: {
313
- "1": {
314
- name: "keyword.interpolation.scala"
315
- },
316
- "2": {
317
- name: "string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"
318
- }
319
- },
320
- patterns: [
321
- {
322
- match: "\\$[\\$\"]",
323
- name: "constant.character.escape.scala"
324
- },
325
- {
326
- include: "#string-interpolation"
327
- },
328
- {
329
- match: ".",
330
- name: "string.quoted.triple.interpolated.scala"
331
- }
332
- ],
333
- endCaptures: {
334
- "1": {
335
- name: "string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"
336
- },
337
- "2": {
338
- name: "invalid.illegal.unrecognized-string-escape.scala"
339
- }
340
- }
341
- },
342
- {
343
- begin: "\\b((?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?))(\"\"\")",
344
- end: "(\"\"\")(?!\")|\\$\n|(\\$[^\\$\"_{A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}])",
345
- beginCaptures: {
346
- "1": {
347
- name: "keyword.interpolation.scala"
348
- },
349
- "2": {
350
- name: "string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"
351
- }
352
- },
353
- patterns: [
354
- {
355
- include: "#string-interpolation"
356
- },
357
- {
358
- match: "\\\\\\\\|\\\\u[0-9A-Fa-f]{4}",
359
- name: "constant.character.escape.scala"
360
- },
361
- {
362
- match: ".",
363
- name: "string.quoted.triple.interpolated.scala"
364
- }
365
- ],
366
- endCaptures: {
367
- "1": {
368
- name: "string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"
369
- },
370
- "2": {
371
- name: "invalid.illegal.unrecognized-string-escape.scala"
372
- }
373
- }
374
- },
375
- {
376
- end: "\"",
377
- begin: "\"",
378
- beginCaptures: {
379
- "0": {
380
- name: "punctuation.definition.string.begin.scala"
381
- }
382
- },
383
- patterns: [
384
- {
385
- match: "\\\\(?:[btnfr\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})",
386
- name: "constant.character.escape.scala"
387
- },
388
- {
389
- match: "\\\\.",
390
- name: "invalid.illegal.unrecognized-string-escape.scala"
391
- }
392
- ],
393
- endCaptures: {
394
- "0": {
395
- name: "punctuation.definition.string.end.scala"
396
- }
397
- },
398
- name: "string.quoted.double.scala"
399
- },
400
- {
401
- begin: "\\b(raw)(\")",
402
- end: "(\")|\\$\n|(\\$[^\\$\"_{A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}])",
403
- beginCaptures: {
404
- "1": {
405
- name: "keyword.interpolation.scala"
406
- },
407
- "2": {
408
- name: "string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"
409
- }
410
- },
411
- patterns: [
412
- {
413
- match: "\\$[\\$\"]",
414
- name: "constant.character.escape.scala"
415
- },
416
- {
417
- include: "#string-interpolation"
418
- },
419
- {
420
- match: ".",
421
- name: "string.quoted.double.interpolated.scala"
422
- }
423
- ],
424
- endCaptures: {
425
- "1": {
426
- name: "string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"
427
- },
428
- "2": {
429
- name: "invalid.illegal.unrecognized-string-escape.scala"
430
- }
431
- }
432
- },
433
- {
434
- begin: "\\b((?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?))(\")",
435
- end: "(\")|\\$\n|(\\$[^\\$\"_{A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}])",
436
- beginCaptures: {
437
- "1": {
438
- name: "keyword.interpolation.scala"
439
- },
440
- "2": {
441
- name: "string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"
442
- }
443
- },
444
- patterns: [
445
- {
446
- match: "\\$[\\$\"]",
447
- name: "constant.character.escape.scala"
448
- },
449
- {
450
- include: "#string-interpolation"
451
- },
452
- {
453
- match: "\\\\(?:[btnfr\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})",
454
- name: "constant.character.escape.scala"
455
- },
456
- {
457
- match: "\\\\.",
458
- name: "invalid.illegal.unrecognized-string-escape.scala"
459
- },
460
- {
461
- match: ".",
462
- name: "string.quoted.double.interpolated.scala"
463
- }
464
- ],
465
- endCaptures: {
466
- "1": {
467
- name: "string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"
468
- },
469
- "2": {
470
- name: "invalid.illegal.unrecognized-string-escape.scala"
471
- }
472
- }
473
- }
474
- ]
475
- },
476
- using: {
477
- patterns: [
478
- {
479
- match: "(?<=\\()\\s*(using)\\s",
480
- captures: {
481
- "1": {
482
- name: "keyword.declaration.scala"
483
- }
484
- }
485
- }
486
- ]
487
- },
488
- "string-interpolation": {
489
- patterns: [
490
- {
491
- name: "constant.character.escape.interpolation.scala",
492
- match: "\\$\\$"
493
- },
494
- {
495
- name: "meta.template.expression.scala",
496
- match: "(\\$)([A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\p{Lo}\\p{Nl}\\p{Ll}0-9]*)",
497
- captures: {
498
- "1": {
499
- name: "punctuation.definition.template-expression.begin.scala"
500
- }
501
- }
502
- },
503
- {
504
- name: "meta.template.expression.scala",
505
- begin: "\\$\\{",
506
- beginCaptures: {
507
- "0": {
508
- name: "punctuation.definition.template-expression.begin.scala"
509
- }
510
- },
511
- end: "\\}",
512
- endCaptures: {
513
- "0": {
514
- name: "punctuation.definition.template-expression.end.scala"
515
- }
516
- },
517
- patterns: [
518
- {
519
- include: "#code"
520
- }
521
- ],
522
- contentName: "meta.embedded.line.scala"
523
- }
524
- ]
525
- },
526
- "xml-entity": {
527
- match: "(&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)",
528
- captures: {
529
- "1": {
530
- name: "punctuation.definition.constant.xml"
531
- },
532
- "3": {
533
- name: "punctuation.definition.constant.xml"
534
- }
535
- },
536
- name: "constant.character.entity.xml"
537
- },
538
- "xml-singlequotedString": {
539
- end: "'",
540
- begin: "'",
541
- beginCaptures: {
542
- "0": {
543
- name: "punctuation.definition.string.begin.xml"
544
- }
545
- },
546
- patterns: [
547
- {
548
- include: "#xml-entity"
549
- }
550
- ],
551
- endCaptures: {
552
- "0": {
553
- name: "punctuation.definition.string.end.xml"
554
- }
555
- },
556
- name: "string.quoted.single.xml"
557
- },
558
- "meta-colons": {
559
- patterns: [
560
- {
561
- match: "(?<!:):(?!:)",
562
- name: "meta.colon.scala"
563
- }
564
- ],
565
- comment: "For themes: Matching type colons"
566
- },
567
- keywords: {
568
- patterns: [
569
- {
570
- match: "\\b(return|throw)\\b",
571
- name: "keyword.control.flow.jump.scala"
572
- },
573
- {
574
- match: "\\b(classOf|isInstanceOf|asInstanceOf)\\b",
575
- name: "support.function.type-of.scala"
576
- },
577
- {
578
- match: "\\b(else|if|then|do|while|for|yield|match|case)\\b",
579
- name: "keyword.control.flow.scala"
580
- },
581
- {
582
- match: "^\\s*(end)\\s+(if|while|for|match)(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)",
583
- name: "keyword.control.flow.end.scala"
584
- },
585
- {
586
- match: "^\\s*(end)\\s+(val)(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)",
587
- name: "keyword.declaration.stable.end.scala"
588
- },
589
- {
590
- match: "^\\s*(end)\\s+(var)(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)",
591
- name: "keyword.declaration.volatile.end.scala"
592
- },
593
- {
594
- match: "^\\s*(end)\\s+(?:(new|extension)|([A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?))(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)",
595
- captures: {
596
- "1": {
597
- name: "keyword.declaration.end.scala"
598
- },
599
- "2": {
600
- name: "keyword.declaration.end.scala"
601
- },
602
- "3": {
603
- name: "entity.name.type.declaration"
604
- }
605
- }
606
- },
607
- {
608
- match: "^\\s*(end)\\s+(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))?(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)",
609
- captures: {
610
- "1": {
611
- name: "keyword.declaration.end.scala"
612
- },
613
- "2": {
614
- name: "entity.name.declaration"
615
- }
616
- }
617
- },
618
- {
619
- match: "\\b(catch|finally|try)\\b",
620
- name: "keyword.control.exception.scala"
621
- },
622
- {
623
- match: "(==?|!=|<=|>=|<>|<|>)",
624
- name: "keyword.operator.comparison.scala"
625
- },
626
- {
627
- match: "(\\-|\\+|\\*|/(?![/*])|%|~)",
628
- name: "keyword.operator.arithmetic.scala"
629
- },
630
- {
631
- match: "(?<![!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|_)(!|&&|\\|\\|)(?![!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}])",
632
- name: "keyword.operator.logical.scala"
633
- },
634
- {
635
- match: "(<-|←|->|→|=>|⇒|\\?|\\:+|@|\\|)+",
636
- name: "keyword.operator.scala"
637
- }
638
- ]
639
- },
640
- "singleton-type": {
641
- match: "\\.(type)(?![A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[0-9])",
642
- captures: {
643
- "1": {
644
- name: "keyword.type.scala"
645
- }
646
- }
647
- },
648
- inline: {
649
- patterns: [
650
- {
651
- match: "\\b(inline)(?=\\s+((?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)\\s*:)",
652
- name: "storage.modifier.other"
653
- },
654
- {
655
- match: "\\b(inline)\\b(?=(?:.(?!\\b(?:val|def|given)\\b))*\\b(if|match)\\b)",
656
- name: "keyword.control.flow.scala"
657
- }
658
- ]
659
- },
660
- "scala-quoted": {
661
- patterns: [
662
- {
663
- match: "['$]\\{(?!')",
664
- name: "punctuation.section.block.begin.scala"
665
- },
666
- {
667
- match: "'\\[(?!')",
668
- name: "meta.bracket.scala"
669
- }
670
- ]
671
- },
672
- "xml-doublequotedString": {
673
- end: "\"",
674
- begin: "\"",
675
- beginCaptures: {
676
- "0": {
677
- name: "punctuation.definition.string.begin.xml"
678
- }
679
- },
680
- patterns: [
681
- {
682
- include: "#xml-entity"
683
- }
684
- ],
685
- endCaptures: {
686
- "0": {
687
- name: "punctuation.definition.string.end.xml"
688
- }
689
- },
690
- name: "string.quoted.double.xml"
691
- },
692
- declarations: {
693
- patterns: [
694
- {
695
- match: "\\b(def)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
696
- captures: {
697
- "1": {
698
- name: "keyword.declaration.scala"
699
- },
700
- "2": {
701
- name: "entity.name.function.declaration"
702
- }
703
- }
704
- },
705
- {
706
- match: "\\b(trait)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
707
- captures: {
708
- "1": {
709
- name: "keyword.declaration.scala"
710
- },
711
- "2": {
712
- name: "entity.name.class.declaration"
713
- }
714
- }
715
- },
716
- {
717
- match: "\\b(?:(case)\\s+)?(class|object|enum)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
718
- captures: {
719
- "1": {
720
- name: "keyword.declaration.scala"
721
- },
722
- "2": {
723
- name: "keyword.declaration.scala"
724
- },
725
- "3": {
726
- name: "entity.name.class.declaration"
727
- }
728
- }
729
- },
730
- {
731
- match: "(?<!\\.)\\b(type)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
732
- captures: {
733
- "1": {
734
- name: "keyword.declaration.scala"
735
- },
736
- "2": {
737
- name: "entity.name.type.declaration"
738
- }
739
- }
740
- },
741
- {
742
- match: "\\b(?:(val)|(var))\\b\\s*(?!//|/\\*)(?=(?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)?\\()",
743
- captures: {
744
- "1": {
745
- name: "keyword.declaration.stable.scala"
746
- },
747
- "2": {
748
- name: "keyword.declaration.volatile.scala"
749
- }
750
- }
751
- },
752
- {
753
- match: "\\b(?:(val)|(var))\\b\\s*(?!//|/\\*)(?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)(?=\\s*,)",
754
- captures: {
755
- "1": {
756
- name: "keyword.declaration.stable.scala"
757
- },
758
- "2": {
759
- name: "keyword.declaration.volatile.scala"
760
- }
761
- }
762
- },
763
- {
764
- match: "\\b(?:(val)|(var))\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
765
- captures: {
766
- "1": {
767
- name: "keyword.declaration.stable.scala"
768
- },
769
- "2": {
770
- name: "keyword.declaration.volatile.scala"
771
- },
772
- "3": {
773
- name: "variable.other.declaration.scala"
774
- }
775
- }
776
- },
777
- {
778
- match: "\\b(package)\\s+(object)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))?",
779
- captures: {
780
- "1": {
781
- name: "keyword.other.scoping.scala"
782
- },
783
- "2": {
784
- name: "keyword.declaration.scala"
785
- },
786
- "3": {
787
- name: "entity.name.class.declaration"
788
- }
789
- }
790
- },
791
- {
792
- end: "(?<=[\\n;])",
793
- begin: "\\b(package)\\s+",
794
- beginCaptures: {
795
- "1": {
796
- name: "keyword.other.import.scala"
797
- }
798
- },
799
- patterns: [
800
- {
801
- include: "#comments"
802
- },
803
- {
804
- match: "(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))",
805
- name: "entity.name.package.scala"
806
- },
807
- {
808
- match: "\\.",
809
- name: "punctuation.definition.package"
810
- }
811
- ],
812
- name: "meta.package.scala"
813
- },
814
- {
815
- match: "\\b(given)\\b\\s*([_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|`[^`]+`)?",
816
- captures: {
817
- "1": {
818
- name: "keyword.declaration.scala"
819
- },
820
- "2": {
821
- name: "entity.name.given.declaration"
822
- }
823
- }
824
- }
825
- ]
826
- },
827
- "char-literal": {
828
- end: "'|$",
829
- begin: "'",
830
- beginCaptures: {
831
- "0": {
832
- name: "punctuation.definition.character.begin.scala"
833
- }
834
- },
835
- patterns: [
836
- {
837
- match: "\\\\(?:[btnfr\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})",
838
- name: "constant.character.escape.scala"
839
- },
840
- {
841
- match: "\\\\.",
842
- name: "invalid.illegal.unrecognized-character-escape.scala"
843
- },
844
- {
845
- match: "[^']{2,}",
846
- name: "invalid.illegal.character-literal-too-long"
847
- },
848
- {
849
- match: "(?<!')[^']",
850
- name: "invalid.illegal.character-literal-too-long"
851
- }
852
- ],
853
- endCaptures: {
854
- "0": {
855
- name: "punctuation.definition.character.end.scala"
856
- }
857
- },
858
- name: "string.quoted.other constant.character.literal.scala"
859
- },
860
- initialization: {
861
- match: "\\b(new)\\b",
862
- captures: {
863
- "1": {
864
- name: "keyword.declaration.scala"
865
- }
866
- }
867
- },
868
- "scala-symbol": {
869
- match: "(?>'(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))(?!')",
870
- name: "constant.other.symbol.scala"
871
- },
872
- "curly-braces": {
873
- begin: "\\{",
874
- end: "\\}",
875
- beginCaptures: {
876
- "0": {
877
- name: "punctuation.section.block.begin.scala"
878
- }
879
- },
880
- endCaptures: {
881
- "0": {
882
- name: "punctuation.section.block.end.scala"
883
- }
884
- },
885
- patterns: [
886
- {
887
- include: "#code"
888
- }
889
- ]
890
- },
891
- "meta-brackets": {
892
- patterns: [
893
- {
894
- match: "\\{",
895
- comment: "The punctuation.section.*.begin is needed for return snippet in source bundle",
896
- name: "punctuation.section.block.begin.scala"
897
- },
898
- {
899
- match: "\\}",
900
- comment: "The punctuation.section.*.end is needed for return snippet in source bundle",
901
- name: "punctuation.section.block.end.scala"
902
- },
903
- {
904
- match: "{|}|\\(|\\)|\\[|\\]",
905
- name: "meta.bracket.scala"
906
- }
907
- ],
908
- comment: "For themes: Brackets look nice when colored."
909
- },
910
- qualifiedClassName: {
911
- match: "(\\b([A-Z][\\w]*)(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?)",
912
- captures: {
913
- "1": {
914
- name: "entity.name.class"
915
- }
916
- }
917
- },
918
- backQuotedVariable: {
919
- match: "`[^`]+`"
920
- },
921
- "storage-modifiers": {
922
- patterns: [
923
- {
924
- match: "\\b(private\\[\\S+\\]|protected\\[\\S+\\]|private|protected)\\b",
925
- name: "storage.modifier.access"
926
- },
927
- {
928
- match: "\\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\\b",
929
- name: "storage.modifier.other"
930
- },
931
- {
932
- match: "(?<=^|\\s)\\b(transparent|opaque|infix|open|inline)\\b(?=[a-z\\s]*\\b(def|val|var|given|type|class|trait|object|enum)\\b)",
933
- name: "storage.modifier.other"
934
- }
935
- ]
936
- },
937
- "meta-bounds": {
938
- match: "<%|=:=|<:<|<%<|>:|<:",
939
- comment: "For themes: Matching view bounds",
940
- name: "meta.bounds.scala"
941
- },
942
- comments: {
943
- patterns: [
944
- {
945
- include: "#block-comments"
946
- },
947
- {
948
- end: "(?!\\G)",
949
- begin: "(^[ \\t]+)?(?=//)",
950
- beginCaptures: {
951
- "1": {
952
- name: "punctuation.whitespace.comment.leading.scala"
953
- }
954
- },
955
- patterns: [
956
- {
957
- end: "\\n",
958
- begin: "//",
959
- beginCaptures: {
960
- "0": {
961
- name: "punctuation.definition.comment.scala"
962
- }
963
- },
964
- name: "comment.line.double-slash.scala"
965
- }
966
- ]
967
- }
968
- ]
969
- },
970
- "block-comments": {
971
- patterns: [
972
- {
973
- match: "/\\*\\*/",
974
- captures: {
975
- "0": {
976
- name: "punctuation.definition.comment.scala"
977
- }
978
- },
979
- name: "comment.block.empty.scala"
980
- },
981
- {
982
- end: "\\*/",
983
- begin: "^\\s*(/\\*\\*)(?!/)",
984
- beginCaptures: {
985
- "1": {
986
- name: "punctuation.definition.comment.scala"
987
- }
988
- },
989
- patterns: [
990
- {
991
- match: "(@param)\\s+(\\S+)",
992
- captures: {
993
- "1": {
994
- name: "keyword.other.documentation.scaladoc.scala"
995
- },
996
- "2": {
997
- name: "variable.parameter.scala"
998
- }
999
- }
1000
- },
1001
- {
1002
- match: "(@(?:tparam|throws))\\s+(\\S+)",
1003
- captures: {
1004
- "1": {
1005
- name: "keyword.other.documentation.scaladoc.scala"
1006
- },
1007
- "2": {
1008
- name: "entity.name.class"
1009
- }
1010
- }
1011
- },
1012
- {
1013
- match: "@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc)\\b",
1014
- name: "keyword.other.documentation.scaladoc.scala"
1015
- },
1016
- {
1017
- match: "(\\[\\[)([^\\]]+)(\\]\\])",
1018
- captures: {
1019
- "1": {
1020
- name: "punctuation.definition.documentation.link.scala"
1021
- },
1022
- "2": {
1023
- name: "string.other.link.title.markdown"
1024
- },
1025
- "3": {
1026
- name: "punctuation.definition.documentation.link.scala"
1027
- }
1028
- }
1029
- },
1030
- {
1031
- include: "#block-comments"
1032
- }
1033
- ],
1034
- endCaptures: {
1035
- "0": {
1036
- name: "punctuation.definition.comment.scala"
1037
- }
1038
- },
1039
- name: "comment.block.documentation.scala"
1040
- },
1041
- {
1042
- end: "\\*/",
1043
- begin: "/\\*",
1044
- captures: {
1045
- "0": {
1046
- name: "punctuation.definition.comment.scala"
1047
- }
1048
- },
1049
- patterns: [
1050
- {
1051
- include: "#block-comments"
1052
- }
1053
- ],
1054
- name: "comment.block.scala"
1055
- }
1056
- ]
1057
- },
1058
- "xml-embedded-content": {
1059
- patterns: [
1060
- {
1061
- end: "}",
1062
- begin: "{",
1063
- patterns: [
1064
- {
1065
- include: "#code"
1066
- }
1067
- ],
1068
- captures: {
1069
- "0": {
1070
- name: "meta.bracket.scala"
1071
- }
1072
- },
1073
- name: "meta.source.embedded.scala"
1074
- },
1075
- {
1076
- match: " (?:([-_a-zA-Z0-9]+)((:)))?([_a-zA-Z-]+)=",
1077
- captures: {
1078
- "1": {
1079
- name: "entity.other.attribute-name.namespace.xml"
1080
- },
1081
- "2": {
1082
- name: "entity.other.attribute-name.xml"
1083
- },
1084
- "3": {
1085
- name: "punctuation.separator.namespace.xml"
1086
- },
1087
- "4": {
1088
- name: "entity.other.attribute-name.localname.xml"
1089
- }
1090
- }
1091
- },
1092
- {
1093
- include: "#xml-doublequotedString"
1094
- },
1095
- {
1096
- include: "#xml-singlequotedString"
1097
- }
1098
- ]
1099
- },
1100
- inheritance: {
1101
- patterns: [
1102
- {
1103
- match: "\\b(extends|with|derives)\\b\\s*([A-Z\\p{Lt}\\p{Lu}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|`[^`]+`|(?=\\([^\\)]+=>)|(?=(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))|(?=\"))?",
1104
- captures: {
1105
- "1": {
1106
- name: "keyword.declaration.scala"
1107
- },
1108
- "2": {
1109
- name: "entity.other.inherited-class.scala"
1110
- }
1111
- }
1112
- }
1113
- ]
1114
- },
1115
- extension: {
1116
- patterns: [
1117
- {
1118
- match: "^\\s*(extension)\\s+(?=[\\[\\(])",
1119
- captures: {
1120
- "1": {
1121
- name: "keyword.declaration.scala"
1122
- }
1123
- }
1124
- }
1125
- ]
1126
- },
1127
- "parameter-list": {
1128
- patterns: [
1129
- {
1130
- match: "(?<=[^\\._$a-zA-Z0-9])(`[^`]+`|[_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?)\\s*(:)\\s+",
1131
- captures: {
1132
- "1": {
1133
- name: "variable.parameter.scala"
1134
- },
1135
- "2": {
1136
- name: "meta.colon.scala"
1137
- }
1138
- }
1139
- }
1140
- ]
1141
- },
1142
- "xml-literal": {
1143
- patterns: [
1144
- {
1145
- end: "(>(<))/(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]*[_a-zA-Z0-9])(>)",
1146
- begin: "(<)((?:([_a-zA-Z0-9][_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][-_a-zA-Z0-9:]*))(?=(\\s[^>]*)?></\\2>)",
1147
- beginCaptures: {
1148
- "1": {
1149
- name: "punctuation.definition.tag.xml"
1150
- },
1151
- "3": {
1152
- name: "entity.name.tag.namespace.xml"
1153
- },
1154
- "4": {
1155
- name: "entity.name.tag.xml"
1156
- },
1157
- "5": {
1158
- name: "punctuation.separator.namespace.xml"
1159
- },
1160
- "6": {
1161
- name: "entity.name.tag.localname.xml"
1162
- }
1163
- },
1164
- patterns: [
1165
- {
1166
- include: "#xml-embedded-content"
1167
- }
1168
- ],
1169
- comment: "We do not allow a tag name to start with a - since this would likely conflict with the <- operator. This is not very common for tag names anyway. Also code such as -- if (val <val2 || val> val3) will falsly be recognized as an xml tag. The solution is to put a space on either side of the comparison operator",
1170
- endCaptures: {
1171
- "1": {
1172
- name: "punctuation.definition.tag.xml"
1173
- },
1174
- "2": {
1175
- name: "meta.scope.between-tag-pair.xml"
1176
- },
1177
- "3": {
1178
- name: "entity.name.tag.namespace.xml"
1179
- },
1180
- "4": {
1181
- name: "entity.name.tag.xml"
1182
- },
1183
- "5": {
1184
- name: "punctuation.separator.namespace.xml"
1185
- },
1186
- "6": {
1187
- name: "entity.name.tag.localname.xml"
1188
- },
1189
- "7": {
1190
- name: "punctuation.definition.tag.xml"
1191
- }
1192
- },
1193
- name: "meta.tag.no-content.xml"
1194
- },
1195
- {
1196
- end: "(/?>)",
1197
- begin: "(</?)(?:([_a-zA-Z0-9][-_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][-_a-zA-Z0-9:]*)(?=[^>]*?>)",
1198
- patterns: [
1199
- {
1200
- include: "#xml-embedded-content"
1201
- }
1202
- ],
1203
- captures: {
1204
- "1": {
1205
- name: "punctuation.definition.tag.xml"
1206
- },
1207
- "2": {
1208
- name: "entity.name.tag.namespace.xml"
1209
- },
1210
- "3": {
1211
- name: "entity.name.tag.xml"
1212
- },
1213
- "4": {
1214
- name: "punctuation.separator.namespace.xml"
1215
- },
1216
- "5": {
1217
- name: "entity.name.tag.localname.xml"
1218
- }
1219
- },
1220
- name: "meta.tag.xml"
1221
- },
1222
- {
1223
- include: "#xml-entity"
1224
- }
1225
- ]
1226
- }
1227
- };
1228
- var uuid = "158C0929-299A-40C8-8D89-316BE0C446E8";
1229
- var patterns = [
1230
- {
1231
- include: "#code"
1232
- }
1233
- ];
1234
- var name = "Scala";
1235
- var scopeName = "source.scala";
1236
- var information_for_contributors = [
1237
- "This file has been converted from https://github.com/scala/vscode-scala-syntax/blob/master/",
1238
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
1239
- "Once accepted there, we are happy to receive an update request."
1240
- ];
1241
- var Scala_tmLanguage = {
1242
- fileTypes: fileTypes,
1243
- firstLineMatch: firstLineMatch,
1244
- foldingStartMarker: foldingStartMarker,
1245
- foldingStopMarker: foldingStopMarker,
1246
- keyEquivalent: keyEquivalent,
1247
- repository: repository,
1248
- uuid: uuid,
1249
- patterns: patterns,
1250
- name: name,
1251
- scopeName: scopeName,
1252
- information_for_contributors: information_for_contributors
1253
- };
1254
-
1255
- export { Scala_tmLanguage as default, fileTypes, firstLineMatch, foldingStartMarker, foldingStopMarker, information_for_contributors, keyEquivalent, name, patterns, repository, scopeName, uuid };