-
Notifications
You must be signed in to change notification settings - Fork 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
Lexer: a = ; 5
: Suppressed newline should be unsuppressed by semicolon
#3098
Comments
That one is fun. (This is a function: We could remove |
Right, the other 'correct' way to fix this would be to treat |
I guess it's to allow |
@Nami-Doc: Ha, very nice. It's actually useful. (We don't need no stinking parens! ;) I think we should keep those @jashkenas: Better not. The (premature) "unfinished" bits don't not play nice with the rewriter (e.g. #3199). |
Haha, yeah no, suppressing newlines after |
@erisdiscord: Yes, but only in single-liners (IIRC), e.g. if c then x =
a:b
c:d |
@marchaefner would it not also break them in this case? or would the indentation be sufficient? someNumbers =
arbitraryNumber: 37
randomNumber: Math.random() |
@erisdiscord: The unfinished logic (plus the corresponding indebt "magic") also removes the indentation. |
As does the helpful comment at the top of the rewriter file. You can drop that sucker in at any stage of the rewriter's passes, to see how well things are moving along. |
a = ; 5
a = ; 5
: Suppressed newline should be unsuppressed by semicolon
I’m assuming the solution for this is to have the semicolon “un-suppress” the newline that gets suppressed by the open |
Fixed via #4669. |
(from #3053)
The text was updated successfully, but these errors were encountered: