remy / vscode-nextbasic

VS Code tools for NextBASIC
https://marketplace.visualstudio.com/items?itemName=remysharp.nextbasic
8 stars 2 forks source link

Lack of white space between @ and next char in labels #55

Closed pruebaoscar closed 3 months ago

pruebaoscar commented 3 months ago

Hi Remy! How are you? I'm using your vscode extension for nextbasic and I think that I've found a little bug with @ used as label. When I use it, for example:

10 LOAD "sprites2.spr" BANK 12: SPRITE print 1 : SPRITE BANK 12 20 x=32 30 @ here: x+=1 : SPRITE 0,x,64,1,1 40 GO TO @ here

VSCode send to CSpect the code without space between @ and 'here' characters and NextBasic launch an error: C, nosense in basic, 30:1 Once in CSpect if, in the sent code, I add a space between @ and 'here' it works fine.

Thanks for your work. Best regards

remy commented 3 months ago

Thanks for filing, I'll get this (hopefully) resolved, this week 👍

remy commented 3 months ago

note to self: the parser is treating @ as a binary number with no value…

remy commented 3 months ago

Fixed in latest release 👍

pruebaoscar commented 3 months ago

Hi Remy, just tested and works perfect! Thank you!