@codingame/monaco-languageclient-wrapper 1.4.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 (167) 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 +6 -1
  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/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/inline-styles.js +104 -0
  73. package/dist/inline-template.js +88 -0
  74. package/dist/java.js +18 -0
  75. package/dist/java.tmLanguage.js +1863 -0
  76. package/dist/javascript.js +196 -0
  77. package/dist/javascriptreact.js +196 -0
  78. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  79. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  80. package/dist/json.worker.js +6 -0
  81. package/dist/jsonContribution.js +78 -0
  82. package/dist/keybindings/index.d.ts +2 -0
  83. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  84. package/dist/keybindings/vim.d.ts +3 -0
  85. package/dist/kotlin.js +117 -0
  86. package/dist/kotlinscript.js +117 -0
  87. package/dist/languageClient.d.ts +16 -4
  88. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  89. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  90. package/dist/languages/index.d.ts +3 -0
  91. package/dist/languages/monarch/index.d.ts +7 -0
  92. package/dist/languages/monarch/list.d.ts +7 -0
  93. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  94. package/dist/languages/snippets/index.d.ts +1 -0
  95. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  96. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  97. package/dist/languages/textMate/index.d.ts +2 -0
  98. package/dist/literateHaskell.tmLanguage.js +70 -0
  99. package/dist/lua.tmLanguage.js +289 -0
  100. package/dist/main.js +56 -21
  101. package/dist/markdown.js +103 -0
  102. package/dist/markdown.tmLanguage.js +2784 -0
  103. package/dist/merlin.js +111 -0
  104. package/dist/monaco.d.ts +8 -0
  105. package/dist/objective-c.tmLanguage.js +3618 -0
  106. package/dist/ocaml-hover-info.js +34 -0
  107. package/dist/ocaml-hover-type.js +24 -0
  108. package/dist/ocaml-markdown-codeblock.js +42 -0
  109. package/dist/ocaml.js +2979 -0
  110. package/dist/ocamlbuild.js +239 -0
  111. package/dist/opam.js +149 -0
  112. package/dist/pascal.js +382 -0
  113. package/dist/pascal.tmLanguage.js +169 -0
  114. package/dist/perl.tmLanguage.js +2986 -0
  115. package/dist/perl6.tmLanguage.js +323 -0
  116. package/dist/pgsql.tmLanguage.js +284 -0
  117. package/dist/php.js +265 -0
  118. package/dist/php.tmLanguage.js +3791 -0
  119. package/dist/platform.tmLanguage.js +1135 -0
  120. package/dist/powershell.js +18 -0
  121. package/dist/powershell.tmLanguage.js +1037 -0
  122. package/dist/r.tmLanguage.js +551 -0
  123. package/dist/reason-hover-info.js +34 -0
  124. package/dist/reason-hover-signature.js +21 -0
  125. package/dist/reason-hover-type.js +21 -0
  126. package/dist/reason-markdown-codeblock.js +42 -0
  127. package/dist/reason.js +100 -0
  128. package/dist/ruby.tmLanguage.js +2784 -0
  129. package/dist/rust.tmLanguage.js +1178 -0
  130. package/dist/sassdoc.tmLanguage.js +362 -0
  131. package/dist/scss.tmLanguage.js +1887 -0
  132. package/dist/sdc.tmLanguage.js +712 -0
  133. package/dist/sdl.js +162 -0
  134. package/dist/services/EditorModelResolverService.d.ts +8 -0
  135. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  136. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  137. package/dist/sql.js +21 -0
  138. package/dist/stub-generator.js +15 -0
  139. package/dist/swift.js +183 -0
  140. package/dist/swift.tmLanguage.js +3288 -0
  141. package/dist/systemverilog.js +208 -0
  142. package/dist/systemverilog.tmLanguage.js +1067 -0
  143. package/dist/tcl.js +151 -0
  144. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  145. package/dist/template.js +207 -0
  146. package/dist/theme/index.d.ts +3 -0
  147. package/dist/theme/registry.d.ts +4 -0
  148. package/dist/theme/semanticHighlight.d.ts +1 -0
  149. package/dist/theme/tools.d.ts +13 -0
  150. package/dist/tools.d.ts +3 -0
  151. package/dist/ts.worker.js +6 -0
  152. package/dist/typescript.js +312 -0
  153. package/dist/typescriptContribution.js +36 -0
  154. package/dist/typescriptreact.js +312 -0
  155. package/dist/ucf.tmLanguage.js +36 -0
  156. package/dist/vb.js +88 -0
  157. package/dist/verilog.js +432 -0
  158. package/dist/verilog.tmLanguage.js +321 -0
  159. package/dist/worker.d.ts +6 -0
  160. package/dist/worker.js +54 -0
  161. package/dist/xml.tmLanguage.js +395 -0
  162. package/dist/xsl.tmLanguage.js +102 -0
  163. package/dist/yaml.tmLanguage.js +629 -0
  164. package/package.json +1 -1
  165. package/stats.html +1 -1
  166. package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
  167. package/dist/tsdoc-metadata.json +0 -11
@@ -0,0 +1,846 @@
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 };