Skip to content

Commit 4ea88b4

Browse files
committed
Finish named contexts for string content
1 parent c2274d2 commit 4ea88b4

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

PowerShell.sublime-syntax

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ contexts:
655655
push: inside-single-quoted-string
656656

657657
inside-single-quoted-string:
658+
- meta_include_prototype: false
658659
- meta_scope: meta.string.powershell string.quoted.single.powershell
659660
- match: "''"
660661
scope: constant.character.escape.powershell
@@ -685,26 +686,30 @@ contexts:
685686
single-quoted-heredoc-strings:
686687
- match: \@'(?=$)
687688
scope: punctuation.definition.string.begin.powershell
688-
push:
689-
- meta_include_prototype: false
690-
- meta_scope: meta.string.powershell string.quoted.single.heredoc.powershell
691-
- match: ^'@
692-
scope: punctuation.definition.string.end.powershell
693-
pop: 1
694-
- match: "''"
695-
scope: constant.character.escape.powershell
689+
push: inside-single-quoted-heredoc-string
690+
691+
inside-single-quoted-heredoc-string:
692+
- meta_include_prototype: false
693+
- meta_scope: meta.string.powershell string.quoted.single.heredoc.powershell
694+
- match: ^'@
695+
scope: punctuation.definition.string.end.powershell
696+
pop: 1
697+
- match: "''"
698+
scope: constant.character.escape.powershell
696699

697700
double-quoted-heredoc-strings:
698701
- match: \@"(?=$)
699702
scope: punctuation.definition.string.begin.powershell
700-
push:
701-
- meta_include_prototype: false
702-
- meta_scope: meta.string.powershell string.quoted.double.heredoc.powershell
703-
- match: ^"@
704-
scope: punctuation.definition.string.end.powershell
705-
pop: 1
706-
- include: escape-sequences
707-
- include: string-interpolations
703+
push: inside-double-quoted-heredoc-string
704+
705+
inside-double-quoted-heredoc-string:
706+
- meta_include_prototype: false
707+
- meta_scope: meta.string.powershell string.quoted.double.heredoc.powershell
708+
- match: ^"@
709+
scope: punctuation.definition.string.end.powershell
710+
pop: 1
711+
- include: escape-sequences
712+
- include: string-interpolations
708713

709714
string-interpolations:
710715
- match: \$\(

0 commit comments

Comments
 (0)