Add @operator, @lifetime and @punctuation.delimiters captures for Rust (#10885)
Adds additional captures for theming rust code. I'm uncertain about whether `#` belongs in the `@operator` capture, but I didn't see a more appropriate capture name in my brief hunt in other files. It is the prefix of an `attribute_item`.. suggestions welcome. Release Notes: - Added `@operator`, `@lifetime` and `@punctuation.delimiter` captures to Rust highlights file.
This commit is contained in:
parent
544bd490ac
commit
d3f6ca7a1e
1 changed files with 57 additions and 0 deletions
|
@ -64,6 +64,16 @@
|
||||||
"<" @punctuation.bracket
|
"<" @punctuation.bracket
|
||||||
">" @punctuation.bracket)
|
">" @punctuation.bracket)
|
||||||
|
|
||||||
|
[
|
||||||
|
";"
|
||||||
|
","
|
||||||
|
"::"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"#"
|
||||||
|
] @punctuation.special
|
||||||
|
|
||||||
[
|
[
|
||||||
"as"
|
"as"
|
||||||
"async"
|
"async"
|
||||||
|
@ -122,3 +132,50 @@
|
||||||
(line_comment)
|
(line_comment)
|
||||||
(block_comment)
|
(block_comment)
|
||||||
] @comment
|
] @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
"!"
|
||||||
|
"!="
|
||||||
|
"%"
|
||||||
|
"%="
|
||||||
|
"&"
|
||||||
|
"&="
|
||||||
|
"&&"
|
||||||
|
"*"
|
||||||
|
"*="
|
||||||
|
"*"
|
||||||
|
"+"
|
||||||
|
"+="
|
||||||
|
","
|
||||||
|
"-"
|
||||||
|
"-="
|
||||||
|
"->"
|
||||||
|
"."
|
||||||
|
".."
|
||||||
|
"..="
|
||||||
|
"..."
|
||||||
|
"/"
|
||||||
|
"/="
|
||||||
|
":"
|
||||||
|
";"
|
||||||
|
"<<"
|
||||||
|
"<<="
|
||||||
|
"<"
|
||||||
|
"<="
|
||||||
|
"="
|
||||||
|
"=="
|
||||||
|
"=>"
|
||||||
|
">"
|
||||||
|
">="
|
||||||
|
">>"
|
||||||
|
">>="
|
||||||
|
"@"
|
||||||
|
"^"
|
||||||
|
"^="
|
||||||
|
"|"
|
||||||
|
"|="
|
||||||
|
"||"
|
||||||
|
"?"
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
(lifetime) @lifetime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue