aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moon_compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MoonP/moon_compiler.cpp')
-rw-r--r--src/MoonP/moon_compiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp
index 75f1b35..d49cf14 100644
--- a/src/MoonP/moon_compiler.cpp
+++ b/src/MoonP/moon_compiler.cpp
@@ -53,7 +53,7 @@ inline std::string s(std::string_view sv) {
53 return std::string(sv); 53 return std::string(sv);
54} 54}
55 55
56const std::string_view version = "0.4.21"sv; 56const std::string_view version = "0.4.22"sv;
57const std::string_view extension = "mp"sv; 57const std::string_view extension = "mp"sv;
58 58
59class MoonCompilerImpl { 59class MoonCompilerImpl {
@@ -106,6 +106,7 @@ public:
106 str_list out; 106 str_list out;
107 pushScope(); 107 pushScope();
108 _enableReturn.push(_info.moduleName.empty()); 108 _enableReturn.push(_info.moduleName.empty());
109 _varArgs.push(true);
109 transformBlock(_info.node.to<File_t>()->block, out, 110 transformBlock(_info.node.to<File_t>()->block, out,
110 config.implicitReturnRoot ? ExpUsage::Return : ExpUsage::Common, 111 config.implicitReturnRoot ? ExpUsage::Return : ExpUsage::Common,
111 nullptr, true); 112 nullptr, true);