[FIXED] Bug with Comment behind Heredoc
Posted: 18 Sep 2014 23:45
I have a construct like:
In original, 1st and last lines, as well as the comment are prefixed with 2 Tab characters (instead of blanks)!
After having added the comment, the script fails. It seems the tabs in front of the comment are not converted to blanks, but misinterpreted as illegal characters in front of the next line.
I think this is a
(as we are behind the end of the Heredoc)
Adding a NL between ';' and the tabs, i.e. moving the comment to it's own line, makes it work again. (But is 1 line more...)
And a correlated wish: would it be possible to allow a comment in the starting line of a Heredoc, i.e.As here is soo much space waiting to be filled 
Code: Select all
$items = <<<#>>>
End 'DeBug' (ESC) : End
...
-
Call Demo '_Test' (Time!) : Demo#>>> ; // <<<== create Selection Menu, then ==>>>
$next = PopupMenu($items, 600, 300, , , , <crlf>, ' : ', 'Cancel');After having added the comment, the script fails. It seems the tabs in front of the comment are not converted to blanks, but misinterpreted as illegal characters in front of the next line.
I think this is a
Adding a NL between ';' and the tabs, i.e. moving the comment to it's own line, makes it work again. (But is 1 line more...)
And a correlated wish: would it be possible to allow a comment in the starting line of a Heredoc, i.e.
Code: Select all
$items = <<<#>>> // document what's up here
End 'DeBug' (ESC) : End
...