aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJostein Kjønigsen2025-12-15 14:46:30 +0100
committerEli Zaretskii2025-12-20 15:12:50 +0200
commite3883144ae2055ff9c4a9e5bd48df469c2986e72 (patch)
treeae70a1419191ed7399053f00de3050d20933e9d9
parent985e942d1ccb71c9b29b35080098b8fb851eecde (diff)
downloademacs-e3883144ae2055ff9c4a9e5bd48df469c2986e72.tar.gz
emacs-e3883144ae2055ff9c4a9e5bd48df469c2986e72.zip
csharp-mode: Fix fontification of catch-expressions
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): Improve specificity of selectors. Don't let type-selector bleed into name-selector. (Bug#80038)
-rw-r--r--lisp/progmodes/csharp-mode.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index 1a31e3f9ab9..c1db5439ab5 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -1028,10 +1028,9 @@ compilation and evaluation time conflicts."
1028 (conditional_expression)]) 1028 (conditional_expression)])
1029 1029
1030 (catch_declaration 1030 (catch_declaration
1031 ((identifier) @font-lock-type-face)) 1031 type: (identifier) @font-lock-type-face)
1032 (catch_declaration 1032 (catch_declaration
1033 ((identifier) @font-lock-type-face 1033 name: (identifier) @font-lock-variable-name-face)
1034 (identifier) @font-lock-variable-name-face))
1035 1034
1036 (variable_declaration (identifier) @font-lock-type-face) 1035 (variable_declaration (identifier) @font-lock-type-face)
1037 (variable_declaration (qualified_name 1036 (variable_declaration (qualified_name