-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -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, "己所不欲,勿施于人"), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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(); } | ||
. { | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lesson learned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done
Unit testing passed. |
As title.
This will close #562