mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Optimization for brace stack with just '{'
This commit is contained in:
parent
cbe84bd5ea
commit
486c9264f1
1 changed files with 3 additions and 1 deletions
|
@ -746,7 +746,9 @@ Lexeme Lexer::readNext()
|
||||||
{
|
{
|
||||||
consume();
|
consume();
|
||||||
|
|
||||||
braceStack.push_back(BraceType::Normal);
|
if (!braceStack.empty())
|
||||||
|
braceStack.push_back(BraceType::Normal);
|
||||||
|
|
||||||
return Lexeme(Location(start, 1), '{');
|
return Lexeme(Location(start, 1), '{');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue