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

Highlight quotes and escaped spaces inside string literals #17

Closed
lvalkov opened this issue Jun 25, 2021 · 0 comments
Closed

Highlight quotes and escaped spaces inside string literals #17

lvalkov opened this issue Jun 25, 2021 · 0 comments

Comments

@lvalkov
Copy link
Contributor

lvalkov commented Jun 25, 2021

"'foo'"		'"bar"'
"`'foo`'"	'`"bar`"'
'`'foo`''	"`"bar`""

'``'		"``"
'`n'		"`n"
'`r'		"`r"
'`b'		"`b"
'`t'		"`t"
'`s'		"`s"
'`v'		"`v"
'`a'		"`a"
'`f'		"`f"

image
The documentation states that in order "to include an actual quote mark inside a literal string, [...] enclose the string in the opposite type of quote mark." Currently, this rule isn't being taken into consideration (see first line in the screenshot).

Moreover, the escape sequence `s (space) appears to be flagged erroneously as invalid.illegal.unknown-escape (red).
EscapedSpace

@thqby thqby closed this as completed Jun 26, 2021
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