Skip to content

Commit 597b572

Browse files
committed
fix setmetatable error
1 parent 7a583e8 commit 597b572

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • crates/emmylua_parser/src/grammar/lua

crates/emmylua_parser/src/grammar/lua/stat.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ fn parse_assign_or_expr_stat(p: &mut LuaParser) -> ParseResult {
327327
| LuaSyntaxKind::ErrorCallExpr
328328
| LuaSyntaxKind::RequireCallExpr
329329
| LuaSyntaxKind::TypeCallExpr
330+
| LuaSyntaxKind::SetmetatableCallExpr
330331
) {
331332
m.set_kind(p, LuaSyntaxKind::CallExprStat);
332333
if_token_bump(p, LuaTokenKind::TkSemicolon);

0 commit comments

Comments
 (0)