Skip to content

Commit 0d1a3a2

Browse files
committed
Update region syntax highlighting tests
1 parent d97415f commit 0d1a3a2

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Tests/syntax_test_PowerShell.ps1

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,9 +1813,24 @@ function get-number {}
18131813

18141814
#region Test
18151815
#<- punctuation.definition.comment
1816-
#^^^^^^ comment.line.powershell
1817-
# ^^^^ meta.toc-list meta.fold.begin entity.name.section
1816+
#^^^^^^ keyword.other.region.begin
1817+
#<- comment.line.powershell
1818+
# ^^^^ meta.toc-list entity.name.section
18181819
# @@@@ local-definition
1819-
#endregion (Text after #endregion is optional, but the ISE marks it as a comment as well)
1820+
# ^ meta.fold.begin
1821+
#endregion (More comments)
18201822
#<- punctuation.definition.comment.powershell
1821-
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line
1823+
#^^^^^^^^^ keyword.other.region.end.powershell
1824+
#<- comment.line
1825+
# ^ meta.fold.end
1826+
1827+
#region
1828+
#<- punctuation.definition.comment
1829+
#^^^^^^ keyword.other.region.begin
1830+
#<- comment.line.powershell
1831+
# ^ meta.fold.begin
1832+
#endregion (More comments)
1833+
#<- punctuation.definition.comment.powershell
1834+
#^^^^^^^^^ keyword.other.region.end.powershell
1835+
#<- comment.line
1836+
# ^ meta.fold.end

0 commit comments

Comments
 (0)