-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
Trailing commas #11009
Trailing commas #11009
Conversation
I thought we didn't want that 🤔 Maybe I'm misremembering... |
I seem to remember incorrectly. However, why this PR instead of #10159 ? |
Yea, i just rebased that PR with fixed conficts, and found part that breaks diagnostics tests |
@Aurel300 any comment about that change maybe? |
Thanks for taking over the PR! Regarding the one failing test: I honestly don't see why the expected error message is any better than the new error message. I don't remember what the falling test cases were showing with my PR (and the logs are now gone): were they also just about different error messages? Trailing commas in calls seem extremely useful to me, I wouldn't want to omit these. Regarding the change @kLabz linked: it would be better to solve the test case failures of course, but otherwise I see no point in keeping the implementation commented out like this. |
If you uncomment that block, there is many signature errors with And no Enum constructors in argument completion (with fallback to basic toplevel in vshaxe): haxe/tests/display/src/cases/Toplevel.hx Lines 226 to 236 in 3d52330
Have no idea how added Comma > PClose case can change display logic, since there is no Comma in f(| to match at all... f(|) still collects enums here btw.
|
Feeling lucky today. @Simn what do you think? |
78d6f2a
to
c1e5670
Compare
Are cases of |
Thanks! |
Note that the final task of the original PR still remains: the TextMate syntax needs to be updated to support this, otherwise syntax highlighting (in the IDE, here on GitHub, etc) gets broken after a trailing comma. I remember this being rather annoying due to how the current syntax highlighting is structured. |
Second commit fixes all tests, except for one with
Unexpected }
error instead of newExpected , or )
output fortrace(0,
line. Would be nice to see some Simon's dark magic to makecall(a,)
possible too...