Closed NPN closed 5 years ago
In the example above, the class avatar and the backslash after it are not highlighted: (characters marked with a caret below)
avatar
rule = { "<div class=\"avatar\"><p>some text</p></div>" } ^^^^^^^
Escaped quotes are not taken into account, so the string is treated as two strings instead of one. The entire string should be highlighted in red.
Note that this does work correctly in the online editor, so perhaps the CodeMirror rules could be reused here.
Thanks for the report!
I'm not currently working on a Pest grammar, so this has low priority for me. But pull requests are welcome!
In the example above, the class
avatar
and the backslash after it are not highlighted: (characters marked with a caret below)Escaped quotes are not taken into account, so the string is treated as two strings instead of one. The entire string should be highlighted in red.
Note that this does work correctly in the online editor, so perhaps the CodeMirror rules could be reused here.