highlightjs/highlight.js
(Rust) Escaped double quotations in string at attribute are not highlighted properly
クローズ
#3,817 opened on 2023/07/10
buggood first issuehelp welcomelanguage
Repository metrics
- Stars
- (22,960 個のスター)
- PR merge metrics
- (平均マージ 6m) (30d で 2 merged PRs)
説明
Describe the issue
Escaped double quotations in string at attributes are not treated as a escaped character but a normal quotation.
Which language seems to have the issue?
Rust
Sample Code to Reproduce
#[derive(ThisError)]
enum MyError {
#[error("\" appears in a string")]
UnexpectedDoubleQuote
}
fn main() {}
Expected behavior
The escaped double quotation \" shouldn't be treated as a normal double quotation.