Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions PowerShell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ contexts:
- match: (?={{csharp_indicator}})
set: scope:source.cs.embedded.powershell
with_prototype:
- match: (?=^{{single_quote}}@)
- match: (?={{no_indent}}{{single_quote}}@)
pop: 1
- match: '{{single_quote}}{2}'
scope: constant.character.escape.powershell
Expand All @@ -1091,8 +1091,9 @@ contexts:
inside-single-quoted-heredoc-string:
- meta_include_prototype: false
- meta_scope: meta.string.powershell string.quoted.single.heredoc.powershell
- match: ^{{single_quote}}@
scope: punctuation.definition.string.end.powershell
- match: '{{no_indent}}({{single_quote}}@)'
captures:
1: punctuation.definition.string.end.powershell
pop: 1
- match: '{{single_quote}}{2}'
scope: constant.character.escape.powershell
Expand All @@ -1108,8 +1109,9 @@ contexts:
inside-double-quoted-heredoc-string:
- meta_include_prototype: false
- meta_scope: meta.string.interpolated.powershell string.quoted.double.heredoc.powershell
- match: ^{{double_quote}}@
scope: punctuation.definition.string.end.powershell
- match: '{{no_indent}}({{double_quote}}@)'
captures:
1: punctuation.definition.string.end.powershell
pop: 1
- include: escape-sequences
- include: string-interpolations
Expand All @@ -1120,7 +1122,7 @@ contexts:
- match: (?={{csharp_indicator}})
set: scope:source.cs.embedded.powershell
with_prototype:
- match: (?=^{{double_quote}}@)
- match: (?={{no_indent}}{{double_quote}}@)
pop: 1
- include: escape-sequences
- include: else-pop
Expand Down Expand Up @@ -1425,6 +1427,9 @@ variables:
)\b
shebang_language: \b(?:pwsh|powershell)\b

# Indentation and whitespace patterns
no_indent: ^

# Attributes
attributes: |-
\b(?xi:
Expand Down