Skip to content
Open
Show file tree
Hide file tree
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
18 changes: 6 additions & 12 deletions syntax/embed/C# (for PowerShell).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ hidden: true

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

variables:
sql_indicator: (?!)

contexts:

inside_triple_quoted_raw_string_syntax:
Expand All @@ -23,20 +26,11 @@ contexts:
- meta_include_prototype: false
- include: immediately-pop

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

inside-verbatim-string-syntax:
# required for sublimehq/Packages/pull/4547
- meta_include_prototype: false
- include: immediately-pop
inside-verbatim-string-sql: []

inside-verbatim-format-string-syntax:
# required for sublimehq/Packages/pull/4547
- meta_include_prototype: false
- include: immediately-pop
inside-verbatim-format-string-sql: []

immediately-pop:
# required before sublimehq/Packages/pull/4547
Expand Down
6 changes: 2 additions & 4 deletions tests/syntax_test_strings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
@'
using System;
#^^^^^^^^^^^^^^^^ meta.string.powershell string.quoted.single.heredoc.powershell source.cs
# ^^^^^ keyword.control.import.cs
# ^^^^^^ meta.path.cs
# ^^^^^ keyword
# ^ punctuation.terminator
'@

Expand Down Expand Up @@ -232,8 +231,7 @@
@"
using System;
#^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.heredoc.powershell source.cs
# ^^^^^ keyword.control.import.cs
# ^^^^^^ meta.path.cs
# ^^^^^ keyword
# ^ punctuation.terminator
"@

Expand Down