SC popupnested: comments cause overflow?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

SC popupnested: comments cause overflow?

Post by Filehero »

Hi Don,

shouldn't this code work without overflow?

Code: Select all

$menu = <<<MENU
                Top;;:paper;1
                  Sub;;;4
                  Sub
                    Sub2;;*.ini
                    Sub2
                    Sub2;;;2
                Top;;<xy>
              MENU;
  
  // this is a line (end) comment
  /*
  This is a block comment
  */
  text popupnested($menu);
  
  // this is a line (end) comment
  /*
  This is a block comment
  */
  */
Last edited by Filehero on 05 Nov 2016 10:31, edited 2 times in total.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: SC popupnested: comments cause overrun?

Post by highend »

It's no bug.

You didn't close your heredoc correctly :mrgreen:
The closing identifier must begin in the *first* column of the line (no indent!).
Moved to questions and answers...
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC popupnested: comments cause overrun?

Post by Filehero »

highend wrote:It's no bug.

You didn't close your heredoc correctly :mrgreen:
Then Don has to correct the help and beta release note from where the uncommented example code has been copied from (note the intended heredoc closure). :mrgreen:

Thanks nevertheless. :)

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: SC popupnested: comments cause overflow?

Post by highend »

Yeah, viewtopic.php?f=1&t=4&start=3750#p143440

is indeed wrong ("MENU;" isn't correctly indented)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC popupnested: comments cause overflow?

Post by admin »

I did not want to rewrite the docs, so I was happy to see this is really a bug (and I was happy to fix it). :biggrin:

FYI, closing HEREDOC identifier don't have to be left-aligned since v10.80.0010 - 2012-01-23 17:50.

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC popupnested: comments cause overflow?

Post by Filehero »

admin wrote:FYI, closing HEREDOC identifier don't have to be left-aligned since v10.80.0010 - 2012-01-23 17:50.
4 years, that's quite a piece of time. :mrgreen:

Thanks for fixing.

Post Reply