aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-07-28 15:54:12 +0800
committerLi Jin <dragon-fly@qq.com>2023-07-28 15:54:12 +0800
commita89680fe48dd1520843d7629e2006f732e313200 (patch)
tree8be73ac13bf9389e11d0835ed9bff90cc0be4b74 /spec/inputs
parent11e855b8124e21beb737ecb4b4e6228e610f572d (diff)
downloadyuescript-a89680fe48dd1520843d7629e2006f732e313200.tar.gz
yuescript-a89680fe48dd1520843d7629e2006f732e313200.tar.bz2
yuescript-a89680fe48dd1520843d7629e2006f732e313200.zip
made a little optimization for try-catch syntax.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/try_catch.yue6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/try_catch.yue b/spec/inputs/try_catch.yue
index e38cbef..96a87fc 100644
--- a/spec/inputs/try_catch.yue
+++ b/spec/inputs/try_catch.yue
@@ -50,5 +50,11 @@ do
50 catch err 50 catch err
51 print err 51 print err
52 52
53do
54 try
55 func 1, 2, 3
56
57 try func 1, 2, 3
58
53nil 59nil
54 60