Skip to content

Commit cf1caf9

Browse files
authored
Fix forward compatibility for rewritten C# (#223)
caused by sublimehq/Packages@927bcbe
1 parent 2ecae8f commit cf1caf9

2 files changed

Lines changed: 8 additions & 16 deletions

File tree

syntax/embed/C# (for PowerShell).sublime-syntax

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ hidden: true
66

77
extends: Packages/C#/C#.sublime-syntax
88

9+
variables:
10+
sql_indicator: (?!)
11+
912
contexts:
1013

1114
inside_triple_quoted_raw_string_syntax:
@@ -23,20 +26,11 @@ contexts:
2326
- meta_include_prototype: false
2427
- include: immediately-pop
2528

26-
inside-triple-quoted-raw-string-syntax:
27-
# required for sublimehq/Packages/pull/4547
28-
- meta_include_prototype: false
29-
- include: immediately-pop
29+
inside-triple-quoted-raw-string-sql: []
3030

31-
inside-verbatim-string-syntax:
32-
# required for sublimehq/Packages/pull/4547
33-
- meta_include_prototype: false
34-
- include: immediately-pop
31+
inside-verbatim-string-sql: []
3532

36-
inside-verbatim-format-string-syntax:
37-
# required for sublimehq/Packages/pull/4547
38-
- meta_include_prototype: false
39-
- include: immediately-pop
33+
inside-verbatim-format-string-sql: []
4034

4135
immediately-pop:
4236
# required before sublimehq/Packages/pull/4547

tests/syntax_test_strings.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
@'
6161
using System;
6262
#^^^^^^^^^^^^^^^^ meta.string.powershell string.quoted.single.heredoc.powershell source.cs
63-
# ^^^^^ keyword.control.import.cs
64-
# ^^^^^^ meta.path.cs
63+
# ^^^^^ keyword
6564
# ^ punctuation.terminator
6665
'@
6766

@@ -232,8 +231,7 @@
232231
@"
233232
using System;
234233
#^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.heredoc.powershell source.cs
235-
# ^^^^^ keyword.control.import.cs
236-
# ^^^^^^ meta.path.cs
234+
# ^^^^^ keyword
237235
# ^ punctuation.terminator
238236
"@
239237

0 commit comments

Comments
 (0)