highlightjs/highlight.js
Vedi su GitHub(Rust) Escaped double quotations in string at attribute are not highlighted properly
Open
#3817 aperta il 10 lug 2023
buggood first issuehelp welcomelanguage
Metriche repository
- Star
- (22.960 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.