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

Expression parser does not tried "foo" 10 as a valid amount #2172

Open
jwiegley opened this issue Jan 24, 2023 · 0 comments
Open

Expression parser does not tried "foo" 10 as a valid amount #2172

jwiegley opened this issue Jan 24, 2023 · 0 comments

Comments

@jwiegley
Copy link
Member

From @oaf-edwin: Something like "ab cd" 17 is also a valid amount. But it can't even be parsed properly in an expression. This time it's because expr_t::token_t::next() gives precedence to quoted string before literal amount (token.cc line 219 versus the lines 380ff). Perhaps when it finds a quoted string it ought to look ahead to see if a number follows.

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

1 participant