Skip to content

Commit bb41692

Browse files
committed
tests for PowerShell#143 and PowerShell#167 part 1
1 parent 0d4cbf8 commit bb41692

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

spec/testfiles/syntax_test_TheBigTestFile.ps1

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,21 +379,38 @@ $a3[1..2]
379379
"This 'string' is nice."
380380
# ^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.powershell
381381

382-
# Double quoted here-string
383-
@"
382+
# Double quoted here-string, white space at end of start token allowed
383+
@"
384384
# <- string.quoted.double.heredoc.powershell
385385
# <- string.quoted.double.heredoc.powershell
386386
$This is a 'double quoted'
387387
# <- punctuation.definition.variable.powershell
388388
# ^ string.quoted.double.heredoc.powershell support.variable.automatic.powershell
389-
Isn't it "nice"??
389+
Isn't it ""nice""??
390+
# ^^ not:constant.character.escape.powershell
390391
There is no @platting here!
391392
# ^ not:punctuation.definition.variable.powershell
392393
# ^ not:variable.other.readwrite.powershell
393394
"@
394395
# <- string.quoted.double.heredoc.powershell
395396
# <- string.quoted.double.heredoc.powershell
396397

398+
# Single quoted here-string, white space at end of start token allowed
399+
@'
400+
# <- string.quoted.single.heredoc.powershell
401+
# <- string.quoted.single.heredoc.powershell
402+
$This is a ''single quoted''
403+
# ^^ not:constant.character.escape.powershell
404+
# <- not:punctuation.definition.variable.powershell
405+
# ^ string.quoted.single.heredoc.powershell not:support.variable.automatic.powershell
406+
Isn't it "nice"??
407+
There is no @platting here!
408+
# ^ not:punctuation.definition.variable.powershell
409+
# ^ not:variable.other.readwrite.powershell
410+
'@
411+
# <- string.quoted.single.heredoc.powershell
412+
# <- string.quoted.single.heredoc.powershell
413+
397414
# Numeric constants
398415
-3
399416
# ^^ constant.numeric.integer.powershell

0 commit comments

Comments
 (0)