feat(t32): add indent rules (#4782)

This commit is contained in:
Christoph Sax 2023-05-18 09:40:13 +02:00 committed by GitHub
parent 102f1b2f55
commit 16cce8df58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 291 additions and 5 deletions

View file

@ -0,0 +1,49 @@
IF &a
STOP
IF (TRUE())
(
BREAK
)
IF (&b+CouNT())
(
continue
)
IF FOUND()
STOP
ELSE
CONTinue
IF &c
CONTinue
ELSE IF FALSE()
Break
ELSE
stop
IF &d
(
STOP
)
ELSE IF &e
; comment A
(
CONTINUE
)
ELSE
; comment B
(
BREAK
)
IF &f
IF &g
stop
ELSE
IF &h
(
continue
)

View file

@ -0,0 +1,27 @@
RePeaT 10. PRINT "A"
RePeaT &a
print
REPEAT 0xaAfF09
(
cont
)
RPT
(
b
)
rpt
(
s
)
WHILE &a
REPEAT TRUE()
; comment
(
cont
)

View file

@ -0,0 +1,23 @@
printA:
(
PRINT "A"
RETURN
)
sUBROUtINE printB
(
ENTRY &in
PRINT "&in"
RETURN
)
SUBROUTINE printC
// comment
(
PARAMETERS &a &b
PRINT "&a"+"&b"
ENDDO
)

View file

@ -0,0 +1,14 @@
WHILE &a
Step
WHILE (sYmbol.EXIT(main))
(
Step
Break
)
WHILE (FALSE())
// comment
(
ECHO "test"
)