-
Notifications
You must be signed in to change notification settings - Fork 144
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
Support string options in parser #170
Support string options in parser #170
Conversation
c3c79d5
to
e3de553
Compare
src/search/utils/strings.cc
Outdated
return result; | ||
} | ||
|
||
string unescape(const string &s) { |
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.
Is it worth mentioning in a code comment that this will not do syntax-checking and therefore accepts "illegal" strings? Illegal strings are those where the final character is an unescaped "" or where an escaping "" is not followed by one of the characters from the specific set that can follow an escaping "".
Not complete yet: we want to handle the cases in
lexical_analyzer.cc
(construct_token_type_expressions
andsplit_tokens
) better. So far, this just supports strings in double quotes that have no quotes inside.