Skip to content

Commit e32be98

Browse files
committed
Move and rename the stop-parsing token
1 parent b915a7c commit e32be98

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PowerShell.sublime-syntax

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ contexts:
105105
- include: requires-directives
106106

107107
- include: escape-sequences
108-
- include: literal-after
108+
- include: stop-parsing-token
109109

110110
# Normal code
111111
- include: types
@@ -126,14 +126,6 @@ contexts:
126126

127127
- include: operators
128128

129-
literal-after:
130-
- match: \B--%\B
131-
scope: keyword.control.powershell
132-
push:
133-
- meta_include_prototype: false
134-
- meta_content_scope: string.unquoted.powershell
135-
- include: pop-before-eol
136-
137129
future-reserved-words:
138130
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_reserved_words
139131
- match: \b(?i:define|from){{kebab_break}}
@@ -1295,6 +1287,14 @@ contexts:
12951287

12961288
###[ COMPONENTS ]##############################################################
12971289

1290+
stop-parsing-token:
1291+
- match: \B--%\B
1292+
scope: keyword.control.powershell
1293+
push:
1294+
- meta_include_prototype: false
1295+
- meta_content_scope: string.unquoted.powershell
1296+
- include: pop-before-eol
1297+
12981298
path-punctuation:
12991299
- match: '[:/\\.]+'
13001300
scope: punctuation.separator.powershell

0 commit comments

Comments
 (0)