mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
parent
2b210d98b8
commit
61580f3cb8
5 changed files with 3 additions and 6 deletions
|
@ -81,7 +81,7 @@ pub fn highlight(file: &File) -> Vec<HighlightedRange> {
|
|||
let mut res = Vec::new();
|
||||
for node in file.syntax().descendants() {
|
||||
let tag = match node.kind() {
|
||||
COMMENT | DOC_COMMENT => "comment",
|
||||
COMMENT => "comment",
|
||||
STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => "string",
|
||||
ATTR => "attribute",
|
||||
NAME_REF => "text",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue