[Bug ?] Comments in Label/DefData

BlitzMax Forums/Brucey's Modules/[Bug ?] Comments in Label/DefData

Bobysait(Posted 2016) [#1]
if I add comments to my data, it doesn't compile and returns an error
"Labels must appear before a loop or DefData statement"

#somelabel
' some comment
DefData "some","data"

Removing the comment allows to compile, but, I almost always comment the data structur inside the defData (easier to read)

Before commiting to github, I'd like to be sure it's really an error, and not an expected behavior (it worked with vanilla blitzmax, but since it's not supposed to be exactly the same compiler, better safe than sorry)


Bobysait(Posted 2016) [#2]
ps :
It also doesn't support jumping lines

#somelabel

DefData "some","data"


This will fail with the same error.


Derron(Posted 2016) [#3]
If it works with vanilla, it "is ought" to work with NG.

So commit it as issue - including your two samples.


bye
Ron


Bobysait(Posted 2016) [#4]
Ok, let's go