rust: Add highlight selector for doc comments (#15384)
## Release Notes: - Added ability to style doc comments in Rust separately with `comment.doc` ([#15322](https://github.com/zed-industries/zed/issues/15322)). Just required adding another query to the highlights.scm file. Took inspiration from the tree-sitter-rust repository [here](https://github.com/tree-sitter/tree-sitter-rust/blob/master/queries/highlights.scm) #### Doc comments customized in the theme are working now:  #### Snippet from the .json theme file 
This commit is contained in:
parent
c97d035eea
commit
1a9af10ca2
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,11 @@
|
||||||
(block_comment)
|
(block_comment)
|
||||||
] @comment
|
] @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
(line_comment (doc_comment))
|
||||||
|
(block_comment (doc_comment))
|
||||||
|
] @comment.doc
|
||||||
|
|
||||||
[
|
[
|
||||||
"!"
|
"!"
|
||||||
"!="
|
"!="
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue