Trim macro arg whitespace after line continuations

This commit is contained in:
ISSOtm
2022-06-09 00:01:19 +02:00
parent 3a71910312
commit d51ab35203
5 changed files with 48 additions and 5 deletions

View File

@@ -4,8 +4,8 @@
\1: < 1>
\2: <2>
'mac c,d':
\1: < c>
'mac c,d':
\1: <c>
\2: <d>
'mac 1,2 + 2,3':

View File

@@ -0,0 +1,19 @@
MACRO print_all
REPT _NARG
PRINTLN "{d:_NARG}: \"\1\""
SHIFT
ENDR
ENDM
print_all a, \
b \
, c
DEF EMPTY equs ""
print_all a, \
{EMPTY} b \
{EMPTY}, c
print_all a, \
/* . */ b \
/* . */, c

View File

View File

@@ -0,0 +1,9 @@
3: "a"
2: "b"
1: "c"
3: "a"
2: "b"
1: "c"
3: "a"
2: " b"
1: "c"