Is a semicolon (;) counted as a comment?
Quote from Nige on 30th January 2021, 7:58 pmHi,
I am totally new to NextBuild. I have it set up using visual studio code. I also have the NextBuild extension installed so I get Syntax highlights and tool tips shown when I hover over key words.
I have everything working as I can create/compile and run code.
However I noticed that if I have a line something like
PRINT AT 0,0; "HELLO"Everything after the semicolon is in green. Same as if I had used the REM keywordIs this normal?
I guess it just hard to pick out the keywords for anything after the (;)
Thanks
Nige
Hi,
I am totally new to NextBuild. I have it set up using visual studio code. I also have the NextBuild extension installed so I get Syntax highlights and tool tips shown when I hover over key words.
I have everything working as I can create/compile and run code.
However I noticed that if I have a line something like
Is this normal?
I guess it just hard to pick out the keywords for anything after the (;)
Thanks
Nige
Quote from em00k on 31st January 2021, 6:25 pmIts because comments in assembler use ; while in ZXBasic its '
It can be fixed but needs some more advanced regex, maybe look for PRINT on the same line.
Its because comments in assembler use ; while in ZXBasic its '
It can be fixed but needs some more advanced regex, maybe look for PRINT on the same line.
Quote from em00k on 1st February 2021, 1:25 amOk I have fixed this, a ";" will still show as a comment as long as it is written "; " with a space after it.
In code where you dont want ; turning the line into a comment you wouldnt normally leave a space eg
PRINT AT 0,0;"HELLO" ' no space so not a comment.
ASM
; This will be a comment space after ; so is a comment.
END ASM
Ok I have fixed this, a ";" will still show as a comment as long as it is written "; " with a space after it.
In code where you dont want ; turning the line into a comment you wouldnt normally leave a space eg
PRINT AT 0,0;"HELLO" ' no space so not a comment.
ASM
; This will be a comment space after ; so is a comment.
END ASM
Quote from em00k on 2nd February 2021, 4:09 amHi - This has been fixed in 1.0.9 - Check extensions and click NextBuild, it should ask to update and reload.
Hi - This has been fixed in 1.0.9 - Check extensions and click NextBuild, it should ask to update and reload.