aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/yuescript/yue_compiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index e7da2dd..17fbaf6 100755
--- a/src/yuescript/yue_compiler.cpp
+++ b/src/yuescript/yue_compiler.cpp
@@ -60,7 +60,7 @@ using namespace parserlib;
60 60
61typedef std::list<std::string> str_list; 61typedef std::list<std::string> str_list;
62 62
63const std::string_view version = "0.10.11"sv; 63const std::string_view version = "0.10.12"sv;
64const std::string_view extension = "yue"sv; 64const std::string_view extension = "yue"sv;
65 65
66class YueCompilerImpl { 66class YueCompilerImpl {
@@ -1597,6 +1597,7 @@ private:
1597 _config.lintGlobalVariable = false; 1597 _config.lintGlobalVariable = false;
1598 auto exp = static_cast<Exp_t*>(pair); 1598 auto exp = static_cast<Exp_t*>(pair);
1599 auto varName = singleVariableFrom(exp); 1599 auto varName = singleVariableFrom(exp);
1600 if (varName == "_"sv) break;
1600 bool isVariable = !varName.empty(); 1601 bool isVariable = !varName.empty();
1601 if (!isVariable) { 1602 if (!isVariable) {
1602 str_list temp; 1603 str_list temp;