php.sugar
php.sugar copied to clipboard
Syntax highlighting broken by by escaped quote (only if html tags are present)
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).
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.
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.