Tweaking indent.

This commit is contained in:
Brad Nelson
2022-07-30 15:54:11 -07:00
parent a2aa0c50e2
commit 1e6aeacbe3
2 changed files with 23 additions and 3 deletions

View File

@ -80,7 +80,11 @@ variable indent
dup ['] DOES> = if icr then dup ['] DOES> = if icr then
dup >flags -TAB AND if -1 indent+! then dup >flags -TAB AND if -1 indent+! then
dup see. dup see.
dup >flags +TAB AND if 1 indent+! then dup >flags +TAB AND if
1 indent+!
else
dup >flags -TAB AND if icr then
then
dup ['] ! = if icr then dup ['] ! = if icr then
dup ['] +! = if icr then dup ['] +! = if icr then
dup @ ['] BRANCH @ = dup @ ['] BRANCH @ =

View File

@ -64,6 +64,7 @@ e: test-see-begin-again
out: BEGIN out: BEGIN
out: . out: .
out: AGAIN out: AGAIN
out:
out: ; out: ;
;e ;e
@ -74,6 +75,7 @@ e: test-see-begin-until
out: BEGIN out: BEGIN
out: . out: .
out: UNTIL out: UNTIL
out:
out: ; out: ;
;e ;e
@ -86,6 +88,7 @@ e: test-see-begin-while-repeat
out: WHILE out: WHILE
out: . out: .
out: REPEAT out: REPEAT
out:
out: ; out: ;
;e ;e
@ -96,6 +99,7 @@ e: test-see-ahead-then
out: AHEAD out: AHEAD
out: . out: .
out: THEN out: THEN
out:
out: ; out: ;
;e ;e
@ -106,18 +110,21 @@ e: test-see-for-next
out: FOR out: FOR
out: I . out: I .
out: NEXT out: NEXT
out:
out: ; out: ;
;e ;e
e: test-see-for-aft-next e: test-see-for-aft-next
: test for aft i . then . next ; : test for aft i . then . next . ;
see test see test
out: : test out: : test
out: FOR out: FOR
out: AFT out: AFT
out: I . out: I .
out: THEN . out: THEN
out: .
out: NEXT out: NEXT
out: .
out: ; out: ;
;e ;e
@ -136,54 +143,63 @@ e: test-see-string-strides
out: 1 IF out: 1 IF
out: s" " type out: s" " type
out: THEN out: THEN
out:
out: ; out: ;
see test1 see test1
out: : test1 out: : test1
out: 1 IF out: 1 IF
out: s" >" type out: s" >" type
out: THEN out: THEN
out:
out: ; out: ;
see test2 see test2
out: : test2 out: : test2
out: 1 IF out: 1 IF
out: s" ->" type out: s" ->" type
out: THEN out: THEN
out:
out: ; out: ;
see test3 see test3
out: : test3 out: : test3
out: 1 IF out: 1 IF
out: s" -->" type out: s" -->" type
out: THEN out: THEN
out:
out: ; out: ;
see test4 see test4
out: : test4 out: : test4
out: 1 IF out: 1 IF
out: s" --->" type out: s" --->" type
out: THEN out: THEN
out:
out: ; out: ;
see test5 see test5
out: : test5 out: : test5
out: 1 IF out: 1 IF
out: s" ---->" type out: s" ---->" type
out: THEN out: THEN
out:
out: ; out: ;
see test6 see test6
out: : test6 out: : test6
out: 1 IF out: 1 IF
out: s" ----->" type out: s" ----->" type
out: THEN out: THEN
out:
out: ; out: ;
see test7 see test7
out: : test7 out: : test7
out: 1 IF out: 1 IF
out: s" ------>" type out: s" ------>" type
out: THEN out: THEN
out:
out: ; out: ;
see test8 see test8
out: : test8 out: : test8
out: 1 IF out: 1 IF
out: s" ------->" type out: s" ------->" type
out: THEN out: THEN
out:
out: ; out: ;
;e ;e