File tree 3 files changed +40
-17
lines changed
3 files changed +40
-17
lines changed Original file line number Diff line number Diff line change 9
9
<array >
10
10
<dict >
11
11
<key >begin </key >
12
- <string >punctuation.section.block .begin </string >
12
+ <string >meta.fold .begin </string >
13
13
<key >end </key >
14
- <string >punctuation.section.block .end </string >
14
+ <string >meta.fold .end </string >
15
15
</dict >
16
16
<dict >
17
17
<key >begin </key >
18
18
<string >punctuation.definition.comment.block.begin </string >
19
19
<key >end </key >
20
20
<string >punctuation.definition.comment.block.end </string >
21
+ <key >excludeTrailingNewlines </key >
22
+ <false />
21
23
</dict >
22
24
<dict >
23
25
<key >begin </key >
24
26
<string >punctuation.definition.string.begin </string >
25
27
<key >end </key >
26
28
<string >punctuation.definition.string.end </string >
29
+ <key >excludeTrailingNewlines </key >
30
+ <false />
31
+ </dict >
32
+ <dict >
33
+ <key >begin </key >
34
+ <string >punctuation.section.group.begin </string >
35
+ <key >end </key >
36
+ <string >punctuation.section.group.end </string >
37
+ <key >excludeTrailingNewlines </key >
38
+ <false />
39
+ </dict >
40
+ <dict >
41
+ <key >begin </key >
42
+ <string >punctuation.section.braces.begin </string >
43
+ <key >end </key >
44
+ <string >punctuation.section.braces.end </string >
45
+ <key >excludeTrailingNewlines </key >
46
+ <false />
27
47
</dict >
28
48
</array >
29
49
</dict >
Original file line number Diff line number Diff line change @@ -811,15 +811,17 @@ contexts:
811
811
- include : comment-line
812
812
813
813
regions :
814
- - match : ^(#region\s*(.*))$
815
- captures :
816
- # Applying the punctuation.section.block.begin scope to the entire pattern
817
- # allows Sublime Text to show the region name when it is folded.
818
- 1 : punctuation.section.block.begin.powershell comment.line.powershell
819
- 2 : meta.toc-list.powershell
820
- - match : ^#endregion\b
821
- scope : punctuation.section.block.end.powershell comment.line.powershell
822
- push :
823
- - meta_content_scope : comment.line.powershell
824
- - include : pop-at-newline
825
- - include : comment-embedded-docs
814
+ - match : ^\s*(#)\s*(region)\b\s*(\S.*)
815
+ captures :
816
+ 1 : punctuation.definition.comment.powershell
817
+ 2 : comment.line.powershell
818
+ 3 : meta.toc-list.powershell meta.fold.begin.powershell entity.name.section.powershell
819
+ - match : ' ^\s*(#)\s*(region)\b\s*'
820
+ captures :
821
+ 1 : punctuation.definition.comment.powershell
822
+ 2 : comment.line.powershell meta.fold.begin.powershell
823
+ - match : ' ^\s*(#)\s*(endregion\b[^\S\n]*.*)($\n?)'
824
+ captures :
825
+ 1 : punctuation.definition.comment.powershell
826
+ 2 : comment.line.powershell
827
+ 3 : meta.fold.end.powershell
Original file line number Diff line number Diff line change @@ -1812,9 +1812,10 @@ function get-number {}
1812
1812
#>
1813
1813
1814
1814
# region Test
1815
- # <- punctuation.section.block.begin comment.line
1816
- # ^^^^ meta.toc-list
1815
+ # <- punctuation.definition.comment
1816
+ # ^^^^^^ comment.line.powershell
1817
+ # ^^^^ meta.toc-list meta.fold.begin entity.name.section
1817
1818
# @@@@ local-definition
1818
1819
# endregion (Text after #endregion is optional, but the ISE marks it as a comment as well)
1819
- # <- punctuation.section.block.end comment.line
1820
+ # <- punctuation.definition. comment.powershell
1820
1821
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line
You can’t perform that action at this time.
0 commit comments