Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwchase opened this issue Jun 27, 2016 · 1 comment

Comments

@mwchase
Copy link

mwchase commented Jun 27, 2016

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.

@irdial
Copy link

irdial commented Jul 21, 2018

Confirmed with PHP:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants