[Gambas-user] Eval tokenizer Fails in some cases
Brian G
brian at westwoodsvcs.com
Tue Feb 2 17:08:15 CET 2021
If eval highlight the following
dim a as string = "sdsdfdsfdsfsd"
"sdsdfdsfsddfdf"
"sdfsdfsdfdsfdfd"
as a single block everything is great!
or if tokenize
dim a as collection = [
"a":1,
"b":2
]
this works fine as well
but if tokenizing:
if x = 1 then
print x
else
print "no"
endif
this is what comes out of the tokenizer
IF
x
=
1
THEN
PRINT
x
lse
PRINT
"no"
ndif
Strangly if i add a random character in front of the block ie. if then else endif key words it works fine
if x = 1 then
Print x
:else
Print "no"
:endif
in this case it is parsed correctly and drops the : characters
IF
x
=
1
THEN
PRINT
x
ELSE
PRINT
"no"
ENDIF
Can this feature be corrected?
Thank You
Brian G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210202/a6fd844d/attachment.htm>
More information about the User
mailing list