diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/yuescript/yue_compiler.cpp | 2 | ||||
-rw-r--r-- | src/yuescript/yuescript.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index 52ed005..3a9e584 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -73,7 +73,7 @@ static std::unordered_set<std::string> Metamethods = { | |||
73 | "close"s // Lua 5.4 | 73 | "close"s // Lua 5.4 |
74 | }; | 74 | }; |
75 | 75 | ||
76 | const std::string_view version = "0.15.27"sv; | 76 | const std::string_view version = "0.15.28"sv; |
77 | const std::string_view extension = "yue"sv; | 77 | const std::string_view extension = "yue"sv; |
78 | 78 | ||
79 | class YueCompilerImpl { | 79 | class YueCompilerImpl { |
diff --git a/src/yuescript/yuescript.cpp b/src/yuescript/yuescript.cpp index 3a17fa8..1a1752c 100644 --- a/src/yuescript/yuescript.cpp +++ b/src/yuescript/yuescript.cpp | |||
@@ -87,6 +87,12 @@ static int yuetolua(lua_State* L) { | |||
87 | config.reserveLineNumber = lua_toboolean(L, -1) != 0; | 87 | config.reserveLineNumber = lua_toboolean(L, -1) != 0; |
88 | } | 88 | } |
89 | lua_pop(L, 1); | 89 | lua_pop(L, 1); |
90 | lua_pushliteral(L, "reserve_comment"); | ||
91 | lua_gettable(L, -2); | ||
92 | if (lua_isboolean(L, -1) != 0) { | ||
93 | config.reserveComment = lua_toboolean(L, -1) != 0; | ||
94 | } | ||
95 | lua_pop(L, 1); | ||
90 | lua_pushliteral(L, "space_over_tab"); | 96 | lua_pushliteral(L, "space_over_tab"); |
91 | lua_gettable(L, -2); | 97 | lua_gettable(L, -2); |
92 | if (lua_isboolean(L, -1) != 0) { | 98 | if (lua_isboolean(L, -1) != 0) { |