File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ static std::unordered_set<std::string> Metamethods = {
7878 " close" s // Lua 5.4
7979};
8080
81- const std::string_view version = " 0.33.9 " sv;
81+ const std::string_view version = " 0.33.10 " sv;
8282const std::string_view extension = " yue" sv;
8383
8484class CompileError : public std ::logic_error {
@@ -3759,7 +3759,6 @@ class YueCompilerImpl {
37593759 out.push_back (join (temp));
37603760 return ;
37613761 }
3762- auto defs = getPreDefine (assignment);
37633762 transformValue (leftValue, temp);
37643763 auto left = std::move (temp.back ());
37653764 temp.pop_back ();
@@ -3769,11 +3768,13 @@ class YueCompilerImpl {
37693768 if (!singleValueFrom (update->value )) {
37703769 right = ' (' + right + ' )' ;
37713770 }
3771+ auto defs = getPreDefine (assignment);
37723772 _buf << join (temp);
3773- if (!defs.empty ())
3773+ if (!defs.empty ()) {
37743774 _buf << defs;
3775- else
3775+ } else {
37763776 _buf << indent () << left;
3777+ }
37773778 _buf << " = " sv << left << ' ' << op << ' ' << right << nl (assignment);
37783779 out.push_back (clearBuf ());
37793780 break ;
You can’t perform that action at this time.
0 commit comments