@codingame/monaco-languageclient-wrapper 1.1.0 → 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 (164) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/main.js +27 -13
  3. package/package.json +15 -15
  4. package/stats.html +1 -1
  5. package/dist/BSV.tmLanguage.js +0 -299
  6. package/dist/COBOL Copybook.js +0 -2017
  7. package/dist/COBOL.js +0 -2017
  8. package/dist/COBOL.tmLanguage.js +0 -149
  9. package/dist/CodinGameMonacoWorkspace.d.ts +0 -13
  10. package/dist/Configuration.d.ts +0 -15
  11. package/dist/Erlang.plist.js +0 -1752
  12. package/dist/JSON.tmLanguage.js +0 -221
  13. package/dist/JSONC.tmLanguage.js +0 -221
  14. package/dist/JavaScript.tmLanguage.js +0 -5894
  15. package/dist/Kotlin.tmLanguage.js +0 -724
  16. package/dist/MagicPython.tmLanguage.js +0 -5340
  17. package/dist/MagicRegExp.tmLanguage.js +0 -505
  18. package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
  19. package/dist/SQL.plist.js +0 -482
  20. package/dist/Scala.tmLanguage.js +0 -1255
  21. package/dist/TypeScript.tmLanguage.js +0 -5641
  22. package/dist/WatchableConsoleWindow.d.ts +0 -22
  23. package/dist/_rollupPluginBabelHelpers.js +0 -54
  24. package/dist/asp-vb-net.tmlanguage.js +0 -247
  25. package/dist/bsv.js +0 -49
  26. package/dist/c.js +0 -18
  27. package/dist/c.tmLanguage.js +0 -3347
  28. package/dist/cabal.tmLanguage.js +0 -66
  29. package/dist/clojure.tmLanguage.js +0 -443
  30. package/dist/codeblock-cabal.js +0 -42
  31. package/dist/codeblock-haskell.js +0 -42
  32. package/dist/codeblock-literate-haskell.js +0 -42
  33. package/dist/codeblock.js +0 -36
  34. package/dist/codeblock2.js +0 -95
  35. package/dist/coffeescript.js +0 -18
  36. package/dist/coffeescript.tmLanguage.js +0 -1324
  37. package/dist/configuration/index.d.ts +0 -5
  38. package/dist/cpp.js +0 -18
  39. package/dist/cpp.tmLanguage.js +0 -19996
  40. package/dist/csharp.js +0 -18
  41. package/dist/csharp.tmLanguage.js +0 -4750
  42. package/dist/css.tmLanguage.js +0 -1873
  43. package/dist/css.worker.js +0 -6
  44. package/dist/cssContribution.js +0 -10
  45. package/dist/cuda-cpp.tmLanguage.js +0 -19993
  46. package/dist/d.js +0 -3159
  47. package/dist/dart.js +0 -530
  48. package/dist/diet.js +0 -758
  49. package/dist/diet2.js +0 -92
  50. package/dist/dml.js +0 -169
  51. package/dist/eex.js +0 -55
  52. package/dist/elixir.js +0 -2341
  53. package/dist/elixir2.js +0 -184
  54. package/dist/erlang.js +0 -195
  55. package/dist/expression.js +0 -846
  56. package/dist/extensions/autofold.d.ts +0 -2
  57. package/dist/extensions/cobol.d.ts +0 -2
  58. package/dist/extensions/index.d.ts +0 -2
  59. package/dist/features/cssContribution.d.ts +0 -1
  60. package/dist/features/htmlContribution.d.ts +0 -1
  61. package/dist/features/jsonContribution.d.ts +0 -1
  62. package/dist/features/typescriptContribution.d.ts +0 -1
  63. package/dist/fsharp.js +0 -18
  64. package/dist/fsharp.tmLanguage.js +0 -1811
  65. package/dist/go.tmLanguage.js +0 -1025
  66. package/dist/groovy.js +0 -229
  67. package/dist/groovy.tmLanguage.js +0 -1391
  68. package/dist/haskell.tmLanguage.js +0 -629
  69. package/dist/html (eex).js +0 -31
  70. package/dist/html-derivative.tmLanguage.js +0 -57
  71. package/dist/html.tmLanguage.js +0 -2652
  72. package/dist/html.tmLanguage2.js +0 -97
  73. package/dist/html.worker.js +0 -6
  74. package/dist/htmlContribution.js +0 -10
  75. package/dist/inline-styles.js +0 -104
  76. package/dist/inline-template.js +0 -88
  77. package/dist/java.js +0 -18
  78. package/dist/java.tmLanguage.js +0 -1863
  79. package/dist/javascript.js +0 -196
  80. package/dist/javascriptreact.js +0 -196
  81. package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
  82. package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
  83. package/dist/json.worker.js +0 -6
  84. package/dist/jsonContribution.js +0 -78
  85. package/dist/keybindings/index.d.ts +0 -2
  86. package/dist/keybindings/keybindingHelper.d.ts +0 -2
  87. package/dist/keybindings/vim.d.ts +0 -3
  88. package/dist/kotlin.js +0 -117
  89. package/dist/kotlinscript.js +0 -117
  90. package/dist/languages/extensions/grammarLoader.d.ts +0 -91037
  91. package/dist/languages/extensions/snippetLoader.d.ts +0 -4578
  92. package/dist/languages/index.d.ts +0 -3
  93. package/dist/languages/monarch/index.d.ts +0 -7
  94. package/dist/languages/monarch/list.d.ts +0 -7
  95. package/dist/languages/monarch/stub-generator.d.ts +0 -2
  96. package/dist/languages/snippets/index.d.ts +0 -1
  97. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
  98. package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
  99. package/dist/languages/textMate/index.d.ts +0 -2
  100. package/dist/literateHaskell.tmLanguage.js +0 -70
  101. package/dist/lua.tmLanguage.js +0 -289
  102. package/dist/markdown.js +0 -103
  103. package/dist/markdown.tmLanguage.js +0 -2784
  104. package/dist/merlin.js +0 -111
  105. package/dist/monaco.d.ts +0 -8
  106. package/dist/objective-c.tmLanguage.js +0 -3618
  107. package/dist/ocaml-hover-info.js +0 -34
  108. package/dist/ocaml-hover-type.js +0 -24
  109. package/dist/ocaml-markdown-codeblock.js +0 -42
  110. package/dist/ocaml.js +0 -2979
  111. package/dist/ocamlbuild.js +0 -239
  112. package/dist/opam.js +0 -149
  113. package/dist/pascal.js +0 -382
  114. package/dist/pascal.tmLanguage.js +0 -169
  115. package/dist/perl.tmLanguage.js +0 -2986
  116. package/dist/perl6.tmLanguage.js +0 -323
  117. package/dist/pgsql.tmLanguage.js +0 -284
  118. package/dist/php.js +0 -265
  119. package/dist/php.tmLanguage.js +0 -3791
  120. package/dist/platform.tmLanguage.js +0 -1135
  121. package/dist/powershell.js +0 -18
  122. package/dist/powershell.tmLanguage.js +0 -1037
  123. package/dist/r.tmLanguage.js +0 -551
  124. package/dist/reason-hover-info.js +0 -34
  125. package/dist/reason-hover-signature.js +0 -21
  126. package/dist/reason-hover-type.js +0 -21
  127. package/dist/reason-markdown-codeblock.js +0 -42
  128. package/dist/reason.js +0 -100
  129. package/dist/ruby.tmLanguage.js +0 -2784
  130. package/dist/rust.tmLanguage.js +0 -1178
  131. package/dist/sassdoc.tmLanguage.js +0 -362
  132. package/dist/scss.tmLanguage.js +0 -1887
  133. package/dist/sdc.tmLanguage.js +0 -712
  134. package/dist/sdl.js +0 -162
  135. package/dist/services/EditorModelResolverService.d.ts +0 -8
  136. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -7
  137. package/dist/shell-unix-bash.tmLanguage.js +0 -1291
  138. package/dist/sql.js +0 -21
  139. package/dist/stub-generator.js +0 -15
  140. package/dist/swift.js +0 -183
  141. package/dist/swift.tmLanguage.js +0 -3288
  142. package/dist/systemverilog.js +0 -208
  143. package/dist/systemverilog.tmLanguage.js +0 -1067
  144. package/dist/tcl.js +0 -151
  145. package/dist/tcl.tmlanguage.yaml.js +0 -5484
  146. package/dist/template.js +0 -207
  147. package/dist/theme/index.d.ts +0 -3
  148. package/dist/theme/registry.d.ts +0 -4
  149. package/dist/theme/semanticHighlight.d.ts +0 -1
  150. package/dist/theme/tools.d.ts +0 -13
  151. package/dist/tools.d.ts +0 -3
  152. package/dist/ts.worker.js +0 -6
  153. package/dist/typescript.js +0 -312
  154. package/dist/typescriptContribution.js +0 -36
  155. package/dist/typescriptreact.js +0 -312
  156. package/dist/ucf.tmLanguage.js +0 -36
  157. package/dist/vb.js +0 -88
  158. package/dist/verilog.js +0 -432
  159. package/dist/verilog.tmLanguage.js +0 -321
  160. package/dist/worker.d.ts +0 -6
  161. package/dist/worker.js +0 -54
  162. package/dist/xml.tmLanguage.js +0 -395
  163. package/dist/xsl.tmLanguage.js +0 -102
  164. package/dist/yaml.tmLanguage.js +0 -629
@@ -1,846 +0,0 @@
1
- var scopeName = "expression.ng";
2
- var injectionSelector = "L:text.html -comment";
3
- var patterns = [
4
- {
5
- include: "#ngExpression"
6
- }
7
- ];
8
- var repository = {
9
- ngExpression: {
10
- name: "meta.expression.ng",
11
- patterns: [
12
- {
13
- include: "#string"
14
- },
15
- {
16
- include: "#literal"
17
- },
18
- {
19
- include: "#ternaryExpression"
20
- },
21
- {
22
- include: "#expressionOperator"
23
- },
24
- {
25
- include: "#functionCall"
26
- },
27
- {
28
- include: "#identifiers"
29
- },
30
- {
31
- include: "#parenExpression"
32
- },
33
- {
34
- include: "#punctuationComma"
35
- },
36
- {
37
- include: "#punctuationAccessor"
38
- }
39
- ]
40
- },
41
- arrayLiteral: {
42
- name: "meta.array.literal.ts",
43
- begin: "\\[",
44
- beginCaptures: {
45
- "0": {
46
- name: "meta.brace.square.ts"
47
- }
48
- },
49
- end: "\\]",
50
- endCaptures: {
51
- "0": {
52
- name: "meta.brace.square.ts"
53
- }
54
- },
55
- patterns: [
56
- {
57
- include: "#ngExpression"
58
- },
59
- {
60
- include: "#punctuationComma"
61
- }
62
- ]
63
- },
64
- booleanLiteral: {
65
- patterns: [
66
- {
67
- name: "constant.language.boolean.true.ts",
68
- match: "(?<!\\.|\\$)\\btrue\\b(?!\\$)"
69
- },
70
- {
71
- name: "constant.language.boolean.false.ts",
72
- match: "(?<!\\.|\\$)\\bfalse\\b(?!\\$)"
73
- }
74
- ]
75
- },
76
- expressionOperator: {
77
- patterns: [
78
- {
79
- match: "((?<!\\|)\\|(?!\\|))\\s?([a-zA-Z0-9\\-\\_\\$]*)",
80
- captures: {
81
- "1": {
82
- name: "keyword.operator.logical.ts"
83
- },
84
- "2": {
85
- name: "entity.name.function.pipe.ng"
86
- }
87
- }
88
- },
89
- {
90
- name: "storage.type.ts",
91
- match: "(?<!\\.|\\$)\\b(let)\\b(?!\\$)"
92
- },
93
- {
94
- name: "keyword.control.flow.ts",
95
- match: "(?<!\\.|\\$)\\b(await)\\b(?!\\$)"
96
- },
97
- {
98
- name: "keyword.operator.expression.delete.ts",
99
- match: "(?<!\\.|\\$)\\bdelete\\b(?!\\$)"
100
- },
101
- {
102
- name: "keyword.operator.expression.in.ts",
103
- match: "(?<!\\.|\\$)\\bin\\b(?!\\$)"
104
- },
105
- {
106
- name: "keyword.operator.expression.of.ts",
107
- match: "(?<!\\.|\\$)\\bof\\b(?!\\$)"
108
- },
109
- {
110
- name: "keyword.control.if.ts",
111
- match: "(?<!\\.|\\$)\\bif\\b(?!\\$)"
112
- },
113
- {
114
- name: "keyword.control.else.ts",
115
- match: "(?<!\\.|\\$)\\belse\\b(?!\\$)"
116
- },
117
- {
118
- name: "keyword.control.then.ts",
119
- match: "(?<!\\.|\\$)\\bthen\\b(?!\\$)"
120
- },
121
- {
122
- name: "keyword.operator.expression.instanceof.ts",
123
- match: "(?<!\\.|\\$)\\binstanceof\\b(?!\\$)"
124
- },
125
- {
126
- name: "keyword.operator.new.ts",
127
- match: "(?<!\\.|\\$)\\bnew\\b(?!\\$)"
128
- },
129
- {
130
- name: "keyword.operator.expression.void.ts",
131
- match: "(?<!\\.|\\$)\\bvoid\\b(?!\\$)"
132
- },
133
- {
134
- begin: "(?<!\\.|\\$)\\bas\\b(?!\\$)",
135
- beginCaptures: {
136
- "0": {
137
- name: "storage.type.as.ts"
138
- }
139
- },
140
- end: "(?=$|\"|[;,:})\\]])",
141
- patterns: [
142
- {
143
- include: "#type"
144
- }
145
- ]
146
- },
147
- {
148
- name: "keyword.operator.assignment.compound.ts",
149
- match: "\\*=|(?<!\\()\\/=|%=|\\+=|\\-="
150
- },
151
- {
152
- name: "keyword.operator.assignment.compound.bitwise.ts",
153
- match: "\\&=|\\^=|<<=|>>=|>>>=|\\|="
154
- },
155
- {
156
- name: "keyword.operator.bitwise.shift.ts",
157
- match: "<<|>>>|>>"
158
- },
159
- {
160
- name: "keyword.operator.comparison.ts",
161
- match: "===|!==|==|!="
162
- },
163
- {
164
- name: "keyword.operator.relational.ts",
165
- match: "<=|>=|<>|<|>"
166
- },
167
- {
168
- name: "keyword.operator.logical.ts",
169
- match: "\\!|&&|\\?\\?|\\|\\|"
170
- },
171
- {
172
- name: "keyword.operator.bitwise.ts",
173
- match: "\\&|~|\\^|\\|"
174
- },
175
- {
176
- name: "keyword.operator.assignment.ts",
177
- match: "\\="
178
- },
179
- {
180
- name: "keyword.operator.decrement.ts",
181
- match: "--"
182
- },
183
- {
184
- name: "keyword.operator.increment.ts",
185
- match: "\\+\\+"
186
- },
187
- {
188
- name: "keyword.operator.arithmetic.ts",
189
- match: "\\%|\\*|\\/|-|\\+"
190
- },
191
- {
192
- match: "(?<=[_$[:alnum:]])\\s*(\\/)(?![\\/*])",
193
- captures: {
194
- "1": {
195
- name: "keyword.operator.arithmetic.ts"
196
- }
197
- }
198
- },
199
- {
200
- include: "#typeofOperator"
201
- }
202
- ]
203
- },
204
- functionCall: {
205
- begin: "(?=(\\??\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()",
206
- end: "(?<=\\))(?!(\\??\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()",
207
- patterns: [
208
- {
209
- name: "punctuation.accessor.ts",
210
- match: "\\?"
211
- },
212
- {
213
- name: "punctuation.accessor.ts",
214
- match: "\\."
215
- },
216
- {
217
- name: "entity.name.function.ts",
218
- match: "([_$[:alpha:]][_$[:alnum:]]*)"
219
- },
220
- {
221
- name: "meta.type.parameters.ts",
222
- begin: "\\<",
223
- beginCaptures: {
224
- "0": {
225
- name: "punctuation.definition.typeparameters.begin.ts"
226
- }
227
- },
228
- end: "\\>",
229
- endCaptures: {
230
- "0": {
231
- name: "punctuation.definition.typeparameters.end.ts"
232
- }
233
- },
234
- patterns: [
235
- {
236
- include: "#type"
237
- },
238
- {
239
- include: "#punctuationComma"
240
- }
241
- ]
242
- },
243
- {
244
- include: "#parenExpression"
245
- }
246
- ]
247
- },
248
- functionParameters: {
249
- name: "meta.parameters.ts",
250
- begin: "\\(",
251
- beginCaptures: {
252
- "0": {
253
- name: "punctuation.definition.parameters.begin.ts"
254
- }
255
- },
256
- end: "\\)",
257
- endCaptures: {
258
- "0": {
259
- name: "punctuation.definition.parameters.end.ts"
260
- }
261
- },
262
- patterns: [
263
- {
264
- include: "#decorator"
265
- },
266
- {
267
- include: "#parameterName"
268
- },
269
- {
270
- include: "#variableInitializer"
271
- },
272
- {
273
- name: "punctuation.separator.parameter.ts",
274
- match: ","
275
- }
276
- ]
277
- },
278
- identifiers: {
279
- patterns: [
280
- {
281
- name: "support.class.ts",
282
- match: "([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*\\.\\s*prototype\\b(?!\\$))"
283
- },
284
- {
285
- match: "(?x)([?!]?\\.)\\s*(?:\n([[:upper:]][_$[:digit:][:upper:]]*)|\n([_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\.\\s*[_$[:alpha:]][_$[:alnum:]]*)",
286
- captures: {
287
- "1": {
288
- name: "punctuation.accessor.ts"
289
- },
290
- "2": {
291
- name: "constant.other.object.property.ts"
292
- },
293
- "3": {
294
- name: "variable.other.object.property.ts"
295
- }
296
- }
297
- },
298
- {
299
- match: "(?x)(?:([?!]?\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*=\\s*((async\\s+)|(function\\s*[(<])|(function\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\s*=>)|((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))",
300
- captures: {
301
- "1": {
302
- name: "punctuation.accessor.ts"
303
- },
304
- "2": {
305
- name: "entity.name.function.ts"
306
- }
307
- }
308
- },
309
- {
310
- match: "([?!]?\\.)\\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])",
311
- captures: {
312
- "1": {
313
- name: "punctuation.accessor.ts"
314
- },
315
- "2": {
316
- name: "constant.other.property.ts"
317
- }
318
- }
319
- },
320
- {
321
- match: "([?!]?\\.)\\s*([_$[:alpha:]][_$[:alnum:]]*)",
322
- captures: {
323
- "1": {
324
- name: "punctuation.accessor.ts"
325
- },
326
- "2": {
327
- name: "variable.other.property.ts"
328
- }
329
- }
330
- },
331
- {
332
- match: "(?x)(?:\n([[:upper:]][_$[:digit:][:upper:]]*)|\n([_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\.\\s*[_$[:alpha:]][_$[:alnum:]]*)",
333
- captures: {
334
- "1": {
335
- name: "constant.other.object.ts"
336
- },
337
- "2": {
338
- name: "variable.other.object.ts"
339
- }
340
- }
341
- },
342
- {
343
- name: "constant.character.other",
344
- match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])"
345
- },
346
- {
347
- name: "variable.other.readwrite.ts",
348
- match: "[_$[:alpha:]][_$[:alnum:]]*"
349
- }
350
- ]
351
- },
352
- literal: {
353
- name: "literal.ts",
354
- patterns: [
355
- {
356
- include: "#numericLiteral"
357
- },
358
- {
359
- include: "#booleanLiteral"
360
- },
361
- {
362
- include: "#nullLiteral"
363
- },
364
- {
365
- include: "#undefinedLiteral"
366
- },
367
- {
368
- include: "#numericConstantLiteral"
369
- },
370
- {
371
- include: "#arrayLiteral"
372
- },
373
- {
374
- include: "#thisLiteral"
375
- }
376
- ]
377
- },
378
- nullLiteral: {
379
- name: "constant.language.null.ts",
380
- match: "(?<!\\.|\\$)\\bnull\\b(?!\\$)"
381
- },
382
- numericLiteral: {
383
- patterns: [
384
- {
385
- name: "constant.numeric.hex.ts",
386
- match: "\\b(?<!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)"
387
- },
388
- {
389
- name: "constant.numeric.binary.ts",
390
- match: "\\b(?<!\\$)0(b|B)[01]+\\b(?!\\$)"
391
- },
392
- {
393
- name: "constant.numeric.octal.ts",
394
- match: "\\\\b(?<!\\$)0(o|O)?[0-7]+\\b(?!\\$)"
395
- },
396
- {
397
- match: "(?x)\n(?<!\\$)(?:\n(?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)|#1.1E+3\n(?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)|#1.E+3\n(?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)|#.1E+3\n(?:\\b[0-9]+[eE][+-]?[0-9]+\\b)|#1E+3(?:\\b[0-9]+(\\.)[0-9]+\\b)|#1.1\n(?:\\b[0-9]+(\\.)\\B)|#1.\n(?:\\B(\\.)[0-9]+\\b)|#.1\n (?:\\b[0-9]+\\b(?!\\.))#1\n)(?!\\$)",
398
- captures: {
399
- "0": {
400
- name: "constant.numeric.decimal.ts"
401
- },
402
- "1": {
403
- name: "meta.delimiter.decimal.period.ts"
404
- },
405
- "2": {
406
- name: "meta.delimiter.decimal.period.ts"
407
- },
408
- "3": {
409
- name: "meta.delimiter.decimal.period.ts"
410
- },
411
- "4": {
412
- name: "meta.delimiter.decimal.period.ts"
413
- },
414
- "5": {
415
- name: "meta.delimiter.decimal.period.ts"
416
- },
417
- "6": {
418
- name: "meta.delimiter.decimal.period.ts"
419
- }
420
- }
421
- }
422
- ]
423
- },
424
- numericConstantLiteral: {
425
- patterns: [
426
- {
427
- name: "constant.language.nan.ts",
428
- match: "(?<!\\.|\\$)\\bNaN\\b(?!\\$)"
429
- },
430
- {
431
- name: "constant.language.infinity.ts",
432
- match: "(?<!\\.|\\$)\\bInfinity\\b(?!\\$)"
433
- }
434
- ]
435
- },
436
- parameterName: {
437
- patterns: [
438
- {
439
- match: "(?x)(?:\\s*\\b(readonly)\\s+)?(?:\\s*\\b(public|private|protected)\\s+)?(\\.\\.\\.)?\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\??)(?=\\s* (=\\s*( (async\\s+) | (function\\s*[(<]) | (function\\s+) | ([_$[:alpha:]][_$[:alnum:]]*\\s*=>) | ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)) ) | (:\\s*( (<) | ([(]\\s*( ([)]) | (\\.\\.\\.) | ([_$[:alnum:]]+\\s*( ([:,?=])| ([)]\\s*=>) )) ))) ))",
440
- captures: {
441
- "1": {
442
- name: "storage.modifier.ts"
443
- },
444
- "2": {
445
- name: "storage.modifier.ts"
446
- },
447
- "3": {
448
- name: "keyword.operator.rest.ts"
449
- },
450
- "4": {
451
- name: "entity.name.function.ts"
452
- },
453
- "5": {
454
- name: "keyword.operator.optional.ts"
455
- }
456
- }
457
- },
458
- {
459
- match: "(?:\\s*\\b(readonly)\\s+)?(?:\\s*\\b(public|private|protected)\\s+)?(\\.\\.\\.)?\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\??)",
460
- captures: {
461
- "1": {
462
- name: "storage.modifier.ts"
463
- },
464
- "2": {
465
- name: "storage.modifier.ts"
466
- },
467
- "3": {
468
- name: "keyword.operator.rest.ts"
469
- },
470
- "4": {
471
- name: "variable.parameter.ts"
472
- },
473
- "5": {
474
- name: "keyword.operator.optional.ts"
475
- }
476
- }
477
- }
478
- ]
479
- },
480
- parenExpression: {
481
- begin: "\\(",
482
- beginCaptures: {
483
- "0": {
484
- name: "meta.brace.round.ts"
485
- }
486
- },
487
- end: "\\)",
488
- endCaptures: {
489
- "0": {
490
- name: "meta.brace.round.ts"
491
- }
492
- },
493
- patterns: [
494
- {
495
- include: "#ngExpression"
496
- },
497
- {
498
- include: "#punctuationComma"
499
- }
500
- ]
501
- },
502
- punctuationAccessor: {
503
- name: "punctuation.accessor.ts",
504
- match: "\\?\\.|\\!\\.|\\."
505
- },
506
- punctuationComma: {
507
- name: "punctuation.separator.comma.ts",
508
- match: ","
509
- },
510
- punctuationSemicolon: {
511
- name: "punctuation.terminator.statement.ts",
512
- match: ";"
513
- },
514
- qstringDouble: {
515
- name: "string.quoted.double.ts",
516
- begin: "\"",
517
- beginCaptures: {
518
- "0": {
519
- name: "punctuation.definition.string.begin.ts"
520
- }
521
- },
522
- end: "(\")|((?:[^\\\\\\n])$)",
523
- endCaptures: {
524
- "1": {
525
- name: "punctuation.definition.string.end.ts"
526
- },
527
- "2": {
528
- name: "invalid.illegal.newline.ts"
529
- }
530
- },
531
- patterns: [
532
- {
533
- include: "#stringCharacterEscape"
534
- }
535
- ]
536
- },
537
- qstringSingle: {
538
- name: "string.quoted.single.ts",
539
- begin: "'",
540
- beginCaptures: {
541
- "0": {
542
- name: "punctuation.definition.string.begin.ts"
543
- }
544
- },
545
- end: "(\\')|((?:[^\\\\\\n])$)",
546
- endCaptures: {
547
- "1": {
548
- name: "punctuation.definition.string.end.ts"
549
- },
550
- "2": {
551
- name: "invalid.illegal.newline.ts"
552
- }
553
- },
554
- patterns: [
555
- {
556
- include: "#stringCharacterEscape"
557
- }
558
- ]
559
- },
560
- stringCharacterEscape: {
561
- name: "constant.character.escape.ts",
562
- match: "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"
563
- },
564
- ternaryExpression: {
565
- begin: "(?!\\?\\.\\s*[^[:digit:]])(\\?)(?!\\?)",
566
- beginCaptures: {
567
- "1": {
568
- name: "keyword.operator.ternary.ts"
569
- }
570
- },
571
- end: "\\s*(:)",
572
- endCaptures: {
573
- "1": {
574
- name: "keyword.operator.ternary.ts"
575
- }
576
- },
577
- patterns: [
578
- {
579
- include: "#ngExpression"
580
- }
581
- ]
582
- },
583
- thisLiteral: {
584
- name: "variable.language.this.ts",
585
- match: "(?<!\\.|\\$)\\bthis\\b(?!\\$)"
586
- },
587
- string: {
588
- patterns: [
589
- {
590
- include: "#qstringSingle"
591
- },
592
- {
593
- include: "#qstringDouble"
594
- }
595
- ]
596
- },
597
- typeAnnotation: {
598
- name: "meta.type.annotation.ts",
599
- begin: ":",
600
- beginCaptures: {
601
- "0": {
602
- name: "keyword.operator.type.annotation.ts"
603
- }
604
- },
605
- end: "(?=$|[,);\\}\\]]|\\/\\/|\")|(?==[^>])|(?<=[\\}>\\]\\)]|[_$[:alpha:]])\\s*(?=\\{)",
606
- patterns: [
607
- {
608
- include: "#type"
609
- }
610
- ]
611
- },
612
- typeBuiltinLiterals: {
613
- name: "support.type.builtin.ts",
614
- match: "(?<!\\.|\\$)\\b(this|true|false|undefined|null)\\b(?!\\$)"
615
- },
616
- typeFnTypeParameters: {
617
- patterns: [
618
- {
619
- name: "meta.type.constructor.ts",
620
- match: "(?<!\\.|\\$)\\b(new)\\b(?=\\s*\\<)",
621
- captures: {
622
- "1": {
623
- name: "keyword.control.new.ts"
624
- }
625
- }
626
- },
627
- {
628
- name: "meta.type.constructor.ts",
629
- begin: "(?<!\\.|\\$)\\b(new)\\b\\s*(?=\\()",
630
- beginCaptures: {
631
- "1": {
632
- name: "keyword.control.new.ts"
633
- }
634
- },
635
- end: "(?<=\\))",
636
- patterns: [
637
- {
638
- include: "#functionParameters"
639
- }
640
- ]
641
- },
642
- {
643
- name: "meta.type.function.ts",
644
- include: "#typeofOperator",
645
- begin: "(?<=\\>)\\s*(?=\\()",
646
- end: "(?<=\\))",
647
- patterns: [
648
- {
649
- include: "#functionParameters"
650
- }
651
- ]
652
- },
653
- {
654
- name: "meta.type.function.ts",
655
- begin: "(?x)((?=[(]\\s*(([)])|(\\.\\.\\.)|([_$[:alnum:]]+\\s*(([:,?=])|([)]\\s*=>))))))",
656
- end: "(?<=\\))",
657
- patterns: [
658
- {
659
- include: "#functionParameters"
660
- }
661
- ]
662
- }
663
- ]
664
- },
665
- typeName: {
666
- patterns: [
667
- {
668
- match: "([_$[:alpha:]][_$[:alnum:]]*)\\s*([?!]?\\.)",
669
- captures: {
670
- "1": {
671
- name: "entity.name.type.module.ts"
672
- },
673
- "2": {
674
- name: "punctuation.accessor.ts"
675
- }
676
- }
677
- },
678
- {
679
- name: "entity.name.type.ts",
680
- match: "[_$[:alpha:]][_$[:alnum:]]*"
681
- }
682
- ]
683
- },
684
- typeObjectMembers: {
685
- patterns: [
686
- {
687
- include: "#typeAnnotation"
688
- },
689
- {
690
- include: "#punctuationComma"
691
- },
692
- {
693
- include: "#punctuationSemicolon"
694
- }
695
- ]
696
- },
697
- typeObject: {
698
- name: "meta.object.type.ts",
699
- begin: "\\{",
700
- beginCaptures: {
701
- "0": {
702
- name: "punctuation.definition.block.ts"
703
- }
704
- },
705
- end: "\\}",
706
- endCaptures: {
707
- "0": {
708
- name: "punctuation.definition.block.ts"
709
- }
710
- },
711
- patterns: [
712
- {
713
- include: "#typeObjectMembers"
714
- }
715
- ]
716
- },
717
- typeOperators: {
718
- patterns: [
719
- {
720
- include: "#typeofOperator"
721
- },
722
- {
723
- name: "keyword.operator.type.ts",
724
- match: "[&|]"
725
- },
726
- {
727
- name: "keyword.operator.expression.keyof.ts",
728
- match: "(?<!\\.|\\$)\\bkeyof\\b(?!\\$)"
729
- }
730
- ]
731
- },
732
- typeParenOrFunctionParameters: {
733
- name: "meta.type.paren.cover.ts",
734
- begin: "\\(",
735
- beginCaptures: {
736
- "0": {
737
- name: "meta.brace.round.ts"
738
- }
739
- },
740
- end: "\\)",
741
- endCaptures: {
742
- "0": {
743
- name: "meta.brace.round.ts"
744
- }
745
- },
746
- patterns: [
747
- {
748
- include: "#type"
749
- },
750
- {
751
- include: "#functionParameters"
752
- }
753
- ]
754
- },
755
- typeTuple: {
756
- name: "meta.type.tuple.ts",
757
- begin: "\\[",
758
- beginCaptures: {
759
- "0": {
760
- name: "meta.brace.square.ts"
761
- }
762
- },
763
- end: "\\]",
764
- endCaptures: {
765
- "0": {
766
- name: "meta.brace.square.ts"
767
- }
768
- },
769
- patterns: [
770
- {
771
- include: "#type"
772
- },
773
- {
774
- include: "#punctuationComma"
775
- }
776
- ]
777
- },
778
- type: {
779
- name: "meta.type.ts",
780
- patterns: [
781
- {
782
- include: "#string"
783
- },
784
- {
785
- include: "#numericLiteral"
786
- },
787
- {
788
- include: "#typeBuiltinLiterals"
789
- },
790
- {
791
- include: "#typeTuple"
792
- },
793
- {
794
- include: "#typeObject"
795
- },
796
- {
797
- include: "#typeOperators"
798
- },
799
- {
800
- include: "#typeFnTypeParameters"
801
- },
802
- {
803
- include: "#typeParenOrFunctionParameters"
804
- },
805
- {
806
- include: "#typeName"
807
- }
808
- ]
809
- },
810
- typeofOperator: {
811
- name: "keyword.operator.expression.typeof.ts",
812
- match: "(?<!\\.|\\$)\\btypeof\\b(?!\\$)"
813
- },
814
- undefinedLiteral: {
815
- name: "constant.language.undefined.ts",
816
- match: "(?<!\\.|\\$)\\bundefined\\b(?!\\$)"
817
- },
818
- variableInitializer: {
819
- begin: "(?<!=|!)(=)(?!=)",
820
- beginCaptures: {
821
- "1": {
822
- name: "keyword.operator.assignment.ts"
823
- }
824
- },
825
- end: "(?=$|[,);}\\]])",
826
- patterns: [
827
- {
828
- include: "#ngExpression"
829
- }
830
- ]
831
- }
832
- };
833
- var information_for_contributors = [
834
- "This file has been converted from https://github.com/angular/vscode-ng-language-service/blob/master/",
835
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
836
- "Once accepted there, we are happy to receive an update request."
837
- ];
838
- var expression = {
839
- scopeName: scopeName,
840
- injectionSelector: injectionSelector,
841
- patterns: patterns,
842
- repository: repository,
843
- information_for_contributors: information_for_contributors
844
- };
845
-
846
- export { expression as default, information_for_contributors, injectionSelector, patterns, repository, scopeName };