highlightjs/highlight.js
(Rust) Escaped double quotations in string at attribute are not highlighted properly
已关闭
#3,817 创建于 2023年7月10日
buggood first issuehelp welcomelanguage
仓库指标
- 星标
- (22,960 个星标)
- PR 合并指标
- (平均合并 6分钟) (30 天内合并 2 个 PR)
描述
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.