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

Added support to single quoted string literals #543

Merged
merged 2 commits into from
Jul 3, 2019
Merged

Added support to single quoted string literals #543

merged 2 commits into from
Jul 3, 2019

Conversation

dutor
Copy link
Contributor

@dutor dutor commented Jun 25, 2019

With single quoted string supported, users could have double quotes in the string literals, like '"string_literal_enclosed_in_double_quotes"', without escaping like before "\"string_literals_encoded_in_double_quotes\"" and vice versa.

Copy link
Contributor

@ayyt ayyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Copy link
Contributor

@boshengchen boshengchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! Like it.

CHECK_SEMANTIC_VALUE("'Hello'", TokenType::STRING, "Hello"),
CHECK_SEMANTIC_VALUE("'\"Hello\"'", TokenType::STRING, "\"Hello\""),
CHECK_SEMANTIC_VALUE("'\\'Hello\\''", TokenType::STRING, "'Hello'"),

// escape Normal character
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"he'llo"-> he'llo
"he'llo" -> he'llo or syntax error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added vice versa in the description of this PR.

@dutor dutor added the ready-for-testing PR: ready for the CI test label Jul 3, 2019
Copy link
Contributor

@laura-ding laura-ding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dutor dutor merged commit df0ab48 into vesoft-inc:master Jul 3, 2019
@dutor dutor deleted the support-single-quoted-string-literals branch July 3, 2019 10:09
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
Co-authored-by: Harris.Chu <1726587+HarrisChu@users.noreply.github.com>
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

Co-authored-by: Alex Xing <90179377+SuperYoko@users.noreply.github.com>
Co-authored-by: Harris.Chu <1726587+HarrisChu@users.noreply.github.com>
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants