From 0cece2cad82bcd95bcb20f3d984817f7085fd4f8 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 29 Jan 2026 15:16:07 +0800 Subject: Added more format function specs. --- src/yuescript/yue_ast.cpp | 2 +- src/yuescript/yue_compiler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/yuescript/yue_ast.cpp b/src/yuescript/yue_ast.cpp index cfd4cc6..89b8d3f 100644 --- a/src/yuescript/yue_ast.cpp +++ b/src/yuescript/yue_ast.cpp @@ -860,7 +860,7 @@ std::string CompForEach_t::to_string(void* ud) const { std::string CompForNum_t::to_string(void* ud) const { auto line = "for "s + varName->to_string(ud) + " = "s + startValue->to_string(ud) + ", "s + stopValue->to_string(ud); if (stepValue) { - line += stepValue->to_string(ud); + line += ", "s + stepValue->to_string(ud); } return line; } diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index 835a70a..370cee4 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp @@ -78,7 +78,7 @@ static std::unordered_set Metamethods = { "close"s // Lua 5.4 }; -const std::string_view version = "0.32.6"sv; +const std::string_view version = "0.32.7"sv; const std::string_view extension = "yue"sv; class CompileError : public std::logic_error { -- cgit v1.2.3-55-g6feb