aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-26 11:20:23 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-26 11:20:23 +0800
commit4f301523563e80e838490cc6216a16bb3b8d6122 (patch)
treeee8e5573908ac3024fb39934e7514445c33f6a2c /src
parenta91135ce512f907ed085d9aac147d8fcad356406 (diff)
downloadyuescript-4f301523563e80e838490cc6216a16bb3b8d6122.tar.gz
yuescript-4f301523563e80e838490cc6216a16bb3b8d6122.tar.bz2
yuescript-4f301523563e80e838490cc6216a16bb3b8d6122.zip
Fixed formatter.
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yue_ast.cpp b/src/yuescript/yue_ast.cpp
index e69dd37..83e5985 100644
--- a/src/yuescript/yue_ast.cpp
+++ b/src/yuescript/yue_ast.cpp
@@ -420,7 +420,7 @@ std::string Switch_t::to_string(void* ud) const {
420 auto info = reinterpret_cast<YueFormat*>(ud); 420 auto info = reinterpret_cast<YueFormat*>(ud);
421 str_list temp{"switch "s + target->to_string(ud)}; 421 str_list temp{"switch "s + target->to_string(ud)};
422 if (assignment) { 422 if (assignment) {
423 temp.back().append(" :"s + assignment->to_string(ud)); 423 temp.back().append(assignment->to_string(ud));
424 } 424 }
425 info->pushScope(); 425 info->pushScope();
426 for (auto branch : branches.objects()) { 426 for (auto branch : branches.objects()) {