Unnamed repository; edit this file 'description' to name the repository.
fix: use conditional scope for C# control keywords (#15486)
Matouš Dzivjak 4 months ago
parent 4839795 · commit dc433e4
-rw-r--r--runtime/queries/c-sharp/highlights.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/queries/c-sharp/highlights.scm b/runtime/queries/c-sharp/highlights.scm
index 07c3bfc3..897c1908 100644
--- a/runtime/queries/c-sharp/highlights.scm
+++ b/runtime/queries/c-sharp/highlights.scm
@@ -132,7 +132,6 @@
"as"
"base"
"break"
- "case"
"catch"
"checked"
"class"
@@ -140,7 +139,6 @@
"default"
"delegate"
"do"
- "else"
"enum"
"event"
"explicit"
@@ -150,7 +148,6 @@
"foreach"
"global"
"goto"
- "if"
"implicit"
"interface"
"is"
@@ -165,7 +162,6 @@
"stackalloc"
"static"
"struct"
- "switch"
"throw"
"try"
"typeof"
@@ -190,6 +186,14 @@
"let"
] @keyword
+[
+ "case"
+ "else"
+ "if"
+ "switch"
+ "when"
+] @keyword.control.conditional
+
;; Attribute
(attribute name: (identifier) @attribute)