Handle escaped characters in strings
All checks were successful
timw4mail/scroll/pipeline/head This commit looks good
All checks were successful
timw4mail/scroll/pipeline/head This commit looks good
This commit is contained in:
parent
b5856f063a
commit
32e3676b02
@ -270,6 +270,14 @@ export class Row {
|
||||
if (syntax.flags.strings) {
|
||||
if (inString) {
|
||||
highlighting.push(HighlightType.String);
|
||||
|
||||
// Handle escaped characters in strings
|
||||
if (ch === '\\' && i < this.rsize + 1) {
|
||||
highlighting.push(HighlightType.String);
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ch === inString) {
|
||||
inString = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user