Improve CSS highlighting for property_name (#17324)

Peter Tripp created

Change summary

crates/languages/src/css/highlights.scm | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

Detailed changes

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