diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-24 12:24:10 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-24 12:24:10 +0800 |
| commit | 0ccf4408271c8a0d147e3cf25689810862e8c1db (patch) | |
| tree | 0316978c886bee79db8f77cfe4521518763be71c /spec/outputs/whitespace.lua | |
| parent | c2a34e380b7ff57b071f8081e1cac589eab664d3 (diff) | |
| download | yuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.tar.gz yuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.tar.bz2 yuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.zip | |
Cleaned up and fixed more comment reserving codes.v0.33.4
Diffstat (limited to 'spec/outputs/whitespace.lua')
| -rw-r--r-- | spec/outputs/whitespace.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua index 60e98bb..a0d225f 100644 --- a/spec/outputs/whitespace.lua +++ b/spec/outputs/whitespace.lua | |||
| @@ -140,4 +140,47 @@ do | |||
| 140 | _base_0.__class = _class_0 | 140 | _base_0.__class = _class_0 |
| 141 | tb3 = _class_0 | 141 | tb3 = _class_0 |
| 142 | end | 142 | end |
| 143 | do | ||
| 144 | local tb = setmetatable({ | ||
| 145 | print(123), | ||
| 146 | abc = 1, | ||
| 147 | c = "", | ||
| 148 | z = 998 | ||
| 149 | }, { | ||
| 150 | __close = function() end, | ||
| 151 | __eq = function() end, | ||
| 152 | __call = function() end | ||
| 153 | }) | ||
| 154 | local CY | ||
| 155 | local _class_0 | ||
| 156 | local xa, xb, xc, xd | ||
| 157 | local _base_0 = { } | ||
| 158 | if _base_0.__index == nil then | ||
| 159 | _base_0.__index = _base_0 | ||
| 160 | end | ||
| 161 | _class_0 = setmetatable({ | ||
| 162 | __init = function(self) | ||
| 163 | return print(xa, xb, xc, xd) | ||
| 164 | end, | ||
| 165 | __base = _base_0, | ||
| 166 | __name = "CY" | ||
| 167 | }, { | ||
| 168 | __index = _base_0, | ||
| 169 | __call = function(cls, ...) | ||
| 170 | local _self_0 = setmetatable({ }, _base_0) | ||
| 171 | cls.__init(_self_0, ...) | ||
| 172 | return _self_0 | ||
| 173 | end | ||
| 174 | }) | ||
| 175 | _base_0.__class = _class_0 | ||
| 176 | local self = _class_0; | ||
| 177 | xa = 1 | ||
| 178 | xb = 2 | ||
| 179 | xc = 3 | ||
| 180 | xd = setmetatable({ }, { | ||
| 181 | __close = function(self) end | ||
| 182 | }) | ||
| 183 | local _close_0 <close> = xd | ||
| 184 | CY = _class_0 | ||
| 185 | end | ||
| 143 | return nil | 186 | return nil |
