Fix BigComments and StringWithLongBracket swallowing an ending ']' if ']' occurred somewhere within

This commit is contained in:
0x4261756D 2024-02-21 16:04:00 +01:00
parent 04f5804dff
commit 8b30b34bd1

View File

@ -1202,6 +1202,7 @@ class Tokenizer
else else
{ {
closingLongBracketLevel = 0; closingLongBracketLevel = 0;
state = State.BigComment;
} }
} }
break; break;
@ -1279,6 +1280,7 @@ class Tokenizer
{ {
closingLongBracketLevel = 0; closingLongBracketLevel = 0;
AppendDataChar(ch); AppendDataChar(ch);
state = State.StringWithLongBracket;
} }
} }
break; break;