Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

Crash on editing files with multiple COMMENTs

Recommended Posts

dandv    0

Change the NDN.HGL entry for Perl to:

Comment __END__ a_unique_string_because_there_is_no_end_of_such_comment =head2

and create a .pl file (Shift+F4, bug.pl, Enter). NDN will crash.

 

I actually want to define more than one multiline comment for perl files:

 

=head1 comments here

comments here

= cut

 

=head2 comments here

comments here

=cut

 

etc. This is the POD (Plain Old Documentation) format, extremely popular in the Perl world.

 

Is it possible to to this? I tried

  Comment __END__ a_unique_string_because_there_is_no_end_of_such_comment
  Comment =head2 =cut

but the second COMMENT line is ignored.

Share this post


Link to post
Share on other sites

Hey dan.

 

using mutliple COMMENT statements works,

the problem with the PERL hgl definition is the "a_unique...." string

 

the internal collection buffer is limited to $30 characters.

comments are not supposed to be that big, so the buffer size is suffucient

 

there was a bad implementation in the highlight code which filled the buffer

over it's limits, that crashed the system

 

i changed the unique string to _-_-_

 

best wishes

Stefan / AH

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×