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

[php] First letter after backslash is treated like an escape sequence in single quoted strings #1

Closed
Sobak opened this issue Apr 22, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@Sobak
Copy link
Contributor

commented Apr 22, 2016

I think that snippet makes it obvious

Snippet with error: #571a31319d764
Language: php Kadet\Highlighter\Language\Php
Version: 0.8.0-1e4513b

@kadet1090 kadet1090 changed the title [php] First letter after backslash is treated like an escape code (?) in strings [php] First letter after backslash is treated like an escape sequence in single quoted strings Apr 22, 2016

@kadet1090

This comment has been minimized.

Copy link
Owner

commented Apr 22, 2016

It's correct behavior for double quoted strings, where every character after \ is treated like escape sequence (\n, \r etc.), in single quoted strings only \ and ' are valid escapes, i'll try to somehow separate them.

@kadet1090 kadet1090 added the bug label Apr 22, 2016

@kadet1090 kadet1090 self-assigned this Apr 22, 2016

@kadet1090 kadet1090 closed this in 1207bcd Apr 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.