@codingame/monaco-languageclient-wrapper 1.4.1 → 1.4.2

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 (165) hide show
  1. package/dist/main.js +6 -5
  2. package/dist/monaco-languageclient-wrapper.d.ts +1478 -0
  3. package/dist/tsdoc-metadata.json +11 -0
  4. package/package.json +13 -13
  5. package/stats.html +205 -795
  6. package/dist/BSV.tmLanguage.js +0 -299
  7. package/dist/COBOL Copybook.js +0 -2017
  8. package/dist/COBOL.js +0 -2017
  9. package/dist/COBOL.tmLanguage.js +0 -149
  10. package/dist/CodinGameMonacoWorkspace.d.ts +0 -13
  11. package/dist/Configuration.d.ts +0 -15
  12. package/dist/Erlang.plist.js +0 -1752
  13. package/dist/JSON.tmLanguage.js +0 -221
  14. package/dist/JSONC.tmLanguage.js +0 -221
  15. package/dist/JavaScript.tmLanguage.js +0 -5894
  16. package/dist/Kotlin.tmLanguage.js +0 -724
  17. package/dist/MagicPython.tmLanguage.js +0 -5340
  18. package/dist/MagicRegExp.tmLanguage.js +0 -505
  19. package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
  20. package/dist/SQL.plist.js +0 -482
  21. package/dist/Scala.tmLanguage.js +0 -1255
  22. package/dist/TypeScript.tmLanguage.js +0 -5641
  23. package/dist/WatchableConsoleWindow.d.ts +0 -22
  24. package/dist/_rollupPluginBabelHelpers.js +0 -54
  25. package/dist/asp-vb-net.tmlanguage.js +0 -247
  26. package/dist/bsv.js +0 -49
  27. package/dist/c.js +0 -18
  28. package/dist/c.tmLanguage.js +0 -3347
  29. package/dist/cabal.tmLanguage.js +0 -66
  30. package/dist/clojure.tmLanguage.js +0 -443
  31. package/dist/codeblock-cabal.js +0 -42
  32. package/dist/codeblock-haskell.js +0 -42
  33. package/dist/codeblock-literate-haskell.js +0 -42
  34. package/dist/codeblock.js +0 -36
  35. package/dist/codeblock2.js +0 -95
  36. package/dist/coffeescript.js +0 -18
  37. package/dist/coffeescript.tmLanguage.js +0 -1324
  38. package/dist/configuration/index.d.ts +0 -5
  39. package/dist/cpp.js +0 -18
  40. package/dist/cpp.tmLanguage.js +0 -19996
  41. package/dist/csharp.js +0 -18
  42. package/dist/csharp.tmLanguage.js +0 -4750
  43. package/dist/css.tmLanguage.js +0 -1873
  44. package/dist/css.worker.js +0 -6
  45. package/dist/cssContribution.js +0 -10
  46. package/dist/cuda-cpp.tmLanguage.js +0 -19993
  47. package/dist/d.js +0 -3159
  48. package/dist/dart.js +0 -530
  49. package/dist/diet.js +0 -758
  50. package/dist/diet2.js +0 -92
  51. package/dist/dml.js +0 -169
  52. package/dist/eex.js +0 -55
  53. package/dist/elixir.js +0 -2341
  54. package/dist/elixir2.js +0 -184
  55. package/dist/erlang.js +0 -195
  56. package/dist/expression.js +0 -846
  57. package/dist/extensions/autofold.d.ts +0 -2
  58. package/dist/extensions/cobol.d.ts +0 -2
  59. package/dist/extensions/index.d.ts +0 -2
  60. package/dist/features/cssContribution.d.ts +0 -1
  61. package/dist/features/htmlContribution.d.ts +0 -1
  62. package/dist/features/jsonContribution.d.ts +0 -1
  63. package/dist/features/typescriptContribution.d.ts +0 -1
  64. package/dist/fsharp.js +0 -18
  65. package/dist/fsharp.tmLanguage.js +0 -1811
  66. package/dist/go.tmLanguage.js +0 -1025
  67. package/dist/groovy.js +0 -229
  68. package/dist/groovy.tmLanguage.js +0 -1391
  69. package/dist/haskell.tmLanguage.js +0 -629
  70. package/dist/html (eex).js +0 -31
  71. package/dist/html-derivative.tmLanguage.js +0 -57
  72. package/dist/html.tmLanguage.js +0 -2652
  73. package/dist/html.tmLanguage2.js +0 -97
  74. package/dist/html.worker.js +0 -6
  75. package/dist/htmlContribution.js +0 -10
  76. package/dist/inline-styles.js +0 -104
  77. package/dist/inline-template.js +0 -88
  78. package/dist/java.js +0 -18
  79. package/dist/java.tmLanguage.js +0 -1863
  80. package/dist/javascript.js +0 -196
  81. package/dist/javascriptreact.js +0 -196
  82. package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
  83. package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
  84. package/dist/json.worker.js +0 -6
  85. package/dist/jsonContribution.js +0 -78
  86. package/dist/keybindings/index.d.ts +0 -2
  87. package/dist/keybindings/keybindingHelper.d.ts +0 -2
  88. package/dist/keybindings/vim.d.ts +0 -3
  89. package/dist/kotlin.js +0 -117
  90. package/dist/kotlinscript.js +0 -117
  91. package/dist/languages/extensions/grammarLoader.d.ts +0 -91037
  92. package/dist/languages/extensions/snippetLoader.d.ts +0 -4578
  93. package/dist/languages/index.d.ts +0 -3
  94. package/dist/languages/monarch/index.d.ts +0 -7
  95. package/dist/languages/monarch/list.d.ts +0 -7
  96. package/dist/languages/monarch/stub-generator.d.ts +0 -2
  97. package/dist/languages/snippets/index.d.ts +0 -1
  98. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
  99. package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
  100. package/dist/languages/textMate/index.d.ts +0 -2
  101. package/dist/literateHaskell.tmLanguage.js +0 -70
  102. package/dist/lua.tmLanguage.js +0 -289
  103. package/dist/markdown.js +0 -103
  104. package/dist/markdown.tmLanguage.js +0 -2784
  105. package/dist/merlin.js +0 -111
  106. package/dist/monaco.d.ts +0 -8
  107. package/dist/objective-c.tmLanguage.js +0 -3618
  108. package/dist/ocaml-hover-info.js +0 -34
  109. package/dist/ocaml-hover-type.js +0 -24
  110. package/dist/ocaml-markdown-codeblock.js +0 -42
  111. package/dist/ocaml.js +0 -2979
  112. package/dist/ocamlbuild.js +0 -239
  113. package/dist/opam.js +0 -149
  114. package/dist/pascal.js +0 -382
  115. package/dist/pascal.tmLanguage.js +0 -169
  116. package/dist/perl.tmLanguage.js +0 -2986
  117. package/dist/perl6.tmLanguage.js +0 -323
  118. package/dist/pgsql.tmLanguage.js +0 -284
  119. package/dist/php.js +0 -265
  120. package/dist/php.tmLanguage.js +0 -3791
  121. package/dist/platform.tmLanguage.js +0 -1135
  122. package/dist/powershell.js +0 -18
  123. package/dist/powershell.tmLanguage.js +0 -1037
  124. package/dist/r.tmLanguage.js +0 -551
  125. package/dist/reason-hover-info.js +0 -34
  126. package/dist/reason-hover-signature.js +0 -21
  127. package/dist/reason-hover-type.js +0 -21
  128. package/dist/reason-markdown-codeblock.js +0 -42
  129. package/dist/reason.js +0 -100
  130. package/dist/ruby.tmLanguage.js +0 -2784
  131. package/dist/rust.tmLanguage.js +0 -1178
  132. package/dist/sassdoc.tmLanguage.js +0 -362
  133. package/dist/scss.tmLanguage.js +0 -1887
  134. package/dist/sdc.tmLanguage.js +0 -712
  135. package/dist/sdl.js +0 -162
  136. package/dist/services/EditorModelResolverService.d.ts +0 -8
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -7
  138. package/dist/shell-unix-bash.tmLanguage.js +0 -1291
  139. package/dist/sql.js +0 -21
  140. package/dist/stub-generator.js +0 -15
  141. package/dist/swift.js +0 -183
  142. package/dist/swift.tmLanguage.js +0 -3288
  143. package/dist/systemverilog.js +0 -208
  144. package/dist/systemverilog.tmLanguage.js +0 -1067
  145. package/dist/tcl.js +0 -151
  146. package/dist/tcl.tmlanguage.yaml.js +0 -5484
  147. package/dist/template.js +0 -207
  148. package/dist/theme/index.d.ts +0 -3
  149. package/dist/theme/registry.d.ts +0 -4
  150. package/dist/theme/semanticHighlight.d.ts +0 -1
  151. package/dist/theme/tools.d.ts +0 -13
  152. package/dist/tools.d.ts +0 -3
  153. package/dist/ts.worker.js +0 -6
  154. package/dist/typescript.js +0 -312
  155. package/dist/typescriptContribution.js +0 -36
  156. package/dist/typescriptreact.js +0 -312
  157. package/dist/ucf.tmLanguage.js +0 -36
  158. package/dist/vb.js +0 -88
  159. package/dist/verilog.js +0 -432
  160. package/dist/verilog.tmLanguage.js +0 -321
  161. package/dist/worker.d.ts +0 -6
  162. package/dist/worker.js +0 -54
  163. package/dist/xml.tmLanguage.js +0 -395
  164. package/dist/xsl.tmLanguage.js +0 -102
  165. package/dist/yaml.tmLanguage.js +0 -629
@@ -1,1037 +0,0 @@
1
- var information_for_contributors = [
2
- "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/powershell/",
3
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
- "Once accepted there, we are happy to receive an update request."
5
- ];
6
- var version = "https://github.com/PowerShell/EditorSyntax/commit/742f0b5d4b60f5930c0b47fcc1f646860521296e";
7
- var name = "PowerShell";
8
- var scopeName = "source.powershell";
9
- var patterns = [
10
- {
11
- begin: "<#",
12
- beginCaptures: {
13
- "0": {
14
- name: "punctuation.definition.comment.block.begin.powershell"
15
- }
16
- },
17
- end: "#>",
18
- endCaptures: {
19
- "0": {
20
- name: "punctuation.definition.comment.block.end.powershell"
21
- }
22
- },
23
- name: "comment.block.powershell",
24
- patterns: [
25
- {
26
- include: "#commentEmbeddedDocs"
27
- }
28
- ]
29
- },
30
- {
31
- match: "[2-6]>&1|>>|>|<<|<|>|>\\||[1-6]>|[1-6]>>",
32
- name: "keyword.operator.redirection.powershell"
33
- },
34
- {
35
- include: "#commands"
36
- },
37
- {
38
- include: "#commentLine"
39
- },
40
- {
41
- include: "#variable"
42
- },
43
- {
44
- include: "#subexpression"
45
- },
46
- {
47
- include: "#function"
48
- },
49
- {
50
- include: "#attribute"
51
- },
52
- {
53
- include: "#UsingDirective"
54
- },
55
- {
56
- include: "#type"
57
- },
58
- {
59
- include: "#hashtable"
60
- },
61
- {
62
- include: "#doubleQuotedString"
63
- },
64
- {
65
- include: "#scriptblock"
66
- },
67
- {
68
- comment: "Needed to parse stuff correctly in 'argument mode'. (See about_parsing.)",
69
- include: "#doubleQuotedStringEscapes"
70
- },
71
- {
72
- begin: "['\\x{2018}-\\x{201B}]",
73
- beginCaptures: {
74
- "0": {
75
- name: "punctuation.definition.string.begin.powershell"
76
- }
77
- },
78
- end: "['\\x{2018}-\\x{201B}]",
79
- applyEndPatternLast: true,
80
- endCaptures: {
81
- "0": {
82
- name: "punctuation.definition.string.end.powershell"
83
- }
84
- },
85
- name: "string.quoted.single.powershell",
86
- patterns: [
87
- {
88
- match: "['\\x{2018}-\\x{201B}]{2}",
89
- name: "constant.character.escape.powershell"
90
- }
91
- ]
92
- },
93
- {
94
- begin: "(@[\"\\x{201C}-\\x{201E}])\\s*$",
95
- beginCaptures: {
96
- "1": {
97
- name: "punctuation.definition.string.begin.powershell"
98
- }
99
- },
100
- end: "^[\"\\x{201C}-\\x{201E}]@",
101
- endCaptures: {
102
- "0": {
103
- name: "punctuation.definition.string.end.powershell"
104
- }
105
- },
106
- name: "string.quoted.double.heredoc.powershell",
107
- patterns: [
108
- {
109
- include: "#variableNoProperty"
110
- },
111
- {
112
- include: "#doubleQuotedStringEscapes"
113
- },
114
- {
115
- include: "#interpolation"
116
- }
117
- ]
118
- },
119
- {
120
- begin: "(@['\\x{2018}-\\x{201B}])\\s*$",
121
- beginCaptures: {
122
- "1": {
123
- name: "punctuation.definition.string.begin.powershell"
124
- }
125
- },
126
- end: "^['\\x{2018}-\\x{201B}]@",
127
- endCaptures: {
128
- "0": {
129
- name: "punctuation.definition.string.end.powershell"
130
- }
131
- },
132
- name: "string.quoted.single.heredoc.powershell"
133
- },
134
- {
135
- include: "#numericConstant"
136
- },
137
- {
138
- begin: "(@)(\\()",
139
- beginCaptures: {
140
- "1": {
141
- name: "keyword.other.array.begin.powershell"
142
- },
143
- "2": {
144
- name: "punctuation.section.group.begin.powershell"
145
- }
146
- },
147
- end: "\\)",
148
- endCaptures: {
149
- "0": {
150
- name: "punctuation.section.group.end.powershell"
151
- }
152
- },
153
- name: "meta.group.array-expression.powershell",
154
- patterns: [
155
- {
156
- include: "$self"
157
- }
158
- ]
159
- },
160
- {
161
- begin: "((\\$))(\\()",
162
- beginCaptures: {
163
- "1": {
164
- name: "keyword.other.substatement.powershell"
165
- },
166
- "2": {
167
- name: "punctuation.definition.subexpression.powershell"
168
- },
169
- "3": {
170
- name: "punctuation.section.group.begin.powershell"
171
- }
172
- },
173
- comment: "TODO: move to repo; make recursive.",
174
- end: "\\)",
175
- endCaptures: {
176
- "0": {
177
- name: "punctuation.section.group.end.powershell"
178
- }
179
- },
180
- name: "meta.group.complex.subexpression.powershell",
181
- patterns: [
182
- {
183
- include: "$self"
184
- }
185
- ]
186
- },
187
- {
188
- match: "(\\b(([A-Za-z0-9\\-_\\.]+)\\.(?i:exe|com|cmd|bat))\\b)",
189
- name: "support.function.powershell"
190
- },
191
- {
192
- match: "(?<!\\w|-|\\.)((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\\?)(?!\\w)",
193
- name: "keyword.control.powershell"
194
- },
195
- {
196
- match: "(?<!\\w|-|[^\\)]\\.)((?i:(foreach|where)(?!-object))|%|\\?)(?!\\w)",
197
- name: "keyword.control.powershell"
198
- },
199
- {
200
- begin: "(?<!\\w)(--%)(?!\\w)",
201
- beginCaptures: {
202
- "1": {
203
- name: "keyword.control.powershell"
204
- }
205
- },
206
- end: "$",
207
- patterns: [
208
- {
209
- match: ".+",
210
- name: "string.unquoted.powershell"
211
- }
212
- ],
213
- comment: "This should be moved to the repository at some point."
214
- },
215
- {
216
- comment: "This should only be relevant inside a class but will require a rework of how classes are matched. This is a temp fix.",
217
- match: "(?<!\\w)((?i:hidden|static))(?!\\w)",
218
- name: "storage.modifier.powershell"
219
- },
220
- {
221
- captures: {
222
- "1": {
223
- name: "storage.type.powershell"
224
- },
225
- "2": {
226
- name: "entity.name.function"
227
- }
228
- },
229
- comment: "capture should be entity.name.type, but it doesn't provide a good color in the default schema.",
230
- match: "(?<!\\w|-)((?i:class)|%|\\?)(?:\\s)+((?:\\p{L}|\\d|_|-|)+)\\b"
231
- },
232
- {
233
- match: "(?<!\\w)-(?i:is(?:not)?|as)\\b",
234
- name: "keyword.operator.comparison.powershell"
235
- },
236
- {
237
- match: "(?<!\\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\\p{L})",
238
- name: "keyword.operator.comparison.powershell"
239
- },
240
- {
241
- match: "(?<!\\w)-(?i:join|split)(?!\\p{L})|!",
242
- name: "keyword.operator.unary.powershell"
243
- },
244
- {
245
- match: "(?<!\\w)-(?i:and|or|not|xor)(?!\\p{L})|!",
246
- name: "keyword.operator.logical.powershell"
247
- },
248
- {
249
- match: "(?<!\\w)-(?i:band|bor|bnot|bxor|shl|shr)(?!\\p{L})",
250
- name: "keyword.operator.bitwise.powershell"
251
- },
252
- {
253
- match: "(?<!\\w)-(?i:f)(?!\\p{L})",
254
- name: "keyword.operator.string-format.powershell"
255
- },
256
- {
257
- match: "[+%*/-]?=|[+/*%-]",
258
- name: "keyword.operator.assignment.powershell"
259
- },
260
- {
261
- match: "\\|{2}|&{2}|;",
262
- name: "punctuation.terminator.statement.powershell"
263
- },
264
- {
265
- match: "&|(?<!\\w)\\.(?= )|`|,|\\|",
266
- name: "keyword.operator.other.powershell"
267
- },
268
- {
269
- comment: "This is very imprecise, is there a syntax for 'must come after...' ",
270
- match: "(?<!\\s|^)\\.\\.(?=\\-?\\d|\\(|\\$)",
271
- name: "keyword.operator.range.powershell"
272
- }
273
- ];
274
- var repository = {
275
- commentLine: {
276
- begin: "(?<![`\\\\-])(#)#*",
277
- captures: {
278
- "1": {
279
- name: "punctuation.definition.comment.powershell"
280
- }
281
- },
282
- end: "$\\n?",
283
- name: "comment.line.powershell",
284
- patterns: [
285
- {
286
- include: "#commentEmbeddedDocs"
287
- },
288
- {
289
- include: "#RequiresDirective"
290
- }
291
- ]
292
- },
293
- attribute: {
294
- begin: "(\\[)\\s*\\b(?i)(cmdletbinding|alias|outputtype|parameter|validatenotnull|validatenotnullorempty|validatecount|validateset|allownull|allowemptycollection|allowemptystring|validatescript|validaterange|validatepattern|validatelength|supportswildcards)\\b",
295
- beginCaptures: {
296
- "1": {
297
- name: "punctuation.section.bracket.begin.powershell"
298
- },
299
- "2": {
300
- name: "support.function.attribute.powershell"
301
- }
302
- },
303
- end: "(\\])",
304
- endCaptures: {
305
- "1": {
306
- name: "punctuation.section.bracket.end.powershell"
307
- }
308
- },
309
- name: "meta.attribute.powershell",
310
- patterns: [
311
- {
312
- begin: "\\(",
313
- beginCaptures: {
314
- "0": {
315
- name: "punctuation.section.group.begin.powershell"
316
- }
317
- },
318
- end: "\\)",
319
- endCaptures: {
320
- "0": {
321
- name: "punctuation.section.group.end.powershell"
322
- }
323
- },
324
- patterns: [
325
- {
326
- include: "$self"
327
- },
328
- {
329
- match: "(?i)\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\b(?:\\s+)?(=)?",
330
- captures: {
331
- "1": {
332
- name: "variable.parameter.attribute.powershell"
333
- },
334
- "2": {
335
- name: "keyword.operator.assignment.powershell"
336
- }
337
- }
338
- }
339
- ]
340
- }
341
- ]
342
- },
343
- commands: {
344
- patterns: [
345
- {
346
- comment: "Verb-Noun pattern:",
347
- match: "(?:(\\p{L}|\\d|_|-|\\\\|\\:)*\\\\)?\\b(?i:Add|Approve|Assert|Backup|Block|Build|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Deploy|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)\\-.+?(?:\\.(?i:exe|cmd|bat|ps1))?\\b",
348
- name: "support.function.powershell"
349
- },
350
- {
351
- comment: "Builtin cmdlets with reserved verbs",
352
- match: "(?<!\\w)(?i:foreach-object)(?!\\w)",
353
- name: "support.function.powershell"
354
- },
355
- {
356
- comment: "Builtin cmdlets with reserved verbs",
357
- match: "(?<!\\w)(?i:where-object)(?!\\w)",
358
- name: "support.function.powershell"
359
- },
360
- {
361
- comment: "Builtin cmdlets with reserved verbs",
362
- match: "(?<!\\w)(?i:sort-object)(?!\\w)",
363
- name: "support.function.powershell"
364
- },
365
- {
366
- comment: "Builtin cmdlets with reserved verbs",
367
- match: "(?<!\\w)(?i:tee-object)(?!\\w)",
368
- name: "support.function.powershell"
369
- }
370
- ]
371
- },
372
- commentEmbeddedDocs: {
373
- patterns: [
374
- {
375
- captures: {
376
- "1": {
377
- name: "constant.string.documentation.powershell"
378
- },
379
- "2": {
380
- name: "keyword.operator.documentation.powershell"
381
- }
382
- },
383
- comment: "these embedded doc keywords do not support arguments, must be the only thing on the line",
384
- match: "(?:^|\\G)(?i:\\s*(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\s*$",
385
- name: "comment.documentation.embedded.powershell"
386
- },
387
- {
388
- captures: {
389
- "1": {
390
- name: "constant.string.documentation.powershell"
391
- },
392
- "2": {
393
- name: "keyword.operator.documentation.powershell"
394
- },
395
- "3": {
396
- name: "keyword.operator.documentation.powershell"
397
- }
398
- },
399
- comment: "these embedded doc keywords require arguments though the type required may be inconsistent, they may not all be able to use the same argument match",
400
- match: "(?:^|\\G)(?i:\\s*(\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\s+(.+?)\\s*$",
401
- name: "comment.documentation.embedded.powershell"
402
- }
403
- ]
404
- },
405
- doubleQuotedStringEscapes: {
406
- patterns: [
407
- {
408
- match: "`[`0abefnrtv'\"\\x{2018}-\\x{201E}$]",
409
- name: "constant.character.escape.powershell"
410
- },
411
- {
412
- include: "#unicodeEscape"
413
- }
414
- ]
415
- },
416
- unicodeEscape: {
417
- comment: "`u{xxxx} added in PowerShell 6.0",
418
- patterns: [
419
- {
420
- match: "`u\\{(?:(?:10)?([0-9a-fA-F]){1,4}|0?\\g<1>{1,5})}",
421
- name: "constant.character.escape.powershell"
422
- },
423
- {
424
- match: "`u(?:\\{[0-9a-fA-F]{,6}.)?",
425
- name: "invalid.character.escape.powershell"
426
- }
427
- ]
428
- },
429
- "function": {
430
- begin: "^(?:\\s*+)(?i)(function|filter|configuration|workflow)\\s+(?:(global|local|script|private):)?((?:\\p{L}|\\d|_|-|\\.)+)",
431
- beginCaptures: {
432
- "0": {
433
- name: "meta.function.powershell"
434
- },
435
- "1": {
436
- name: "storage.type.powershell"
437
- },
438
- "2": {
439
- name: "storage.modifier.scope.powershell"
440
- },
441
- "3": {
442
- name: "entity.name.function.powershell"
443
- }
444
- },
445
- end: "(?=\\{|\\()",
446
- patterns: [
447
- {
448
- include: "#commentLine"
449
- }
450
- ]
451
- },
452
- subexpression: {
453
- begin: "\\(",
454
- beginCaptures: {
455
- "0": {
456
- name: "punctuation.section.group.begin.powershell"
457
- }
458
- },
459
- end: "\\)",
460
- endCaptures: {
461
- "0": {
462
- name: "punctuation.section.group.end.powershell"
463
- }
464
- },
465
- name: "meta.group.simple.subexpression.powershell",
466
- patterns: [
467
- {
468
- include: "$self"
469
- }
470
- ]
471
- },
472
- interpolation: {
473
- begin: "(((\\$)))((\\())",
474
- beginCaptures: {
475
- "1": {
476
- name: "keyword.other.substatement.powershell"
477
- },
478
- "2": {
479
- name: "punctuation.definition.substatement.powershell"
480
- },
481
- "3": {
482
- name: "punctuation.section.embedded.substatement.begin.powershell"
483
- },
484
- "4": {
485
- name: "punctuation.section.group.begin.powershell"
486
- },
487
- "5": {
488
- name: "punctuation.section.embedded.substatement.begin.powershell"
489
- }
490
- },
491
- contentName: "interpolated.complex.source.powershell",
492
- end: "(\\))",
493
- endCaptures: {
494
- "0": {
495
- name: "punctuation.section.group.end.powershell"
496
- },
497
- "1": {
498
- name: "punctuation.section.embedded.substatement.end.powershell"
499
- }
500
- },
501
- name: "meta.embedded.substatement.powershell",
502
- patterns: [
503
- {
504
- include: "$self"
505
- }
506
- ]
507
- },
508
- numericConstant: {
509
- patterns: [
510
- {
511
- captures: {
512
- "1": {
513
- name: "constant.numeric.hex.powershell"
514
- },
515
- "2": {
516
- name: "keyword.other.powershell"
517
- }
518
- },
519
- match: "(?<!\\w)([-+]?0(?:x|X)[0-9a-fA-F_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b"
520
- },
521
- {
522
- captures: {
523
- "1": {
524
- name: "constant.numeric.integer.powershell"
525
- },
526
- "2": {
527
- name: "keyword.other.powershell"
528
- }
529
- },
530
- match: "(?<!\\w)([-+]?(?:[0-9_]+)?\\.[0-9_]+(?:(?:e|E)[0-9]+)?(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b"
531
- },
532
- {
533
- captures: {
534
- "1": {
535
- name: "constant.numeric.octal.powershell"
536
- },
537
- "2": {
538
- name: "keyword.other.powershell"
539
- }
540
- },
541
- match: "(?<!\\w)([-+]?0(?:b|B)[01_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b"
542
- },
543
- {
544
- captures: {
545
- "1": {
546
- name: "constant.numeric.integer.powershell"
547
- },
548
- "2": {
549
- name: "keyword.other.powershell"
550
- }
551
- },
552
- match: "(?<!\\w)([-+]?[0-9_]+(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b"
553
- },
554
- {
555
- captures: {
556
- "1": {
557
- name: "constant.numeric.integer.powershell"
558
- },
559
- "2": {
560
- name: "keyword.other.powershell"
561
- }
562
- },
563
- match: "(?<!\\w)([-+]?[0-9_]+\\.(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b"
564
- },
565
- {
566
- captures: {
567
- "1": {
568
- name: "constant.numeric.integer.powershell"
569
- },
570
- "2": {
571
- name: "keyword.other.powershell"
572
- }
573
- },
574
- match: "(?<!\\w)([-+]?[0-9_]+[\\.]?(?:F|f|D|d|M|m))((?i:[kmgtp]b)?)\\b"
575
- },
576
- {
577
- captures: {
578
- "1": {
579
- name: "constant.numeric.integer.powershell"
580
- },
581
- "2": {
582
- name: "keyword.other.powershell"
583
- }
584
- },
585
- match: "(?<!\\w)([-+]?[0-9_]+[\\.]?(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b"
586
- }
587
- ]
588
- },
589
- scriptblock: {
590
- begin: "\\{",
591
- beginCaptures: {
592
- "0": {
593
- name: "punctuation.section.braces.begin.powershell"
594
- }
595
- },
596
- end: "\\}",
597
- endCaptures: {
598
- "0": {
599
- name: "punctuation.section.braces.end.powershell"
600
- }
601
- },
602
- name: "meta.scriptblock.powershell",
603
- patterns: [
604
- {
605
- include: "$self"
606
- }
607
- ]
608
- },
609
- type: {
610
- begin: "\\[",
611
- beginCaptures: {
612
- "0": {
613
- name: "punctuation.section.bracket.begin.powershell"
614
- }
615
- },
616
- end: "\\]",
617
- endCaptures: {
618
- "0": {
619
- name: "punctuation.section.bracket.end.powershell"
620
- }
621
- },
622
- patterns: [
623
- {
624
- match: "(?!\\d+|\\.)(?:\\p{L}|\\p{N}|\\.)+",
625
- name: "storage.type.powershell"
626
- },
627
- {
628
- include: "$self"
629
- }
630
- ]
631
- },
632
- variable: {
633
- patterns: [
634
- {
635
- captures: {
636
- "0": {
637
- name: "constant.language.powershell"
638
- },
639
- "1": {
640
- name: "punctuation.definition.variable.powershell"
641
- }
642
- },
643
- comment: "These are special constants.",
644
- match: "(\\$)(?i:(False|Null|True))\\b"
645
- },
646
- {
647
- captures: {
648
- "0": {
649
- name: "support.constant.variable.powershell"
650
- },
651
- "1": {
652
- name: "punctuation.definition.variable.powershell"
653
- },
654
- "3": {
655
- name: "variable.other.member.powershell"
656
- }
657
- },
658
- comment: "These are the other built-in constants.",
659
- match: "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b"
660
- },
661
- {
662
- captures: {
663
- "0": {
664
- name: "support.variable.automatic.powershell"
665
- },
666
- "1": {
667
- name: "punctuation.definition.variable.powershell"
668
- },
669
- "3": {
670
- name: "variable.other.member.powershell"
671
- }
672
- },
673
- comment: "Automatic variables are not constants, but they are read-only. In monokai (default) color schema support.variable doesn't have color, so we use constant.",
674
- match: "(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
675
- },
676
- {
677
- captures: {
678
- "0": {
679
- name: "variable.language.powershell"
680
- },
681
- "1": {
682
- name: "punctuation.definition.variable.powershell"
683
- },
684
- "3": {
685
- name: "variable.other.member.powershell"
686
- }
687
- },
688
- comment: "Style preference variables as language variables so that they stand out.",
689
- match: "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b"
690
- },
691
- {
692
- captures: {
693
- "0": {
694
- name: "variable.other.readwrite.powershell"
695
- },
696
- "1": {
697
- name: "punctuation.definition.variable.powershell"
698
- },
699
- "2": {
700
- name: "storage.modifier.scope.powershell"
701
- },
702
- "4": {
703
- name: "variable.other.member.powershell"
704
- }
705
- },
706
- match: "(?i:(\\$|@)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
707
- },
708
- {
709
- captures: {
710
- "0": {
711
- name: "variable.other.readwrite.powershell"
712
- },
713
- "1": {
714
- name: "punctuation.definition.variable.powershell"
715
- },
716
- "2": {
717
- name: "punctuation.section.braces.begin.powershell"
718
- },
719
- "3": {
720
- name: "storage.modifier.scope.powershell"
721
- },
722
- "5": {
723
- name: "punctuation.section.braces.end.powershell"
724
- },
725
- "6": {
726
- name: "variable.other.member.powershell"
727
- }
728
- },
729
- match: "(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
730
- },
731
- {
732
- captures: {
733
- "0": {
734
- name: "variable.other.readwrite.powershell"
735
- },
736
- "1": {
737
- name: "punctuation.definition.variable.powershell"
738
- },
739
- "2": {
740
- name: "support.variable.drive.powershell"
741
- },
742
- "4": {
743
- name: "variable.other.member.powershell"
744
- }
745
- },
746
- match: "(?i:(\\$|@)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
747
- },
748
- {
749
- captures: {
750
- "0": {
751
- name: "variable.other.readwrite.powershell"
752
- },
753
- "1": {
754
- name: "punctuation.definition.variable.powershell"
755
- },
756
- "2": {
757
- name: "punctuation.section.braces.begin.powershell"
758
- },
759
- "3": {
760
- name: "support.variable.drive.powershell"
761
- },
762
- "5": {
763
- name: "punctuation.section.braces.end.powershell"
764
- },
765
- "6": {
766
- name: "variable.other.member.powershell"
767
- }
768
- },
769
- match: "(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
770
- }
771
- ]
772
- },
773
- UsingDirective: {
774
- match: "(?<!\\w)(?i:(using))\\s+(?i:(namespace|module))\\s+(?i:((?:\\w+(?:\\.)?)+))",
775
- captures: {
776
- "1": {
777
- name: "keyword.control.using.powershell"
778
- },
779
- "2": {
780
- name: "keyword.other.powershell"
781
- },
782
- "3": {
783
- name: "variable.parameter.powershell"
784
- }
785
- }
786
- },
787
- RequiresDirective: {
788
- begin: "(?<=#)(?i:(requires))\\s",
789
- beginCaptures: {
790
- "0": {
791
- name: "keyword.control.requires.powershell"
792
- }
793
- },
794
- end: "$",
795
- name: "meta.requires.powershell",
796
- patterns: [
797
- {
798
- match: "\\-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)",
799
- name: "keyword.other.powershell"
800
- },
801
- {
802
- match: "(?<!-)\\b\\p{L}+|\\d+(?:\\.\\d+)*",
803
- name: "variable.parameter.powershell"
804
- },
805
- {
806
- include: "#hashtable"
807
- }
808
- ]
809
- },
810
- variableNoProperty: {
811
- patterns: [
812
- {
813
- captures: {
814
- "0": {
815
- name: "constant.language.powershell"
816
- },
817
- "1": {
818
- name: "punctuation.definition.variable.powershell"
819
- }
820
- },
821
- comment: "These are special constants.",
822
- match: "(\\$)(?i:(False|Null|True))\\b"
823
- },
824
- {
825
- captures: {
826
- "0": {
827
- name: "support.constant.variable.powershell"
828
- },
829
- "1": {
830
- name: "punctuation.definition.variable.powershell"
831
- },
832
- "3": {
833
- name: "variable.other.member.powershell"
834
- }
835
- },
836
- comment: "These are the other built-in constants.",
837
- match: "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\b"
838
- },
839
- {
840
- captures: {
841
- "0": {
842
- name: "support.variable.automatic.powershell"
843
- },
844
- "1": {
845
- name: "punctuation.definition.variable.powershell"
846
- },
847
- "3": {
848
- name: "variable.other.member.powershell"
849
- }
850
- },
851
- comment: "Automatic variables are not constants, but they are read-only...",
852
- match: "(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)"
853
- },
854
- {
855
- captures: {
856
- "0": {
857
- name: "variable.language.powershell"
858
- },
859
- "1": {
860
- name: "punctuation.definition.variable.powershell"
861
- },
862
- "3": {
863
- name: "variable.other.member.powershell"
864
- }
865
- },
866
- comment: "Style preference variables as language variables so that they stand out.",
867
- match: "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))\\b"
868
- },
869
- {
870
- captures: {
871
- "0": {
872
- name: "variable.other.readwrite.powershell"
873
- },
874
- "1": {
875
- name: "punctuation.definition.variable.powershell"
876
- },
877
- "2": {
878
- name: "storage.modifier.scope.powershell"
879
- },
880
- "4": {
881
- name: "variable.other.member.powershell"
882
- }
883
- },
884
- match: "(?i:(\\$)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))"
885
- },
886
- {
887
- captures: {
888
- "0": {
889
- name: "variable.other.readwrite.powershell"
890
- },
891
- "1": {
892
- name: "punctuation.definition.variable.powershell"
893
- },
894
- "2": {
895
- name: "storage.modifier.scope.powershell"
896
- },
897
- "4": {
898
- name: "keyword.other.powershell"
899
- },
900
- "5": {
901
- name: "variable.other.member.powershell"
902
- }
903
- },
904
- match: "(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))"
905
- },
906
- {
907
- captures: {
908
- "0": {
909
- name: "variable.other.readwrite.powershell"
910
- },
911
- "1": {
912
- name: "punctuation.definition.variable.powershell"
913
- },
914
- "2": {
915
- name: "support.variable.drive.powershell"
916
- },
917
- "4": {
918
- name: "variable.other.member.powershell"
919
- }
920
- },
921
- match: "(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))"
922
- },
923
- {
924
- captures: {
925
- "0": {
926
- name: "variable.other.readwrite.powershell"
927
- },
928
- "1": {
929
- name: "punctuation.definition.variable.powershell"
930
- },
931
- "2": {
932
- name: "punctuation.section.braces.begin"
933
- },
934
- "3": {
935
- name: "support.variable.drive.powershell"
936
- },
937
- "5": {
938
- name: "punctuation.section.braces.end"
939
- }
940
- },
941
- match: "(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))"
942
- }
943
- ]
944
- },
945
- hashtable: {
946
- begin: "(@)(\\{)",
947
- beginCaptures: {
948
- "1": {
949
- name: "keyword.other.hashtable.begin.powershell"
950
- },
951
- "2": {
952
- name: "punctuation.section.braces.begin.powershell"
953
- }
954
- },
955
- end: "(\\})",
956
- endCaptures: {
957
- "1": {
958
- name: "punctuation.section.braces.end.powershell"
959
- }
960
- },
961
- name: "meta.hashtable.powershell",
962
- patterns: [
963
- {
964
- captures: {
965
- "1": {
966
- name: "punctuation.definition.string.begin.powershell"
967
- },
968
- "2": {
969
- name: "variable.other.readwrite.powershell"
970
- },
971
- "3": {
972
- name: "punctuation.definition.string.end.powershell"
973
- },
974
- "4": {
975
- name: "keyword.operator.assignment.powershell"
976
- }
977
- },
978
- match: "\\b((?:\\'|\\\")?)(\\w+)((?:\\'|\\\")?)(?:\\s+)?(=)(?:\\s+)?",
979
- name: "meta.hashtable.assignment.powershell"
980
- },
981
- {
982
- include: "#scriptblock"
983
- },
984
- {
985
- include: "$self"
986
- }
987
- ]
988
- },
989
- doubleQuotedString: {
990
- begin: "[\"\\x{201C}-\\x{201E}]",
991
- beginCaptures: {
992
- "0": {
993
- name: "punctuation.definition.string.begin.powershell"
994
- }
995
- },
996
- end: "[\"\\x{201C}-\\x{201E}]",
997
- applyEndPatternLast: true,
998
- endCaptures: {
999
- "0": {
1000
- name: "punctuation.definition.string.end.powershell"
1001
- }
1002
- },
1003
- name: "string.quoted.double.powershell",
1004
- patterns: [
1005
- {
1006
- match: "(?i)\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,64}\\b"
1007
- },
1008
- {
1009
- include: "#variableNoProperty"
1010
- },
1011
- {
1012
- include: "#doubleQuotedStringEscapes"
1013
- },
1014
- {
1015
- match: "[\"\\x{201C}-\\x{201E}]{2}",
1016
- name: "constant.character.escape.powershell"
1017
- },
1018
- {
1019
- include: "#interpolation"
1020
- },
1021
- {
1022
- match: "`\\s*$",
1023
- name: "keyword.other.powershell"
1024
- }
1025
- ]
1026
- }
1027
- };
1028
- var powershell_tmLanguage = {
1029
- information_for_contributors: information_for_contributors,
1030
- version: version,
1031
- name: name,
1032
- scopeName: scopeName,
1033
- patterns: patterns,
1034
- repository: repository
1035
- };
1036
-
1037
- export { powershell_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };