Restore blue-painting of macro arg expansions to prevent recursion

This commit is contained in:
Rangi42
2025-07-20 11:53:36 -04:00
parent cfe1f60e47
commit e3a5290dad
4 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
MACRO m
def x = (\1) * 2
println "{d:x}"
ENDM
m 5 ; prints 10
m \\2, 6 ; should not prints 12

View File

@@ -0,0 +1,3 @@
error: macro-arg-recursion.asm(6) -> macro-arg-recursion.asm::m(2):
Begun line continuation, but encountered character '2'
Assembly aborted with 1 error!

View File

@@ -0,0 +1,2 @@
10
4