I often label early returns with an arrow thus
Return 0 -->|
This is a valid line comment in oorexx.
The plugin identifies this as an error with a list of expected elements following the pipe
if the comment is on a line of it's own
-->|
The error on the pipe is
<keyword list=""> expected, got '|'
Also, the last line of the code below shows an error on the word self -- "instruction terminator expected got 'self'"
if thisEvent~BookOnline = .true then do clist~deleteAll alist~deleteAll alist~setColumnWidthpx(3,'AUTO') alist~select(ord) end /* DO */ else self~refreshRegularsAndBooked -- refresh the regulars and customer lists
When this is the first line of the script
/* ========================================================================= */
then you get an "'=' unexpected" error
hth
Jon
Hi,
Thanks for the report.
I fixed the error with '|' at the end of line comments. This fix will be in the next version of the plugin.
I don't get the two last errors when I try out your code, could you provide more information? Also,
do you use the latest version of the plugin?
Alexander
Hi Alexander,
the plugin reports version 1.0.3.1 Beta
In case it helps, this is the entire Method for the <instruction terminator=""> expected, got 'self' error
If I put a 'say' between the 'else' and the 'self' then the error message changes to "<instruction terminator=""> expected, got 'say'"
if I place a ';' immediately after the else then the error also goes away, but this is optional in rexx.
As for the '=' unexpected error, II start all my scripts with a comment box of equals, but only ones with a filetype of rex seems to show the error. It may help to know that the editor offers that I may edit an ooRexx fragment, which consists of the line of '='s without the surrounding / /.
If you 'disable inject language or reference' (whatever that means) the error goes away, so perhaps I have a setting incorrectly set that assumes first comments are injections???
hth
Jon