Skip to content

Commit 43beee2

Browse files
committed
Extract command ending sequences to a context
1 parent b543719 commit 43beee2

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

PowerShell.sublime-syntax

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,21 @@ contexts:
317317

318318
in-command:
319319
# - meta_scope: region.pinkish
320+
- include: command-ending-sequences
321+
- include: redirection
322+
- include: cli-parameters
323+
- include: expressions-without-commands
324+
- match: (?=\S)
325+
push:
326+
- meta_include_prototype: false
327+
- meta_scope: string.unquoted.powershell
328+
- match: (?=[\s#|>;,]|$)
329+
pop: 1
330+
- match: '[\\/:.]'
331+
scope: punctuation.separator.powershell
332+
- include: escape-sequences
333+
334+
command-ending-sequences:
320335
- include: line-continuations
321336
- include: pop-eol
322337
- match: (?=[)}])
@@ -333,19 +348,6 @@ contexts:
333348
- match: \|
334349
scope: keyword.operator.logical.pipe.powershell
335350
pop: 1
336-
- include: redirection
337-
- include: cli-parameters
338-
- include: expressions-without-commands
339-
- match: (?=\S)
340-
push:
341-
- meta_include_prototype: false
342-
- meta_scope: string.unquoted.powershell
343-
- match: (?=[\s#|>;,]|$)
344-
pop: 1
345-
- match: '[\\/:.]'
346-
scope: punctuation.separator.powershell
347-
- include: escape-sequences
348-
349351

350352
cli-parameters:
351353
# Flags/Options/Parameters

0 commit comments

Comments
 (0)