Skip to content

Conversation

tompng
Copy link
Member

@tompng tompng commented Jan 29, 2025

Fix #1080

It is hard to distinguish multiplication from pattern match from tokens.
Token * are both [[3, 0], :on_op, "*", BEG].

# x in *
<<A; x in
A
*
# string * value(missing)
<<A\
A
*

So in this pull request, treat this :on_op, '*', BEG as should_continue == true only when the whole code is syntax valid.

Also fixes x in ** x => * x => ** and def f(*,**)=f *, **

@tompng tompng added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to execute x in *
1 participant