Microsoft/monaco-editor
Voir sur GitHubRust syntax highlighting broken for raw strings
Open
#2 897 ouverte le 17 janv. 2022
buggrammarshelp wanted
Métriques du dépôt
- Stars
- (14 836 stars)
- Métriques de merge PR
- (Merge moyen 6h 26m) (15 PRs mergées en 30 j)
Description
Seems like this is still a problem for code such as:
fn main() {
let a = r#"hello" world"#;
println!("{}", a);
}
Using the #ed raw strings. Now that the rust-playground may also use monaco one may encounter this problem:

Note: rust's raw strings are formed as an r, then some number of #s, "<the string here>", then a matching number of #s
Originally posted by @Ben-Lichtman in https://github.com/microsoft/monaco-editor/issues/2552#issuecomment-1013553336