github-linguist 6.2.0 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/git-linguist +6 -12
- data/ext/linguist/linguist.h +7 -0
- data/ext/linguist/strndup.c +10 -0
- data/grammars/annotation.liquidhaskell.haskell.json +3 -0
- data/grammars/hint.haskell.json +3 -0
- data/grammars/hint.message.haskell.json +3 -0
- data/grammars/hint.type.haskell.json +3 -0
- data/grammars/source.apl.json +97 -106
- data/grammars/source.ballerina.json +577 -144
- data/grammars/source.batchfile.json +24 -10
- data/grammars/source.bsl.json +50 -10
- data/grammars/source.cobol.json +4 -4
- data/grammars/source.css.json +1 -1
- data/grammars/source.gfm.json +20 -3
- data/grammars/source.haskell.json +3 -0
- data/grammars/source.hsig.json +3 -0
- data/grammars/source.hx.argument.json +80 -0
- data/grammars/source.hx.json +131 -46
- data/grammars/source.hxml.json +17 -9
- data/grammars/source.isabelle.root.json +2 -2
- data/grammars/source.lua.json +10 -3
- data/grammars/source.nim.json +4 -4
- data/grammars/source.pawn.json +5 -5
- data/grammars/source.pony.json +2 -2
- data/grammars/source.powershell.json +128 -87
- data/grammars/source.rascal.json +1 -0
- data/grammars/source.stan.json +3 -3
- data/grammars/source.ts.json +90 -28
- data/grammars/source.tsx.json +95 -33
- data/grammars/text.elixir.json +1 -3
- data/grammars/text.html.erlang.yaws.json +1 -1
- data/grammars/text.html.markdown.source.gfm.apib.json +1 -3
- data/grammars/text.html.markdown.source.gfm.mson.json +1 -3
- data/grammars/text.marko.json +129 -21
- data/grammars/text.shell-session.json +1 -1
- data/grammars/text.tex.latex.haskell.json +3 -0
- data/grammars/text.xml.json +4 -4
- data/lib/linguist/generated.rb +19 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +68 -59
- data/lib/linguist/samples.json +618 -413
- data/lib/linguist/version.rb +1 -1
- metadata +7 -6
- data/grammars/source.elixir.json +0 -927
data/grammars/source.hxml.json
CHANGED
@@ -11,14 +11,6 @@
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
},
|
14
|
-
{
|
15
|
-
"match": "^\\s*(-cppia|-cpp?|-js|-as3|-swf-(header|version|lib(-extern)?)|-swf9?|-neko|-python|-php|-cs|-java-lib|-java|-xml|-lua|-hl|-x|-lib|-D|-resource|-exclude|-version|-v|-debug|-prompt|-cmd|-dce\\s+(std|full|no)?|--flash-strict|--no-traces|--flash-use-stage|--neko-source|--gen-hx-classes|-net-lib|-net-std|-c-arg|--each|--next|--display|--no-output|--times|--no-inline|--no-opt|--php-front|--php-lib|--php-prefix|--remap|--help-defines|--help-metas|-help|--help|-java|-cs|--dead-code-elimination|--js-modern|--interp|--eval|--dce|--wait|--connect|--cwd|--run).*$",
|
16
|
-
"captures": {
|
17
|
-
"1": {
|
18
|
-
"name": "keyword.other.hxml"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
},
|
22
14
|
{
|
23
15
|
"begin": "(?:^|[^a-zA-Z])(--macro)\\b",
|
24
16
|
"end": "\\n",
|
@@ -34,7 +26,7 @@
|
|
34
26
|
}
|
35
27
|
},
|
36
28
|
{
|
37
|
-
"match": "(?:^|[^a-zA-Z])(-main)\\b\\s*\\b(?:(([a-z][a-zA-Z0-9]*\\.)*)(_*[A-Z]\\w*))?\\b",
|
29
|
+
"match": "(?:^|[^a-zA-Z])(-m|-main|--main)\\b\\s*\\b(?:(([a-z][a-zA-Z0-9]*\\.)*)(_*[A-Z]\\w*))?\\b",
|
38
30
|
"captures": {
|
39
31
|
"1": {
|
40
32
|
"name": "keyword.other.hxml"
|
@@ -46,6 +38,22 @@
|
|
46
38
|
"name": "entity.name.type.hx"
|
47
39
|
}
|
48
40
|
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"match": "^\\s*(-cppia|-cpp?|-js|-as3|-swf-(header|version|lib(-extern)?)|-swf9?|-neko|-python|-php|-cs|-java-lib|-java|-xml|-lua|-hl|-x|-lib|-D|-resource|-exclude|-version|-v|-debug|-prompt|-cmd|-dce\\s+(std|full|no)?|--flash-strict|--no-traces|--flash-use-stage|--neko-source|--gen-hx-classes|-net-lib|-net-std|-c-arg|--each|--next|--display|--no-output|--times|--no-inline|--no-opt|--php-front|--php-lib|--php-prefix|--remap|--help-defines|--help-metas|-help|--help|-java|-cs|--dead-code-elimination|--js-modern|--interp|--eval|--dce|--wait|--connect|--cwd|--run).*$",
|
44
|
+
"captures": {
|
45
|
+
"1": {
|
46
|
+
"name": "keyword.other.hxml"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"match": "^\\s*(--js(on)?|--lua|--swf-(header|version|lib(-extern)?)|--swf|--as3|--neko|--php|--cppia|--cpp|--cppia|--cs|--java-lib|--java|--python|--hl|-p|--class-path|-L|--library|--define|-r|--resource|--cmd|-C|--verbose|--debug|--prompt|--xml|--json|--net-lib|--net-std|--c-arg|--version|-h|--main|--).*$",
|
52
|
+
"captures": {
|
53
|
+
"1": {
|
54
|
+
"name": "keyword.other.hxml"
|
55
|
+
}
|
56
|
+
}
|
49
57
|
}
|
50
58
|
]
|
51
59
|
}
|
@@ -4,11 +4,11 @@
|
|
4
4
|
"patterns": [
|
5
5
|
{
|
6
6
|
"name": "keyword.control",
|
7
|
-
"match": "\\b(chapter|session|in|description|options|global_theories|theories|files|document_files)\\b"
|
7
|
+
"match": "\\b(chapter|session|in|description|options|global_theories|theories|files|document_files|sessions)\\b"
|
8
8
|
},
|
9
9
|
{
|
10
10
|
"name": "keyword.other.option",
|
11
|
-
"match": "\\b(browser_info|condition|document|document_graph|document_output|document_variants|eta_contract|goals_limit|names_long|names_short|names_unique|pretty_margin|print_mode|show_brackets|show_consts|show_main_goal|show_question_marks|show_sorts|show_types|thy_output_break|thy_output_display|thy_output_indent|thy_output_modes|thy_output_quotes|thy_output_source|timeout)\\b"
|
11
|
+
"match": "\\b(browser_info|condition|document|document_graph|document_output|document_variants|eta_contract|goals_limit|names_long|names_short|names_unique|pretty_margin|print_mode|show_brackets|show_consts|show_main_goal|show_question_marks|show_sorts|show_types|thy_output_break|thy_output_display|thy_output_indent|thy_output_modes|thy_output_quotes|thy_output_source|timeout|global)\\b"
|
12
12
|
},
|
13
13
|
{
|
14
14
|
"name": "support.constant",
|
data/grammars/source.lua.json
CHANGED
@@ -4,24 +4,31 @@
|
|
4
4
|
"patterns": [
|
5
5
|
{
|
6
6
|
"name": "meta.function.lua",
|
7
|
-
"begin": "\\b((local
|
7
|
+
"begin": "\\b(?:(local)\\s+)?(function)\\s*(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*(?:([\\.:])[a-zA-Z_][a-zA-Z0-9_]*)?)\\s*)?(\\()",
|
8
8
|
"end": "\\)",
|
9
9
|
"patterns": [
|
10
10
|
{
|
11
11
|
"name": "variable.parameter.function.lua",
|
12
12
|
"match": "[a-zA-Z_][a-zA-Z0-9_]*"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "punctuation.separator.arguments.lua",
|
16
|
+
"match": ","
|
13
17
|
}
|
14
18
|
],
|
15
19
|
"beginCaptures": {
|
16
20
|
"1": {
|
17
21
|
"name": "storage.modifier.local.lua"
|
18
22
|
},
|
19
|
-
"
|
23
|
+
"2": {
|
20
24
|
"name": "keyword.control.lua"
|
21
25
|
},
|
22
|
-
"
|
26
|
+
"3": {
|
23
27
|
"name": "entity.name.function.lua"
|
24
28
|
},
|
29
|
+
"4": {
|
30
|
+
"name": "punctuation.separator.parameter.lua"
|
31
|
+
},
|
25
32
|
"5": {
|
26
33
|
"name": "punctuation.definition.parameters.begin.lua"
|
27
34
|
}
|
data/grammars/source.nim.json
CHANGED
@@ -127,7 +127,7 @@
|
|
127
127
|
"name": "meta.proc.nim",
|
128
128
|
"patterns": [
|
129
129
|
{
|
130
|
-
"begin": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|method|template|macro|iterator|converter)\\s+((\\`[^\\s\\`]+\\`)|([\\w\\x{80}-\\x{10FFFF}]+))(\\*)?",
|
130
|
+
"begin": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|func|method|template|macro|iterator|converter)\\s+((\\`[^\\s\\`]+\\`)|([\\w\\x{80}-\\x{10FFFF}]+))(\\*)?",
|
131
131
|
"end": "(\\=)",
|
132
132
|
"patterns": [
|
133
133
|
{
|
@@ -307,7 +307,7 @@
|
|
307
307
|
},
|
308
308
|
{
|
309
309
|
"name": "keyword.other.nim",
|
310
|
-
"match": "((?\u003c![\\w\\x{80}-\\x{10FFFF}])(addr|as|atomic|bind|cast|const|converter|defer|discard|distinct|div|enum|export|include|let|mixin|object|of|ptr|ref|shl|shr|static|type|var)(?![\\w\\x{80}-\\x{10FFFF}]))"
|
310
|
+
"match": "((?\u003c![\\w\\x{80}-\\x{10FFFF}])(addr|as|atomic|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|ptr|ref|shl|shr|static|type|using|var)(?![\\w\\x{80}-\\x{10FFFF}]))"
|
311
311
|
},
|
312
312
|
{
|
313
313
|
"name": "keyword.operator.nim",
|
@@ -345,7 +345,7 @@
|
|
345
345
|
}
|
346
346
|
},
|
347
347
|
{
|
348
|
-
"match": "(from)\\s+[\\/\\w]
|
348
|
+
"match": "(from)\\s+[\\/\\w]+(?:\\s+(?:as)\\s+[\\/\\w]+)?\\s+(?=import)",
|
349
349
|
"captures": {
|
350
350
|
"1": {
|
351
351
|
"name": "keyword.control.nim"
|
@@ -379,7 +379,7 @@
|
|
379
379
|
},
|
380
380
|
{
|
381
381
|
"name": "storage.type.function.nim",
|
382
|
-
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|iterator|method|template|macro)(?![\\w\\x{80}-\\x{10FFFF}])"
|
382
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|func|iterator|method|template|macro)(?![\\w\\x{80}-\\x{10FFFF}])"
|
383
383
|
},
|
384
384
|
{
|
385
385
|
"name": "storage.type.generic.nim",
|
data/grammars/source.pawn.json
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
},
|
41
41
|
"call": {
|
42
42
|
"name": "meta.function-call.c",
|
43
|
-
"begin": "(?x)\n\t\t\t\t\\s*\n\t\t\t\t(?= # don't consume to recognize support functions\n\t\t\t\t (?: [A-Za-z_]\\w*+ | ::[^:] )++\n\t\t\t\t (?:\\s|/\\*.*?\\*/)*+ \\( )\n\t\t\t",
|
43
|
+
"begin": "(?x)\n\t\t\t\t\\s*\n\t\t\t\t(?= # don't consume to recognize support functions\n\t\t\t\t (?: [A-Za-z_@]\\w*+ | ::[^:] )++\n\t\t\t\t (?:\\s|/\\*.*?\\*/)*+ \\( )\n\t\t\t",
|
44
44
|
"end": "\\)",
|
45
45
|
"patterns": [
|
46
46
|
{
|
@@ -48,11 +48,11 @@
|
|
48
48
|
},
|
49
49
|
{
|
50
50
|
"name": "variable.other.dot-access.c support.function.any-method.c",
|
51
|
-
"match": "(?:(?\u003c=\\.)|(?\u003c=-\u003e))\\b([A-Za-z_]\\w*+)\\b"
|
51
|
+
"match": "(?:(?\u003c=\\.)|(?\u003c=-\u003e))\\b([A-Za-z_@]\\w*+)\\b"
|
52
52
|
},
|
53
53
|
{
|
54
54
|
"name": "support.function.any-method.c",
|
55
|
-
"match": "(?:[A-Za-z_]\\w*+|::[^:])++"
|
55
|
+
"match": "(?:[A-Za-z_@]\\w*+|::[^:])++"
|
56
56
|
},
|
57
57
|
{
|
58
58
|
"include": "#parens-lookahead-end"
|
@@ -260,7 +260,7 @@
|
|
260
260
|
},
|
261
261
|
"function-declaration": {
|
262
262
|
"name": "meta.function.c",
|
263
|
-
"begin": "(?x)\n\t\t\t\t(?: ^\n\t\t\t\t | (?\u003c! (?\u003c!\\w) new\n\t\t\t\t | (?\u003c!\\w) (?:else|enum) | (?\u003c!\\w) (?:class|union)\n\t\t\t\t | (?\u003c!\\w) (?:struct|return|sizeof|typeof)\n\t\t\t\t | (?\u003c!\\w) __typeof | (?\u003c!\\w) __typeof__ )\n\t\t\t\t (?\u003c= \\w ) \\s\n\n\t\t\t\t | # or type modifier / closing bracket before name\n\t\t\t\t (?\u003c= [^\u0026]\u0026 | [*\u003e)}\\]] ) ) \\s*\n\n\t\t\t\t( (?: [A-Za-z_]\\w*+ | ::[^:] )++\n\t\t\t\t (?: (?\u003c= ^ operator | \\W operator ) # C++ operator?\n\t\t\t\t (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? )\n\n\t\t\t\t(?= (?:\\s|/\\*.*?\\*/)*+ (?'parens' \\(\n\t\t\t\t (?\u003e \\g'parens' |\n\t\t\t\t \t\"(\\\\.|[^\"])*\" | '(\\\\.|[^'])*' | /\\*.*?\\*/ |\n\t\t\t\t \t(?! /[/*] | [()] ) . )*\n\t\t\t\t \\) ) \\s* ; )\n\t\t\t",
|
263
|
+
"begin": "(?x)\n\t\t\t\t(?: ^\n\t\t\t\t | (?\u003c! (?\u003c!\\w) new\n\t\t\t\t | (?\u003c!\\w) (?:else|enum) | (?\u003c!\\w) (?:class|union)\n\t\t\t\t | (?\u003c!\\w) (?:struct|return|sizeof|typeof)\n\t\t\t\t | (?\u003c!\\w) __typeof | (?\u003c!\\w) __typeof__ )\n\t\t\t\t (?\u003c= \\w ) \\s\n\n\t\t\t\t | # or type modifier / closing bracket before name\n\t\t\t\t (?\u003c= [^\u0026]\u0026 | [*\u003e)}\\]] ) ) \\s*\n\n\t\t\t\t( (?: [A-Za-z_@]\\w*+ | ::[^:] )++\n\t\t\t\t (?: (?\u003c= ^ operator | \\W operator ) # C++ operator?\n\t\t\t\t (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? )\n\n\t\t\t\t(?= (?:\\s|/\\*.*?\\*/)*+ (?'parens' \\(\n\t\t\t\t (?\u003e \\g'parens' |\n\t\t\t\t \t\"(\\\\.|[^\"])*\" | '(\\\\.|[^'])*' | /\\*.*?\\*/ |\n\t\t\t\t \t(?! /[/*] | [()] ) . )*\n\t\t\t\t \\) ) \\s* ; )\n\t\t\t",
|
264
264
|
"end": ";",
|
265
265
|
"patterns": [
|
266
266
|
{
|
@@ -278,7 +278,7 @@
|
|
278
278
|
},
|
279
279
|
"function-definition": {
|
280
280
|
"name": "meta.function.c",
|
281
|
-
"begin": "(?x)\n\t\t\t\t(?: ^\n\t\t\t\t | (?\u003c! (?\u003c!\\w) new\n\t\t\t\t | (?\u003c!\\w) (?:else|enum) | (?\u003c!\\w) (?:class|union)\n\t\t\t\t | (?\u003c!\\w) (?:struct|return|sizeof|typeof)\n\t\t\t\t | (?\u003c!\\w) __typeof | (?\u003c!\\w) __typeof__ )\n\t\t\t\t (?\u003c= \\w ) \\s\n\n\t\t\t\t | # or type modifier / closing bracket before name\n\t\t\t\t (?\u003c= [^\u0026]\u0026 | [*\u003e)}\\]\\:] ) ) \\s*\n\n\t\t\t\t( (?: [A-Za-z_]\\w*+ | ::[^:] )++\n\t\t\t\t (?: (?\u003c= ^ operator | \\W operator ) # C++ operator?\n\t\t\t\t (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? )\n\n\t\t\t\t(?= (?:\\s|/\\*.*?\\*/)*+ \\( )\n\t\t\t",
|
281
|
+
"begin": "(?x)\n\t\t\t\t(?: ^\n\t\t\t\t | (?\u003c! (?\u003c!\\w) new\n\t\t\t\t | (?\u003c!\\w) (?:else|enum) | (?\u003c!\\w) (?:class|union)\n\t\t\t\t | (?\u003c!\\w) (?:struct|return|sizeof|typeof)\n\t\t\t\t | (?\u003c!\\w) __typeof | (?\u003c!\\w) __typeof__ )\n\t\t\t\t (?\u003c= \\w ) \\s\n\n\t\t\t\t | # or type modifier / closing bracket before name\n\t\t\t\t (?\u003c= [^\u0026]\u0026 | [*\u003e)}\\]\\:] ) ) \\s*\n\n\t\t\t\t( (?: [A-Za-z_@]\\w*+ | ::[^:] )++\n\t\t\t\t (?: (?\u003c= ^ operator | \\W operator ) # C++ operator?\n\t\t\t\t (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? )\n\n\t\t\t\t(?= (?:\\s|/\\*.*?\\*/)*+ \\( )\n\t\t\t",
|
282
282
|
"end": "\\}|;",
|
283
283
|
"patterns": [
|
284
284
|
{
|
data/grammars/source.pony.json
CHANGED
@@ -71,7 +71,17 @@
|
|
71
71
|
"name": "constant.character.escape.powershell",
|
72
72
|
"match": "''"
|
73
73
|
}
|
74
|
-
]
|
74
|
+
],
|
75
|
+
"beginCaptures": {
|
76
|
+
"0": {
|
77
|
+
"name": "punctuation.definition.string.begin.powershell"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"endCaptures": {
|
81
|
+
"0": {
|
82
|
+
"name": "punctuation.definition.string.end.powershell"
|
83
|
+
}
|
84
|
+
}
|
75
85
|
},
|
76
86
|
{
|
77
87
|
"name": "string.quoted.double.heredoc.powershell",
|
@@ -137,7 +147,7 @@
|
|
137
147
|
],
|
138
148
|
"beginCaptures": {
|
139
149
|
"1": {
|
140
|
-
"name": "
|
150
|
+
"name": "punctuation.definition.variable.powershell"
|
141
151
|
},
|
142
152
|
"2": {
|
143
153
|
"name": "punctuation.section.group.begin.powershell"
|
@@ -162,8 +172,19 @@
|
|
162
172
|
"match": "(?\u003c!\\w|-|[^\\)]\\.)((?i:(foreach|where)(?!-object))|%|\\?)(?!\\w)"
|
163
173
|
},
|
164
174
|
{
|
165
|
-
"
|
166
|
-
"
|
175
|
+
"begin": "(?\u003c!\\w)(--%)(?!\\w)",
|
176
|
+
"end": "$",
|
177
|
+
"patterns": [
|
178
|
+
{
|
179
|
+
"name": "string.unquoted.powershell",
|
180
|
+
"match": ".+"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
"beginCaptures": {
|
184
|
+
"1": {
|
185
|
+
"name": "keyword.control.powershell"
|
186
|
+
}
|
187
|
+
}
|
167
188
|
},
|
168
189
|
{
|
169
190
|
"name": "storage.modifier.powershell",
|
@@ -209,7 +230,7 @@
|
|
209
230
|
"match": "[+%*/-]?=|[+/*%-]"
|
210
231
|
},
|
211
232
|
{
|
212
|
-
"name": "
|
233
|
+
"name": "punctuation.terminator.statement.powershell",
|
213
234
|
"match": "\\|{2}|\u0026{2}|;"
|
214
235
|
},
|
215
236
|
{
|
@@ -299,7 +320,7 @@
|
|
299
320
|
"include": "$self"
|
300
321
|
},
|
301
322
|
{
|
302
|
-
"match": "(?i)\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact|helpmessage)\\b(?:\\s+)?(=)",
|
323
|
+
"match": "(?i)\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\b(?:\\s+)?(=)?",
|
303
324
|
"captures": {
|
304
325
|
"1": {
|
305
326
|
"name": "variable.parameter.attribute.powershell"
|
@@ -318,7 +339,17 @@
|
|
318
339
|
"name": "constant.character.escape.powershell",
|
319
340
|
"match": "''"
|
320
341
|
}
|
321
|
-
]
|
342
|
+
],
|
343
|
+
"beginCaptures": {
|
344
|
+
"0": {
|
345
|
+
"name": "punctuation.definition.string.begin.powershell"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"endCaptures": {
|
349
|
+
"0": {
|
350
|
+
"name": "punctuation.definition.string.end.powershell"
|
351
|
+
}
|
352
|
+
}
|
322
353
|
}
|
323
354
|
],
|
324
355
|
"beginCaptures": {
|
@@ -375,7 +406,7 @@
|
|
375
406
|
"patterns": [
|
376
407
|
{
|
377
408
|
"name": "comment.documentation.embedded.powershell",
|
378
|
-
"match": "(?i
|
409
|
+
"match": "^(?i:(?:\\s*|#)+(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS))",
|
379
410
|
"captures": {
|
380
411
|
"1": {
|
381
412
|
"name": "constant.string.documentation.powershell"
|
@@ -444,7 +475,17 @@
|
|
444
475
|
"name": "keyword.other.powershell",
|
445
476
|
"match": "`\\s*$"
|
446
477
|
}
|
447
|
-
]
|
478
|
+
],
|
479
|
+
"beginCaptures": {
|
480
|
+
"0": {
|
481
|
+
"name": "punctuation.definition.string.begin.powershell"
|
482
|
+
}
|
483
|
+
},
|
484
|
+
"endCaptures": {
|
485
|
+
"0": {
|
486
|
+
"name": "punctuation.definition.string.end.powershell"
|
487
|
+
}
|
488
|
+
}
|
448
489
|
},
|
449
490
|
"doubleQuotedStringEscapes": {
|
450
491
|
"patterns": [
|
@@ -568,7 +609,7 @@
|
|
568
609
|
],
|
569
610
|
"beginCaptures": {
|
570
611
|
"1": {
|
571
|
-
"name": "
|
612
|
+
"name": "punctuation.definition.variable.powershell"
|
572
613
|
},
|
573
614
|
"2": {
|
574
615
|
"name": "punctuation.section.group.begin.powershell"
|
@@ -709,78 +750,81 @@
|
|
709
750
|
{
|
710
751
|
"match": "(\\$)(?i:(False|Null|True))\\b",
|
711
752
|
"captures": {
|
712
|
-
"
|
713
|
-
"name": "keyword.other.variable.definition.powershell"
|
714
|
-
},
|
715
|
-
"2": {
|
753
|
+
"0": {
|
716
754
|
"name": "constant.language.powershell"
|
755
|
+
},
|
756
|
+
"1": {
|
757
|
+
"name": "punctuation.definition.variable.powershell"
|
717
758
|
}
|
718
759
|
}
|
719
760
|
},
|
720
761
|
{
|
721
762
|
"match": "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b",
|
722
763
|
"captures": {
|
723
|
-
"
|
724
|
-
"name": "keyword.other.variable.definition.powershell"
|
725
|
-
},
|
726
|
-
"2": {
|
764
|
+
"0": {
|
727
765
|
"name": "support.constant.variable.powershell"
|
728
766
|
},
|
767
|
+
"1": {
|
768
|
+
"name": "punctuation.definition.variable.powershell"
|
769
|
+
},
|
729
770
|
"3": {
|
730
|
-
"name": "
|
771
|
+
"name": "variable.other.member.powershell"
|
731
772
|
}
|
732
773
|
}
|
733
774
|
},
|
734
775
|
{
|
735
776
|
"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))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b",
|
736
777
|
"captures": {
|
737
|
-
"
|
738
|
-
"name": "keyword.other.variable.definition.powershell"
|
739
|
-
},
|
740
|
-
"2": {
|
778
|
+
"0": {
|
741
779
|
"name": "support.constant.automatic.powershell"
|
742
780
|
},
|
781
|
+
"1": {
|
782
|
+
"name": "punctuation.definition.variable.powershell"
|
783
|
+
},
|
743
784
|
"3": {
|
744
|
-
"name": "
|
785
|
+
"name": "variable.other.member.powershell"
|
745
786
|
}
|
746
787
|
}
|
747
788
|
},
|
748
789
|
{
|
749
790
|
"match": "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b",
|
750
791
|
"captures": {
|
751
|
-
"
|
752
|
-
"name": "keyword.other.variable.definition.powershell"
|
753
|
-
},
|
754
|
-
"2": {
|
792
|
+
"0": {
|
755
793
|
"name": "variable.language.powershell"
|
756
794
|
},
|
795
|
+
"1": {
|
796
|
+
"name": "punctuation.definition.variable.powershell"
|
797
|
+
},
|
757
798
|
"3": {
|
758
|
-
"name": "
|
799
|
+
"name": "variable.other.member.powershell"
|
759
800
|
}
|
760
801
|
}
|
761
802
|
},
|
762
803
|
{
|
763
804
|
"match": "(?i:(\\$|@)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?",
|
764
805
|
"captures": {
|
806
|
+
"0": {
|
807
|
+
"name": "variable.other.readwrite.powershell"
|
808
|
+
},
|
765
809
|
"1": {
|
766
|
-
"name": "
|
810
|
+
"name": "punctuation.definition.variable.powershell"
|
767
811
|
},
|
768
812
|
"2": {
|
769
813
|
"name": "storage.modifier.scope.powershell"
|
770
814
|
},
|
771
|
-
"3": {
|
772
|
-
"name": "variable.other.readwrite.powershell"
|
773
|
-
},
|
774
815
|
"4": {
|
775
|
-
"name": "
|
816
|
+
"name": "variable.other.member.powershell"
|
776
817
|
}
|
777
818
|
}
|
778
819
|
},
|
779
820
|
{
|
780
821
|
"match": "(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?",
|
781
822
|
"captures": {
|
823
|
+
"0": {
|
824
|
+
"name": "variable.other.readwrite.powershell"
|
825
|
+
},
|
782
826
|
"1": {
|
783
|
-
"name": "
|
827
|
+
"name": "punctuation.definition.variable.powershell"
|
784
828
|
},
|
785
829
|
"2": {
|
786
830
|
"name": "punctuation.section.braces.begin.powershell"
|
@@ -788,39 +832,39 @@
|
|
788
832
|
"3": {
|
789
833
|
"name": "storage.modifier.scope.powershell"
|
790
834
|
},
|
791
|
-
"4": {
|
792
|
-
"name": "variable.other.readwrite.powershell"
|
793
|
-
},
|
794
835
|
"5": {
|
795
836
|
"name": "punctuation.section.braces.end.powershell"
|
796
837
|
},
|
797
838
|
"6": {
|
798
|
-
"name": "
|
839
|
+
"name": "variable.other.member.powershell"
|
799
840
|
}
|
800
841
|
}
|
801
842
|
},
|
802
843
|
{
|
803
844
|
"match": "(?i:(\\$|@)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?",
|
804
845
|
"captures": {
|
846
|
+
"0": {
|
847
|
+
"name": "variable.other.readwrite.powershell"
|
848
|
+
},
|
805
849
|
"1": {
|
806
|
-
"name": "
|
850
|
+
"name": "punctuation.definition.variable.powershell"
|
807
851
|
},
|
808
852
|
"2": {
|
809
853
|
"name": "support.variable.drive.powershell"
|
810
854
|
},
|
811
|
-
"3": {
|
812
|
-
"name": "variable.other.readwrite.powershell"
|
813
|
-
},
|
814
855
|
"4": {
|
815
|
-
"name": "
|
856
|
+
"name": "variable.other.member.powershell"
|
816
857
|
}
|
817
858
|
}
|
818
859
|
},
|
819
860
|
{
|
820
861
|
"match": "(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?",
|
821
862
|
"captures": {
|
863
|
+
"0": {
|
864
|
+
"name": "variable.other.readwrite.powershell"
|
865
|
+
},
|
822
866
|
"1": {
|
823
|
-
"name": "
|
867
|
+
"name": "punctuation.definition.variable.powershell"
|
824
868
|
},
|
825
869
|
"2": {
|
826
870
|
"name": "punctuation.section.braces.begin.powershell"
|
@@ -828,14 +872,11 @@
|
|
828
872
|
"3": {
|
829
873
|
"name": "support.variable.drive.powershell"
|
830
874
|
},
|
831
|
-
"4": {
|
832
|
-
"name": "variable.other.readwrite.powershell"
|
833
|
-
},
|
834
875
|
"5": {
|
835
876
|
"name": "punctuation.section.braces.end.powershell"
|
836
877
|
},
|
837
878
|
"6": {
|
838
|
-
"name": "
|
879
|
+
"name": "variable.other.member.powershell"
|
839
880
|
}
|
840
881
|
}
|
841
882
|
}
|
@@ -846,115 +887,118 @@
|
|
846
887
|
{
|
847
888
|
"match": "(\\$)(?i:(False|Null|True))\\b",
|
848
889
|
"captures": {
|
849
|
-
"
|
850
|
-
"name": "keyword.other.variable.definition.powershell"
|
851
|
-
},
|
852
|
-
"2": {
|
890
|
+
"0": {
|
853
891
|
"name": "constant.language.powershell"
|
892
|
+
},
|
893
|
+
"1": {
|
894
|
+
"name": "punctuation.definition.variable.powershell"
|
854
895
|
}
|
855
896
|
}
|
856
897
|
},
|
857
898
|
{
|
858
899
|
"match": "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\b",
|
859
900
|
"captures": {
|
860
|
-
"
|
861
|
-
"name": "keyword.other.variable.definition.powershell"
|
862
|
-
},
|
863
|
-
"2": {
|
901
|
+
"0": {
|
864
902
|
"name": "support.constant.variable.powershell"
|
865
903
|
},
|
904
|
+
"1": {
|
905
|
+
"name": "punctuation.definition.variable.powershell"
|
906
|
+
},
|
866
907
|
"3": {
|
867
|
-
"name": "
|
908
|
+
"name": "variable.other.member.powershell"
|
868
909
|
}
|
869
910
|
}
|
870
911
|
},
|
871
912
|
{
|
872
913
|
"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",
|
873
914
|
"captures": {
|
874
|
-
"
|
875
|
-
"name": "keyword.other.variable.definition.powershell"
|
876
|
-
},
|
877
|
-
"2": {
|
915
|
+
"0": {
|
878
916
|
"name": "support.variable.automatic.powershell"
|
879
917
|
},
|
918
|
+
"1": {
|
919
|
+
"name": "punctuation.definition.variable.powershell"
|
920
|
+
},
|
880
921
|
"3": {
|
881
|
-
"name": "
|
922
|
+
"name": "variable.other.member.powershell"
|
882
923
|
}
|
883
924
|
}
|
884
925
|
},
|
885
926
|
{
|
886
927
|
"match": "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))\\b",
|
887
928
|
"captures": {
|
888
|
-
"
|
889
|
-
"name": "keyword.other.variable.definition.powershell"
|
890
|
-
},
|
891
|
-
"2": {
|
929
|
+
"0": {
|
892
930
|
"name": "variable.language.powershell"
|
893
931
|
},
|
932
|
+
"1": {
|
933
|
+
"name": "punctuation.definition.variable.powershell"
|
934
|
+
},
|
894
935
|
"3": {
|
895
|
-
"name": "
|
936
|
+
"name": "variable.other.member.powershell"
|
896
937
|
}
|
897
938
|
}
|
898
939
|
},
|
899
940
|
{
|
900
941
|
"match": "(?i:(\\$|@)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))",
|
901
942
|
"captures": {
|
943
|
+
"0": {
|
944
|
+
"name": "variable.other.readwrite.powershell"
|
945
|
+
},
|
902
946
|
"1": {
|
903
|
-
"name": "
|
947
|
+
"name": "punctuation.definition.variable.powershell"
|
904
948
|
},
|
905
949
|
"2": {
|
906
950
|
"name": "storage.modifier.scope.powershell"
|
907
951
|
},
|
908
|
-
"3": {
|
909
|
-
"name": "variable.other.readwrite.powershell"
|
910
|
-
},
|
911
952
|
"4": {
|
912
|
-
"name": "
|
953
|
+
"name": "variable.other.member.powershell"
|
913
954
|
}
|
914
955
|
}
|
915
956
|
},
|
916
957
|
{
|
917
958
|
"match": "(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))",
|
918
959
|
"captures": {
|
960
|
+
"0": {
|
961
|
+
"name": "variable.other.readwrite.powershell"
|
962
|
+
},
|
919
963
|
"1": {
|
920
|
-
"name": "
|
964
|
+
"name": "punctuation.definition.variable.powershell"
|
921
965
|
},
|
922
966
|
"2": {
|
923
967
|
"name": "storage.modifier.scope.powershell"
|
924
968
|
},
|
925
|
-
"3": {
|
926
|
-
"name": "variable.other.readwrite.powershell"
|
927
|
-
},
|
928
969
|
"4": {
|
929
970
|
"name": "keyword.other.powershell"
|
930
971
|
},
|
931
972
|
"5": {
|
932
|
-
"name": "
|
973
|
+
"name": "variable.other.member.powershell"
|
933
974
|
}
|
934
975
|
}
|
935
976
|
},
|
936
977
|
{
|
937
978
|
"match": "(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))",
|
938
979
|
"captures": {
|
980
|
+
"0": {
|
981
|
+
"name": "variable.other.readwrite.powershell"
|
982
|
+
},
|
939
983
|
"1": {
|
940
|
-
"name": "
|
984
|
+
"name": "punctuation.definition.variable.powershell"
|
941
985
|
},
|
942
986
|
"2": {
|
943
987
|
"name": "support.variable.drive.powershell"
|
944
988
|
},
|
945
|
-
"3": {
|
946
|
-
"name": "variable.other.readwrite.powershell"
|
947
|
-
},
|
948
989
|
"4": {
|
949
|
-
"name": "
|
990
|
+
"name": "variable.other.member.powershell"
|
950
991
|
}
|
951
992
|
}
|
952
993
|
},
|
953
994
|
{
|
954
995
|
"match": "(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))",
|
955
996
|
"captures": {
|
997
|
+
"0": {
|
998
|
+
"name": "variable.other.readwrite.powershell"
|
999
|
+
},
|
956
1000
|
"1": {
|
957
|
-
"name": "
|
1001
|
+
"name": "punctuation.definition.variable.powershell"
|
958
1002
|
},
|
959
1003
|
"2": {
|
960
1004
|
"name": "punctuation.section.braces.begin"
|
@@ -962,9 +1006,6 @@
|
|
962
1006
|
"3": {
|
963
1007
|
"name": "support.variable.drive.powershell"
|
964
1008
|
},
|
965
|
-
"4": {
|
966
|
-
"name": "variable.other.readwrite.powershell"
|
967
|
-
},
|
968
1009
|
"5": {
|
969
1010
|
"name": "punctuation.section.braces.end"
|
970
1011
|
}
|