diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-29 15:16:07 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-29 15:16:07 +0800 |
| commit | 0cece2cad82bcd95bcb20f3d984817f7085fd4f8 (patch) | |
| tree | ef9fd8de5d5bb90a925903108ebced01a020eb59 /src | |
| parent | ec20937232301aa0f44949c8d5572753a568d8b9 (diff) | |
| download | yuescript-0cece2cad82bcd95bcb20f3d984817f7085fd4f8.tar.gz yuescript-0cece2cad82bcd95bcb20f3d984817f7085fd4f8.tar.bz2 yuescript-0cece2cad82bcd95bcb20f3d984817f7085fd4f8.zip | |
Added more format function specs.
Diffstat (limited to '')
| -rw-r--r-- | src/yuescript/yue_ast.cpp | 2 | ||||
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 { | |||
| 860 | std::string CompForNum_t::to_string(void* ud) const { | 860 | std::string CompForNum_t::to_string(void* ud) const { |
| 861 | auto line = "for "s + varName->to_string(ud) + " = "s + startValue->to_string(ud) + ", "s + stopValue->to_string(ud); | 861 | auto line = "for "s + varName->to_string(ud) + " = "s + startValue->to_string(ud) + ", "s + stopValue->to_string(ud); |
| 862 | if (stepValue) { | 862 | if (stepValue) { |
| 863 | line += stepValue->to_string(ud); | 863 | line += ", "s + stepValue->to_string(ud); |
| 864 | } | 864 | } |
| 865 | return line; | 865 | return line; |
| 866 | } | 866 | } |
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<std::string> Metamethods = { | |||
| 78 | "close"s // Lua 5.4 | 78 | "close"s // Lua 5.4 |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | const std::string_view version = "0.32.6"sv; | 81 | const std::string_view version = "0.32.7"sv; |
| 82 | const std::string_view extension = "yue"sv; | 82 | const std::string_view extension = "yue"sv; |
| 83 | 83 | ||
| 84 | class CompileError : public std::logic_error { | 84 | class CompileError : public std::logic_error { |
