Twistpad Carthago Software forums / Twistpad /  

 Bug in syntax highlighter (Perl)

 
Vinnie
Member
#1 | Posted: 14 Jun 2011 14:04 
The following Perl code in a .pl file causes the highlighter to mess up after the apostrophe. It must think everything after it is still part of a literal string since it's all the same color (grey), including the $code = 1 code after the EOT.

print <<"EOT";
This is ' some text
EOT

$code = 1;

Is there a way to make it interpret the apostrophe correctly in this case?
Thanks!

Andre Santos
Carthago
Moderator
#2 | Posted: 16 Jun 2011 10:30 
Hi Vinnie,

Sorry for the late reply.

I've been researching on the Perl Syntax, and indeed that string should be closed at the end of the line (Actually the Twistpad highlighter is searching for the other apostrophe to close the string, it does not stop at the end of the paragraph)

In this version there is nothing that can be done, I will add a new option to the highlighter to either find the stop key (in this case an apostrophe) or stop at the end of the paragraph for the next version (2.2)

sorry about this.

And thanks for pointing this out,

André Santos
Carthago Software Support
http://www.carthagosoft.net

Twistpad Carthago Software forums / Twistpad /
 Bug in syntax highlighter (Perl)

Your Reply Click this icon to move up to the quoted message


 
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

 

  Powered By minibb