Fix range of script tag content

This commit is contained in:
Max Brunsfeld 2018-06-28 20:32:27 -07:00
parent 2ffed65538
commit 5d8c68c137
1 changed files with 2 additions and 1 deletions

View File

@ -112,11 +112,12 @@ struct Scanner {
if (lexer->lookahead == end_delimiter[delimiter_index]) {
delimiter_index++;
if (delimiter_index == end_delimiter.size()) break;
lexer->advance(lexer, false);
} else {
delimiter_index = 0;
lexer->advance(lexer, false);
lexer->mark_end(lexer);
}
lexer->advance(lexer, false);
}
lexer->result_symbol = RAW_TEXT;