aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moonplus.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-03-30 11:29:13 +0800
committerLi Jin <dragon-fly@qq.com>2020-03-30 11:29:13 +0800
commit1c4c3159374a5c4b08a06ca8e3e7f49442edd59c (patch)
tree735dd2dc501e8f32d89bef3a76d826c73ffafdf7 /src/MoonP/moonplus.cpp
parent147893cdbf00d40ebda6b7840d3734ccda294347 (diff)
downloadyuescript-1c4c3159374a5c4b08a06ca8e3e7f49442edd59c.tar.gz
yuescript-1c4c3159374a5c4b08a06ca8e3e7f49442edd59c.tar.bz2
yuescript-1c4c3159374a5c4b08a06ca8e3e7f49442edd59c.zip
add useSpaceOverTab option for compiler, add variadic arguments declaration check, fix assignment with backcall expr not well handled issue.
Diffstat (limited to 'src/MoonP/moonplus.cpp')
-rw-r--r--src/MoonP/moonplus.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MoonP/moonplus.cpp b/src/MoonP/moonplus.cpp
index d6352f5..cb6d3ec 100644
--- a/src/MoonP/moonplus.cpp
+++ b/src/MoonP/moonplus.cpp
@@ -64,6 +64,12 @@ static int moontolua(lua_State* L) {
64 config.reserveLineNumber = lua_toboolean(L, -1) != 0; 64 config.reserveLineNumber = lua_toboolean(L, -1) != 0;
65 } 65 }
66 lua_pop(L, 1); 66 lua_pop(L, 1);
67 lua_pushliteral(L, "space_over_tab");
68 lua_gettable(L, -2);
69 if (lua_isboolean(L, -1) != 0) {
70 config.useSpaceOverTab = lua_toboolean(L, -1) != 0;
71 }
72 lua_pop(L, 1);
67 lua_pushliteral(L, "same_module"); 73 lua_pushliteral(L, "same_module");
68 lua_gettable(L, -2); 74 lua_gettable(L, -2);
69 if (lua_isboolean(L, -1) != 0) { 75 if (lua_isboolean(L, -1) != 0) {