Skip to content

Commit ae7a543

Browse files
committed
修复一个注释导致的bug
1 parent 506ac33 commit ae7a543

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CodeService/src/LuaFormatter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,12 @@ std::shared_ptr<FormatElement> LuaFormatter::FormatTableField(std::shared_ptr<Lu
13061306
env->Add<TextElement>(child, TextDefineType::TableFieldNameDefine);
13071307
break;
13081308
}
1309+
case LuaAstNodeType::Comment:
1310+
{
1311+
env->Add<TextElement>(child);
1312+
env->Add<KeepElement>(1);
1313+
break;
1314+
}
13091315
default:
13101316
{
13111317
DefaultHandle(child, env);

0 commit comments

Comments
 (0)