From 8d648dc8c075fc1cf8d89d74c1425cdeb47e8089 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 29 Jan 2023 16:39:35 +0800 Subject: refactor break loop keyword checking. --- spec/inputs/loops.yue | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'spec/inputs') diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue index 51eb10b..5cadbf0 100644 --- a/spec/inputs/loops.yue +++ b/spec/inputs/loops.yue @@ -173,4 +173,26 @@ do for thing in *xxx print thing - +do + for i = 1, 10 + repeat + with? tb + .a = 1 + continue if .b + do + if .c + break + until true + switch x + when 123 + break + else + continue + if y + continue + else + break + do do do + print i + continue + print "abc" -- cgit v1.2.3-55-g6feb