Skip to content

Commit 64d318e

Browse files
committed
修复bug
1 parent b11eff2 commit 64d318e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeService/src/LuaFormatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ std::shared_ptr<FormatElement> LuaFormatter::FormatLocalFunctionStatement(
12291229
}
12301230
case LuaAstNodeType::Identify:
12311231
{
1232-
env->AddChild(FormatNode(child));
1232+
env->Add<TextElement>(child, TextDefineType::FunctionNameDefine);
12331233
break;
12341234
}
12351235
case LuaAstNodeType::FunctionBody:

0 commit comments

Comments
 (0)