diff options
author | Li Jin <dragon-fly@qq.com> | 2023-10-23 10:19:42 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-10-23 10:19:42 +0800 |
commit | 08fef1c7698cff09689e9965d993931ca6081257 (patch) | |
tree | 2d206d3b3b6cca927881a46873b53be3d0319221 /spec/outputs/unicode | |
parent | 0ecd527e2b9e441c169bc66ecbac12d202b9d1f8 (diff) | |
download | yuescript-08fef1c7698cff09689e9965d993931ca6081257.tar.gz yuescript-08fef1c7698cff09689e9965d993931ca6081257.tar.bz2 yuescript-08fef1c7698cff09689e9965d993931ca6081257.zip |
fix chaining condition evaluation rules.v0.20.1
Diffstat (limited to 'spec/outputs/unicode')
-rw-r--r-- | spec/outputs/unicode/cond.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/outputs/unicode/cond.lua b/spec/outputs/unicode/cond.lua index 9a4ccb9..ed5d274 100644 --- a/spec/outputs/unicode/cond.lua +++ b/spec/outputs/unicode/cond.lua | |||
@@ -361,11 +361,19 @@ do | |||
361 | local _u6c42_u503c | 361 | local _u6c42_u503c |
362 | do | 362 | do |
363 | local _cond_0 = _u503c(2) | 363 | local _cond_0 = _u503c(2) |
364 | _u6c42_u503c = _u503c(1) < _cond_0 and _cond_0 <= _u503c(3) | 364 | if not (_u503c(1) < _cond_0) then |
365 | _u6c42_u503c = false | ||
366 | else | ||
367 | _u6c42_u503c = _cond_0 <= _u503c(3) | ||
368 | end | ||
365 | end | 369 | end |
366 | do | 370 | do |
367 | local _cond_0 = _u503c(2) | 371 | local _cond_0 = _u503c(2) |
368 | _u6c42_u503c = _u503c(1) > _cond_0 and _cond_0 <= _u503c(3) | 372 | if not (_u503c(1) > _cond_0) then |
373 | _u6c42_u503c = false | ||
374 | else | ||
375 | _u6c42_u503c = _cond_0 <= _u503c(3) | ||
376 | end | ||
369 | end | 377 | end |
370 | end | 378 | end |
371 | return nil | 379 | return nil |