diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index 79a50185aadbf2ffc77a53f4b53ac88049187d17..b98812fe3914a2574649fce59c0bfef3a58035af 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -64,6 +64,16 @@ "<" @punctuation.bracket ">" @punctuation.bracket) +[ + ";" + "," + "::" +] @punctuation.delimiter + +[ + "#" +] @punctuation.special + [ "as" "async" @@ -122,3 +132,50 @@ (line_comment) (block_comment) ] @comment + +[ + "!" + "!=" + "%" + "%=" + "&" + "&=" + "&&" + "*" + "*=" + "*" + "+" + "+=" + "," + "-" + "-=" + "->" + "." + ".." + "..=" + "..." + "/" + "/=" + ":" + ";" + "<<" + "<<=" + "<" + "<=" + "=" + "==" + "=>" + ">" + ">=" + ">>" + ">>=" + "@" + "^" + "^=" + "|" + "|=" + "||" + "?" +] @operator + +(lifetime) @lifetime