From 27f09957c2066f0f4131f5daafb95085e3ce6dbb Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 17 Sep 2024 11:53:52 -0400 Subject: [PATCH] Improve CSS highlighting for property_name (#17324) --- crates/languages/src/css/highlights.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/crates/languages/src/css/highlights.scm b/crates/languages/src/css/highlights.scm index e271d8583c661..4ddfe9a418ca7 100644 --- a/crates/languages/src/css/highlights.scm +++ b/crates/languages/src/css/highlights.scm @@ -35,10 +35,11 @@ (class_name) (id_name) (namespace_name) - (property_name) (feature_name) ] @property +(property_name) @constant + (function_name) @function ( @@ -75,4 +76,17 @@ [ "," ":" + "." + "::" + ";" + "#" ] @punctuation.delimiter + +[ + "{" + ")" + "(" + "}" + "[" + "]" +] @punctuation.bracket