Look at lines 520-531 : the lines 521 to 530 are one "block", so are the lines 520 to 531 ; but the IDE signals that the "End If" at 530 belongs to the "If" on line 520 and the "End If" on line 531 is an "orphan" ! Unfortunately I had not yet the opportunity to test the compiled prog ...
This issue disappears if I put all parts of instruction 521 on one single line, i.e. if I don't use the continuation underscore ... but the program is very less readable ! I compared both hex versions, they are the same ...
And another issue is : if I don't leave a blank in front of each continuation sign (underscore) they are discarded, in my case this causes an "unbalanced braces" error message.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Be careful when adding the _ line continuation character right behind an identifier or keyword. It MUST be separated with at least one space character, otherwise it would be treated as part of the identifier or keyword.
So, you need to add a space before the underscore - do this work as expected ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Look at lines 520-531 : the lines 521 to 530 are one "block", so are the lines 520 to 531 ; but the IDE signals that the "End If" at 530 belongs to the "If" on line 520 and the "End If" on line 531 is an "orphan" ! Unfortunately I had not yet the opportunity to test the compiled prog ...
Last edit: Bertrand BAROTH 2022-03-02
This issue disappears if I put all parts of instruction 521 on one single line, i.e. if I don't use the continuation underscore ... but the program is very less readable ! I compared both hex versions, they are the same ...
Last edit: Bertrand BAROTH 2022-03-02
Well.... It is a display folding issue only in SynWrite. We need Frank to resolve.
It is not an issue in the new IDE GCStudio.
And another issue is : if I don't leave a blank in front of each continuation sign (underscore) they are discarded, in my case this causes an "unbalanced braces" error message.
Can you upload the file with the "unbalanced braces" error message ?
This needs to be resolve.
It is the same program as attached to my first post, where I removed the spaces in front of the underscores in lines 521 and 522
Sorry, your program is incorrect.
Be careful when adding the _ line continuation character right behind an identifier or keyword. It MUST be separated with at least one space character, otherwise it would be treated as part of the identifier or keyword.
So, you need to add a space before the underscore - do this work as expected ?
OK, this is rational since keywords and variable names can use the underscore ... The only problem remaining is the block structure.
Last edit: Bertrand BAROTH 2022-03-02
Replace ...\SynWrite\lexlib.lxl with the attached one (make a copy before).
Hope this does not create any new errors - please report.
Frank
Now all block structures seem to be displayed without errors. Thank You ... in the name of my model railroad layout !
:)
Excellent. I have move to the release code.
Thank you Frank.