aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorGrayJack <[email protected]>2020-07-21 03:19:29 +0100
committerGrayJack <[email protected]>2020-07-21 03:19:29 +0100
commit04d8dc4a10be5e0c6a852011c98284f0121f3293 (patch)
tree6d2ddf936d4dee1b05f668a8166ace9fdac7a74b /crates/ra_ide/src/syntax_highlighting.rs
parent462e0158dae29cc0c55e699dd0e83c36a60ef5b9 (diff)
`#` as Attribute
- Issue #5453
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 0088077cc..036180c60 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -540,6 +540,7 @@ fn highlight_element(
540 } 540 }
541 } 541 }
542 p if p.is_punct() => match p { 542 p if p.is_punct() => match p {
543 T![#] => HighlightTag::Attribute.into(),
543 T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => { 544 T![::] | T![->] | T![=>] | T![&] | T![..] | T![=] | T![@] => {
544 HighlightTag::Operator.into() 545 HighlightTag::Operator.into()
545 } 546 }