06-02-2010, 01:30 PM
na_th_an Wrote:5.- Allow comments in broken lines, such as this:Okay, multiline comments /' ... '/ and comments in broken lines are now allowed. Will upload new version this evening.
Code:Dim myLevel(2) as uByte => { _
0, _ ' Number of exists
10, _ ' Baddies life gauge
7 _ ' Water level
}
Check FreeBasic Comments syntax page, as ZX BASIC now completely (I think) follows these commenting syntax.
This version also corrects # preprocessor directives within ASM blocks son
Code:
...
ASM
#include "external_library.asm"
#line 433
END ASM
na_th_an Wrote:Currently, the compiler refuses to compile such snippets. Comments aren't allowed after compiler directives, either, for example:# preprocessor line directives are a complete different thing from BASIC source code and do not allow comments in the same line.
Fails to compile due to the inline comment.Code:#include once "fsp2.1.bas" ' The sprite library