Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve CSS highlighting for property_name (#17324)

Peter Tripp27f09957c206
diff --git a/crates/languages/src/css/highlights.scm b/crates/languages/src/css/highlights.scm
index e271d8583c6..4ddfe9a418c 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