Commit 5990705b authored by Michael Büsch's avatar Michael Büsch

core/tokenizer: Fix whitespace parsing in call parameters

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent bd091d75
......@@ -558,7 +558,7 @@ class AwlParser(object):
t.finishCurToken()
t.addToken(c)
cont(); continue
if ((self.__inAnyHeaderOrGlobal() or self.__inVariableSection()) and\
if ((self.__inAnyHeaderOrGlobal() or self.__inVariableSection() or t.inParens) and\
c in {'=', ':', '{', '}', '.'}) or\
c in {',', '[', ']'} or\
(c == '=' and len(t.tokens) == 1 and not t.curToken):
......
ORGANIZATION_BLOCK OB 1
BEGIN
// Whitespace around call parameters should be non-significant.
CALL SFC 47 (
WT:= 0 , // INT
)
CALL SFC 47 (
WT :=0 , // INT
)
CALL SFC 47 (
WT:=0 , // INT
)
CALL SFC 47 (
WT:= 0 ,
)
CALL SFC 47 (
WT :=0 ,
)
CALL SFC 47 (
WT:=0 ,
)
CALL SFC 47 (
WT:= 0,
)
CALL SFC 47 (
WT :=0,
)
CALL SFC 47 (
WT:=0,
)
CALL SFC 47 (
WT:= 0 // INT
)
CALL SFC 47 (
WT :=0 // INT
)
CALL SFC 47 (
WT:=0 // INT
)
CALL SFC 47 (
WT:= 0
)
CALL SFC 47 (
WT :=0
)
CALL SFC 47 (
WT:=0
)
CALL SFC 47 (
WT:= 0
)
CALL SFC 47 (
WT :=0
)
CALL SFC 47 (
WT:=0
)
CALL SFC 47 (
WT:=0)
CALL SFC 47 (WT:=0)
CALL SFC 47 (WT:=0,)
CALL SFC 47 (
WT:=0 ,// INT
)
CALL SFC 47 (
WT:=0// INT
)
CALL SFC 46 // STOP CPU
END_ORGANIZATION_BLOCK
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment