Sublime-Colorcoder icon indicating copy to clipboard operation
Sublime-Colorcoder copied to clipboard

Python highlighting doesn't respect escaped single-quotes in single-quote string.

Open mwchase opened this issue 9 years ago • 1 comments

When I have a string like 'It\'s a beautiful day!', the entire string should get the string highlighting. Instead, it considers everything after the \' as not a string, and therefore normal highlighting, until it gets to the closing ', at which point it thinks the non-string characters after it are a string.

mwchase avatar Jun 27 '16 15:06 mwchase

Confirmed with PHP:

$test = preg_match('/PARAMOUNT/', $elements, $matches, PREG_OFFSET_CAPTURE);

$elements and $matches are not coloured correctly; caused by the /'.

irdial avatar Jul 21 '18 14:07 irdial