From 05da3cbfa3689e6c229c41156d0dd08ab554cd77 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 8 Oct 2024 17:58:49 +0800 Subject: Fixed a miss indent and removed an unnecessary do block. --- spec/inputs/with.yue | 5 +++++ spec/outputs/unicode/with.lua | 4 +--- spec/outputs/with.lua | 11 ++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'spec') diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue index 5da0980..19b7be1 100644 --- a/spec/inputs/with.yue +++ b/spec/inputs/with.yue @@ -147,4 +147,9 @@ do .touchEnabled = true .swallowTouches = true +do + f = -> + return with {} + return [123] + nil diff --git a/spec/outputs/unicode/with.lua b/spec/outputs/unicode/with.lua index cfad264..7a5ba00 100644 --- a/spec/outputs/unicode/with.lua +++ b/spec/outputs/unicode/with.lua @@ -123,9 +123,7 @@ do local _ _ = function() local _with_0 = _u55e8 - do - return _with_0.a, _with_0.b - end + return _with_0.a, _with_0.b end end do diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua index d880d1e..5d33bdb 100644 --- a/spec/outputs/with.lua +++ b/spec/outputs/with.lua @@ -121,9 +121,7 @@ do local _ _ = function() local _with_0 = hi - do - return _with_0.a, _with_0.b - end + return _with_0.a, _with_0.b end end do @@ -184,4 +182,11 @@ do mask.swallowTouches = true end end +do + local f + f = function() + local _with_0 = { } + return _with_0[123] + end +end return nil -- cgit v1.2.3-55-g6feb