php.sugar icon indicating copy to clipboard operation
php.sugar copied to clipboard

Syntax highlighting broken by by escaped quote (only if html tags are present)

Open rogersaner opened this issue 15 years ago • 2 comments

Stick this line into a php file: $output = '

All of the Earth's people.

';

Expected result: everything after the first quote should be orange (except for the p tags, which are blue). Actual result: the p tags show correctly, but "s people" show up in light blue - they should be orange.

i.e. the syntax highlighting is broken by the escaped single quote, but only if the p tags are present (if they're removed, the highlighting is correct).

rogersaner avatar Oct 06 '09 10:10 rogersaner

Note: the "orange" and "blue" are the colours which show up using the default Espresso tutti colori theme. The syntax highlighting error still shows up in the other colour schemes, just with a different colour.

rogersaner avatar Oct 09 '09 18:10 rogersaner

This is due to an experiment in including html syntax within php strings. Will be removing this in a later revision since it won't work with the current sugar engine.

derekr avatar Nov 23 '09 21:11 derekr