diff --git a/crates/zed/src/languages/c/highlights.scm b/crates/zed/src/languages/c/highlights.scm index 9f2dabff174eb9f0b12d621d69c4786c88f94e94..4a9c7bf2eaefc6262db4d37c56415bb31ae9460a 100644 --- a/crates/zed/src/languages/c/highlights.scm +++ b/crates/zed/src/languages/c/highlights.scm @@ -56,7 +56,16 @@ [ "." ";" -] @delimiter +] @punctuation.delimiter + +[ + "{" + "}" + "(" + ")" + "[" + "]" +] @punctuation.bracket [ (string_literal) diff --git a/crates/zed/src/languages/javascript/highlights.scm b/crates/zed/src/languages/javascript/highlights.scm index cb4e82b33d8b04da41e90c6926499669fee33b60..d3921cdbc8096ce2a21acd28325c89cf14a383cc 100644 --- a/crates/zed/src/languages/javascript/highlights.scm +++ b/crates/zed/src/languages/javascript/highlights.scm @@ -86,6 +86,7 @@ "?." "." "," + ":" ] @punctuation.delimiter [ diff --git a/crates/zed/src/languages/json/highlights.scm b/crates/zed/src/languages/json/highlights.scm index 9754465166f191cf19b2c92105396ccd170cef43..b5c64e96344cfbdeaa6dfe35a8bdca99b6c891e5 100644 --- a/crates/zed/src/languages/json/highlights.scm +++ b/crates/zed/src/languages/json/highlights.scm @@ -11,4 +11,11 @@ (true) (false) (null) -] @constant \ No newline at end of file +] @constant + +[ + "{" + "}" + "[" + "]" +] @punctuation.bracket \ No newline at end of file diff --git a/crates/zed/src/languages/rust/highlights.scm b/crates/zed/src/languages/rust/highlights.scm index 116be758424216869f66772a09b11b9ab90f9da1..d4f571dd526ecd795c6307b14780caea7201d5a0 100644 --- a/crates/zed/src/languages/rust/highlights.scm +++ b/crates/zed/src/languages/rust/highlights.scm @@ -34,6 +34,20 @@ ((identifier) @constant (#match? @constant "^[A-Z][A-Z\\d_]+$")) +[ + "(" + ")" + "{" + "}" + "[" + "]" +] @punctuation.bracket + +(_ + . + "<" @punctuation.bracket + ">" @punctuation.bracket) + [ "as" "async" diff --git a/crates/zed/src/languages/toml/highlights.scm b/crates/zed/src/languages/toml/highlights.scm index 9f43b6aa6f0bd9abbbeea820c504613306dd1dff..04d83b545925d787de1ce238e88b79f234624bef 100644 --- a/crates/zed/src/languages/toml/highlights.scm +++ b/crates/zed/src/languages/toml/highlights.scm @@ -20,14 +20,18 @@ ; Punctuation ;------------ -"." @punctuation.delimiter -"," @punctuation.delimiter +[ + "." + "," +] @punctuation.delimiter "=" @operator -"[" @punctuation.bracket -"]" @punctuation.bracket -"[[" @punctuation.bracket -"]]" @punctuation.bracket -"{" @punctuation.bracket -"}" @punctuation.bracket \ No newline at end of file +[ + "[" + "]" + "[[" + "]]" + "{" + "}" +] @punctuation.bracket diff --git a/crates/zed/src/languages/typescript/highlights.scm b/crates/zed/src/languages/typescript/highlights.scm index cb4e82b33d8b04da41e90c6926499669fee33b60..d3921cdbc8096ce2a21acd28325c89cf14a383cc 100644 --- a/crates/zed/src/languages/typescript/highlights.scm +++ b/crates/zed/src/languages/typescript/highlights.scm @@ -86,6 +86,7 @@ "?." "." "," + ":" ] @punctuation.delimiter [