Require underscores to actually be digit separators (#1812)

Multiple, trailing, or next to decimal point are errors
This commit is contained in:
Rangi
2025-08-30 10:44:20 -04:00
committed by GitHub
parent 85176ef10a
commit 531278961f
7 changed files with 196 additions and 45 deletions

View File

@@ -9,11 +9,11 @@ ENDM
printargs A, B, C, D
MACRO mac
println \<2__> + \<1_2> + \<\1>
println \<2> + \<1_2> + \<\1>
def x = 2
println \<{d:x}> + \<1_{d:x}> + \<\<\<13>>>
def y equs "NARG"
println \<x> + \<1_{d:x}_> + \<\<\<_{y}>>>
println \<x> + \<1_{d:x}> + \<\<\<_{y}>>>
ENDM
mac 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 1