You are here: PSPad forum > English discussion forum > Quotes+apostrophes syntax highlight bug

Quotes+apostrophes syntax highlight bug

#1 Quotes+apostrophes syntax highlight bug

Posted by: Erigity | Date: 05/05/2012 08:46 | IP: IP Logged

Hi!
I'm using custom syntax highlight for BASIC-like language and face the problem after upgrading from 4.5.3(2272) to 4.5.6(2427).

Code example:

Quote:
SOMEVAR = "'highlighted like str'" : '"highlighted not like str"';

On 4.5.3 PSPad version, both strings highlighted as a strings, while on 4.5.6, the same syntax highlighter broke on

Quote:
: '"

part, highlighting

Quote:
highlighted not like str

with code highlighting rules and then decides

Quote:
"';

as a string too.

Thank you in advance.

Options: Reply | Quote | Up ^


#2 Re: Quotes+apostrophes syntax highlight bug

Posted by: Erigity | Date: 05/11/2012 08:14 | IP: IP Logged

Any suggestions?

Options: Reply | Quote | Up ^


#3 Re: Quotes+apostrophes syntax highlight bug

Posted by: Erigity | Date: 05/11/2012 08:28 | IP: IP Logged

It looks like, that ' inside of ", works fine, but if there's ' first, then " acts as another '.

So, the highlight is like:

L = "*'*'*" + '"*jji"' + '"A"' + "'sd'"; *comment

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2014 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák