-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix incorrect parsing of binary expressions (fixes #153) #158
Fix incorrect parsing of binary expressions (fixes #153) #158
Conversation
Interesting, it looks like this causes a parse failure at https://github.com/groue/GRDB.swift/blob/4472d3a60ec4cc383503eba5072ce17f781b9ddc/GRDB/QueryInterface/SQLGeneration/SQLQueryGenerator.swift#L86 — possibly related to the binary expression that starts on line 77 if it changes the way that gets parsed? |
I wonder why this fails :| I tried a very basic
I couldn't find where I saw that just |
Nice, you got it working! I blame swift for this ambiguity — whoever thought that “if statements without parentheses” and “trailing closures” belonged in the same language together were clearly not thinking for the long term. |
This all looks good to me, so I’m happy to merge it later tonight. If you’d like, you can also amend to clean up the git commits and then |
504a21d
to
d807c5d
Compare
Done. I have cleaned the history. Please merge the request. :) |
Done! Thank you so much for fixing this! |
Should I apply this similar pattern for other binary operators too? Or is there a nicer way to do it :O ?