File: repeat-until-block.lua

package info (click to toggle)
lua-mode 20250310~git.2f6b8d7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: lisp: 3,186; makefile: 40; sh: 21
file content (57 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- works for repeat ... until blocks: 1

repeat
   a = a + 1
until foo + bar

a = 0

-- works for repeat ... until blocks: 2

repeat
   a = a + 1
until
   foo

a = 0

-- works for repeat ... until blocks: 3

repeat
   a = a + 1
until
   not
   foo

a = 0

-- works for repeat ... until blocks: 4

repeat
   a =
      a + 1
until
   not
   foo

a = 0

-- works for repeat ... until blocks: single line

repeat a = a + 1 until not foo

a = 0

-- works for repeat ... until blocks: single line with continuation 1

repeat a = a + 1 until
   not foo

a = 0

-- XFAIL: works for repeat ... until blocks: single line with continuation 1

repeat a =
      a + 1 until not foo

a = 0