Skip to content

Commit 32fd6b0

Browse files
committed
修复一个注释被吃掉的问题
1 parent 098b462 commit 32fd6b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LuaParser/src/LuaParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void LuaParser::BuildAst()
5454
{
5555
_errors.push_back(tokeError);
5656
}
57-
_tokenParser->ReleaseTokens();
5857
}
5958

6059
std::shared_ptr<LuaAstNode> LuaParser::GetAst()
@@ -144,6 +143,8 @@ void LuaParser::BuildAstWithComment()
144143
blockNode->AddLeafChild(commentAst);
145144
}
146145
}
146+
147+
_tokenParser->ReleaseTokens();
147148
}
148149

149150
LuaParser::LuaParser(std::shared_ptr<LuaTokenParser> tokenParser)

0 commit comments

Comments
 (0)