"TheEndless" wrote:
On a side note (or maybe related?), it doesn't seem to like the "?" shortcut for "print". It might be a coincidence, but each of the files that wouldn't load contained at least one "?" line. 3.6.2 marks them all as invalid syntax.
Yes, more than likely, the "?" print shortcut was omitted from the parser grammar... I had constructed the parser grammar by going through the BrightScript reference guide section by section, and the section on the Print command doesn't mention the shortcut (it shows up later in the guide in the examples and in the debugger help). I'll have that corrected in the next release.
"TheEndless" wrote:
I also can't seem to get code folding to work. Is there some trick to it? I'm new to Eclipse, so please excuse my ignorance, but should I be seeing +/- icon or something to fold a section?
With the current beta release, only comments can be folded. I should be able to get code folding fixed by the next release.
And BTW... comment folding is not turned on by default, has a bad default value for minimum lines threshold, and requires that the "Join Comments separated by empty lines" option be checked on in order to work (yes, that last bit is a known bug).
To turn comment folding on, goto: Window->Preferences->BrightScript->Editor->Folding, and:
Set the value for "Minimum lines required to enable folding" to 2 or greater, and check on the options for: "Join Comments Separated by empty lines"
Since we're on topic, what types of code structures would you like to see be fold-able?
I'm currently thinking: Subs/Functions and control blocks (if/then/else, while, for).
Should I extend this to array/associative array definitions as well?
Cheers