Skip to content

Commit cf8df09

Browse files
committed
Don't nest SQL in embedded C#
1 parent bf0a015 commit cf8df09

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

PowerShell.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ contexts:
10721072
inside-single-quoted-heredoc-string.syntax:
10731073
- meta_include_prototype: false
10741074
- match: (?={{csharp_indicator}})
1075-
set: scope:source.cs
1075+
set: scope:source.cs.embedded.powershell
10761076
with_prototype:
10771077
- match: (?=^{{single_quote}}@)
10781078
pop: 1
@@ -1110,7 +1110,7 @@ contexts:
11101110
inside-double-quoted-heredoc-string.syntax:
11111111
- meta_include_prototype: false
11121112
- match: (?={{csharp_indicator}})
1113-
set: scope:source.cs
1113+
set: scope:source.cs.embedded.powershell
11141114
with_prototype:
11151115
- match: (?=^{{double_quote}}@)
11161116
pop: 1

messages/5.0.0-alpha.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ Thank you.
4040

4141
## Known Issues
4242

43-
- #213 The Containerfile package exceeds the context sanity check.
43+
- [X] #213 The Containerfile package exceeds the context sanity check.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
%YAML 1.2
2+
---
3+
scope: source.cs.embedded.powershell
4+
# version: 2
5+
hidden: true
6+
7+
extends: Packages/C#/C#.sublime-syntax
8+
9+
contexts:
10+
11+
inside_triple_quoted_raw_string_literal_syntax:
12+
- include: immediately-pop
13+
14+
inside_long_string_syntax:
15+
- include: immediately-pop
16+
17+
inside_long_format_string_syntax:
18+
- include: immediately-pop
19+
20+
immediately-pop:
21+
- match: ''
22+
pop: 1

0 commit comments

Comments
 (0)