Fix range of script tag content
This commit is contained in:
parent
2ffed65538
commit
5d8c68c137
|
@ -112,11 +112,12 @@ struct Scanner {
|
||||||
if (lexer->lookahead == end_delimiter[delimiter_index]) {
|
if (lexer->lookahead == end_delimiter[delimiter_index]) {
|
||||||
delimiter_index++;
|
delimiter_index++;
|
||||||
if (delimiter_index == end_delimiter.size()) break;
|
if (delimiter_index == end_delimiter.size()) break;
|
||||||
|
lexer->advance(lexer, false);
|
||||||
} else {
|
} else {
|
||||||
delimiter_index = 0;
|
delimiter_index = 0;
|
||||||
|
lexer->advance(lexer, false);
|
||||||
lexer->mark_end(lexer);
|
lexer->mark_end(lexer);
|
||||||
}
|
}
|
||||||
lexer->advance(lexer, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lexer->result_symbol = RAW_TEXT;
|
lexer->result_symbol = RAW_TEXT;
|
||||||
|
|
Loading…
Reference in New Issue