Sublime-Colorcoder
Sublime-Colorcoder copied to clipboard
Python highlighting doesn't respect escaped single-quotes in single-quote string.
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.
Confirmed with PHP:
$test = preg_match('/PARAMOUNT/', $elements, $matches, PREG_OFFSET_CAPTURE);
$elements and $matches are not coloured correctly; caused by the /'.