Fixed error where empty vector was being popped from
Co-authored-by: Rahul Zhade <zhade3@github.com>
This commit is contained in:
parent
fa5426a735
commit
3e586b10fc
|
@ -202,8 +202,10 @@ struct Scanner {
|
|||
lexer->advance(lexer, false);
|
||||
if (lexer->lookahead == '>') {
|
||||
lexer->advance(lexer, false);
|
||||
if (!tags.empty()) {
|
||||
tags.pop_back();
|
||||
lexer->result_symbol = SELF_CLOSING_TAG_DELIMITER;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue