diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-05-21 11:44:54 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-05-21 11:44:54 +0800 |
| commit | 0603800a4114ed8b4c9572a7d7852995c9b9f334 (patch) | |
| tree | 456524685562bcd0d874530e3ddc2a0fc0731525 /spec/outputs/unicode/loops.lua | |
| parent | ff137ac73d999a5849f02706cfd52f4659b025ef (diff) | |
| download | yuescript-0603800a4114ed8b4c9572a7d7852995c9b9f334.tar.gz yuescript-0603800a4114ed8b4c9572a7d7852995c9b9f334.tar.bz2 yuescript-0603800a4114ed8b4c9572a7d7852995c9b9f334.zip | |
Added break with value syntax.
Diffstat (limited to 'spec/outputs/unicode/loops.lua')
| -rw-r--r-- | spec/outputs/unicode/loops.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/outputs/unicode/loops.lua b/spec/outputs/unicode/loops.lua index 8379993..27bbe2e 100644 --- a/spec/outputs/unicode/loops.lua +++ b/spec/outputs/unicode/loops.lua | |||
| @@ -60,8 +60,8 @@ do | |||
| 60 | local _u53d8_u91cfy = _u4f60_u597d[_index_0] | 60 | local _u53d8_u91cfy = _u4f60_u597d[_index_0] |
| 61 | if _u53d8_u91cfy % 2 == 0 then | 61 | if _u53d8_u91cfy % 2 == 0 then |
| 62 | _accum_0[_len_0] = _u53d8_u91cfy | 62 | _accum_0[_len_0] = _u53d8_u91cfy |
| 63 | _len_0 = _len_0 + 1 | ||
| 63 | end | 64 | end |
| 64 | _len_0 = _len_0 + 1 | ||
| 65 | end | 65 | end |
| 66 | _u53d8_u91cfx = _accum_0 | 66 | _u53d8_u91cfx = _accum_0 |
| 67 | end | 67 | end |
| @@ -132,13 +132,11 @@ do | |||
| 132 | end | 132 | end |
| 133 | do | 133 | do |
| 134 | local _accum_0 = { } | 134 | local _accum_0 = { } |
| 135 | local _len_0 = 1 | ||
| 136 | local _list_2 = 3 | 135 | local _list_2 = 3 |
| 137 | for _index_0 = 1, #_list_2 do | 136 | for _index_0 = 1, #_list_2 do |
| 138 | local _u4e1c_u897f = _list_2[_index_0] | 137 | local _u4e1c_u897f = _list_2[_index_0] |
| 139 | _u53d8_u91cfy = "你好" | 138 | _u53d8_u91cfy = "你好" |
| 140 | break | 139 | break |
| 141 | _len_0 = _len_0 + 1 | ||
| 142 | end | 140 | end |
| 143 | _u53d8_u91cfx = _accum_0 | 141 | _u53d8_u91cfx = _accum_0 |
| 144 | end | 142 | end |
