From 341fbb8f3513ca9b277b7e2bc5db624e5e25f567 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Mon, 18 May 2026 18:25:46 +0200 Subject: [PATCH 1/2] Fix forward compatibility for rewritten C# caused by https://github.com/sublimehq/Packages/pull/4547 --- .../embed/C# (for PowerShell).sublime-syntax | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/syntax/embed/C# (for PowerShell).sublime-syntax b/syntax/embed/C# (for PowerShell).sublime-syntax index 4eb40f2..2eb6508 100644 --- a/syntax/embed/C# (for PowerShell).sublime-syntax +++ b/syntax/embed/C# (for PowerShell).sublime-syntax @@ -10,12 +10,30 @@ contexts: inside_triple_quoted_raw_string_syntax: - meta_include_prototype: false - - include: immediately_pop + - match: '' + pop: 1 inside_verbatim_string_syntax: - meta_include_prototype: false - - include: immediately_pop + - match: '' + pop: 1 inside_verbatim_format_string_syntax: - meta_include_prototype: false - - include: immediately_pop + - match: '' + pop: 1 + + inside-triple-quoted-raw-string-syntax: + - meta_include_prototype: false + - match: '' + pop: 1 + + inside-verbatim-string-syntax: + - meta_include_prototype: false + - match: '' + pop: 1 + + inside-verbatim-format-string-syntax: + - meta_include_prototype: false + - match: '' + pop: 1 From 08f5cb44b37fe136901c86ef4ffff76930320a68 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Mon, 18 May 2026 19:03:43 +0200 Subject: [PATCH 2/2] Use common immediately-pop override --- .../embed/C# (for PowerShell).sublime-syntax | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/syntax/embed/C# (for PowerShell).sublime-syntax b/syntax/embed/C# (for PowerShell).sublime-syntax index 2eb6508..80c9a1d 100644 --- a/syntax/embed/C# (for PowerShell).sublime-syntax +++ b/syntax/embed/C# (for PowerShell).sublime-syntax @@ -9,31 +9,37 @@ extends: Packages/C#/C#.sublime-syntax contexts: inside_triple_quoted_raw_string_syntax: + # required before sublimehq/Packages/pull/4547 - meta_include_prototype: false - - match: '' - pop: 1 + - include: immediately-pop inside_verbatim_string_syntax: + # required before sublimehq/Packages/pull/4547 - meta_include_prototype: false - - match: '' - pop: 1 + - include: immediately-pop inside_verbatim_format_string_syntax: + # required before sublimehq/Packages/pull/4547 - meta_include_prototype: false - - match: '' - pop: 1 + - include: immediately-pop inside-triple-quoted-raw-string-syntax: + # required for sublimehq/Packages/pull/4547 - meta_include_prototype: false - - match: '' - pop: 1 + - include: immediately-pop inside-verbatim-string-syntax: + # required for sublimehq/Packages/pull/4547 - meta_include_prototype: false - - match: '' - pop: 1 + - include: immediately-pop inside-verbatim-format-string-syntax: + # required for sublimehq/Packages/pull/4547 + - meta_include_prototype: false + - include: immediately-pop + + immediately-pop: + # required before sublimehq/Packages/pull/4547 - meta_include_prototype: false - match: '' pop: 1