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

To deal with illegal characters in parser #572

Merged
merged 3 commits into from
Jul 11, 2019
Merged

To deal with illegal characters in parser #572

merged 3 commits into from
Jul 11, 2019

Conversation

dutor
Copy link
Contributor

@dutor dutor commented Jul 3, 2019

As title.

This will close #562

@dutor dutor added the ready-for-testing PR: ready for the CI test label Jul 3, 2019
@@ -374,6 +374,9 @@ TEST(Scanner, Basic) {
CHECK_SEMANTIC_VALUE("\"\\\\\\\110 \"", TokenType::STRING, "\\H "),
CHECK_SEMANTIC_VALUE("\"\\\\\\\\110 \"", TokenType::STRING, "\\\\110 "),
CHECK_SEMANTIC_VALUE("\"\\\\\\\\\110 \"", TokenType::STRING, "\\\\H "),


CHECK_SEMANTIC_VALUE("\"己所不欲,勿施于人\"", TokenType::STRING, "己所不欲,勿施于人"),
Copy link
Contributor

Choose a reason for hiding this comment

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

before the fix, does this sentence make service crash?
My point is can you re-produce the problem. I'm not sure the bug is due to non-asiic code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's another story. You could refer to discussions in #562 for details.

@nebula-community-bot
Copy link
Member

Unit testing passed.

}
"#".* // Skip the annotation
"//".* // Skip the annotation
"--".* // Skip the annotation
"/*" { BEGIN(COMMENT); }
<COMMENT>"*/" { BEGIN(INITIAL); }
<COMMENT>([^*]|\n)+|. // Skip the annotation
. { printf("error %c\n", *yytext); yyterminate(); }
. {
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

lesson learned

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 ab31745 into vesoft-inc:master Jul 11, 2019
@dutor dutor deleted the deal-with-ill-char branch July 11, 2019 05:29
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
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.

[nGQL] Chinese punctune ;make service crash
4 participants