Skip to content

Conversation

@jordi1215
Copy link
Contributor

@jordi1215 jordi1215 commented Jan 16, 2025

This fixes #11249.

The problem here is that curly braces are not required within the case clause. I added one line in the TextMate syntax to account for this potential usage.

The code change and testing is done on the vscode-csharp repo where Razor TextMate source code is hosted. See original PR: dotnet/vscode-csharp#7929.

Before:
image
After:
image

@jordi1215 jordi1215 changed the title update textmate to fix cruly brace in switch bug TextMate bug: recognize codeblocks with curly braces in switch statements Jan 16, 2025
@jordi1215 jordi1215 enabled auto-merge (squash) January 16, 2025 21:27
@jordi1215 jordi1215 merged commit 9b1e979 into main Jan 16, 2025
11 of 12 checks passed
@jordi1215 jordi1215 deleted the dev/jordiramos/Textmate-switch-fix branch January 16, 2025 21:40
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jan 16, 2025
@jjonescz jjonescz modified the milestones: Next, 17.14 P1 Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C# comments in HTML text node in switch case statement classifies further HTML text and C# identifiers as C# comments

4 participants