rescript-lang / syntax

ReScript's syntax as a standalone repo.
MIT License
254 stars 38 forks source link

Add spread element check when the last element is a spread. #673

Closed butterunderflow closed 2 years ago

butterunderflow commented 2 years ago

The current behavior is: if the last list element expression is a spread, the parser will not check the rest element whether contains a spread expression. This PR adds a spread element check when the last list element is a spread. Please see #670 for more details.

butterunderflow commented 2 years ago

OK, I'll try that.

butterunderflow commented 2 years ago

I think I have done it, please check again. Thank you for reviewing!