1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +00:00

Fixes sloppy parsing of array sub arguments

The following now produces a syntax error for the missing closing
parenthesis of the parameter list.

E.g. sub foo(bar(): end sub
This commit is contained in:
Doug Kearns 2021-03-14 20:30:15 +11:00
parent d39dab006f
commit f6f7de6d87

View file

@ -4862,6 +4862,7 @@ DO
IF t2$ = "" THEN t2$ = e$ ELSE t2$ = t2$ + " " + e$
gotaa2:
NEXT i2
IF m = 1 THEN a$ = "Syntax error": GOTO errmes
IF symbol2$ <> "" AND t2$ <> "" THEN a$ = "Syntax error": GOTO errmes