Skip to content

Commit 0d40691

Browse files
committed
Fix to lower test case
1 parent 97b82a0 commit 0d40691

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Support/PowershellSyntax.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@
501501
<key>function</key>
502502
<dict>
503503
<key>begin</key>
504-
<string>(function|configuration)\s+((?:\p{L}|\d|_|-)+)</string>
504+
<string>(?i:function|configuration)\s+((?:\p{L}|\d|_|-)+)</string>
505505
<key>beginCaptures</key>
506506
<dict>
507507
<key>0</key>

tests/pester/SyntaxHelper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function Test-ScopesEqual
167167
if ($leftScope.startOffset -ne $rightScope.startOffset) {return $false}
168168
if ($leftScope.endOffset -ne $rightScope.endOffset) {return $false}
169169
if ($leftScope.Text -ne $rightScope.Text) {return $false}
170-
#TODO: this is week, need to make stronger
170+
#TODO: this is week, need to verify that Kind is the same
171171
#if ($leftScope.Kind.Split('.')[0] -ne $rightScope.Kind.Split('.')[0]) {return $false}
172172
return $true
173173
}

0 commit comments

Comments
 (0)