File tree Expand file tree Collapse file tree 3 files changed +33
-9
lines changed Expand file tree Collapse file tree 3 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 222
222
<string >\) </string >
223
223
<key >name </key >
224
224
<string >meta.group.complex.subexpression.powershell </string >
225
- <key >patterns </key >
226
- <array >
227
- <dict >
228
- <key >include </key >
229
- <string >$self </string >
230
- </dict >
231
- </array >
232
225
</dict >
233
226
<dict >
234
227
<key >match </key >
331
324
</dict >
332
325
</dict >
333
326
<key >end </key >
334
- <string >(? < =\)) \] </string >
327
+ <string >\] </string >
335
328
<key >endCaptures </key >
336
329
<dict >
337
330
<key >0 </key >
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ Describe "Syntax highlighting" {
49
49
$ignore = $true
50
50
}
51
51
52
+ if (@ (' 7>' ) -contains $psScope.Text ) {
53
+ # this is fine. It's more like a powershell parsing problem.
54
+ $ignore = $true
55
+ }
56
+
57
+
52
58
# TODO: These are bugs
53
59
if (@ (' Number' , ' Redirection' ) -contains $psScope.Kind ) {
54
60
$ignore = $true
@@ -62,7 +68,7 @@ Describe "Syntax highlighting" {
62
68
}
63
69
}
64
70
# TODO: These are bugs, make it 0
65
- $errorCounter | Should be @ ( 0 .. 2 )
71
+ $errorCounter | Should be 1
66
72
}
67
73
68
74
It " produces same tokens for lower case" {
Original file line number Diff line number Diff line change @@ -427,3 +427,28 @@ Get-things.ps1 -value @args
427
427
428
428
# array subexpression
429
429
@ (This $a is it. | " $ ( this- is | @ ($ (' yeah' | " " )) ) " )
430
+
431
+ # TODO: [minor] D:\dev\Find-String should not be treated as cmdlet name
432
+ Import-Module D:\dev\Find-String
433
+
434
+
435
+ function Get-EscapedPath
436
+ {
437
+ param (
438
+ [Parameter (
439
+ Position = 0 ,
440
+ Mandatory = $true
441
+ ValueFromPipeline = $true ,
442
+ ValueFromPipelineByPropertyName = $true )
443
+ ]
444
+ [string ]$path
445
+ )
446
+
447
+ process {
448
+ if ($path.Contains (' ' ))
449
+ {
450
+ return ' "' + $path + ' "'
451
+ }
452
+ return $path
453
+ }
454
+ }
You can’t perform that action at this time.
0 commit comments