neilsf / xc-basic3

A BASIC cross compiler for MOS 6502-based machines
MIT License
44 stars 5 forks source link

[alpha 3.1 build] parser doesn't like apostrophe comment after command #195

Closed locodarwin closed 2 years ago

locodarwin commented 2 years ago

Applies to release/v3.1 only:

Comments after a command using the apostrophe (e.g. "border 0 ' change border color") fail to compile - the parser doesn't like it. This is a change in behavior. If we add a colon after the command ("border 0 : ' change border color") it works.

Test with:

border 0 : ' the parser won't complain here
background 0 ' but will complain here
neilsf commented 2 years ago

Resolved in latest v3.1 build.