Skip to content

Conversation

@auduchinok
Copy link
Member

Continuation of #13352 and #13402.

Adds recovery for missing items in tuple patterns, fixing parsing of unfinished/being edited patterns like:

let a, = 1, 2
let , a = 1, 2

match x with
| Some (1, ) -> ()
| Some (, 1) -> ()
| Some (1, , 1) -> ()

| 1, -> ()
| , 1 -> ()

@dsyme
Copy link
Contributor

dsyme commented Sep 26, 2022

Looks great!

@vzarytovskii Please pull unless we're not pulling at the moment

@vzarytovskii vzarytovskii merged commit 4f7f156 into dotnet:main Sep 27, 2022
@auduchinok auduchinok deleted the parser-tuplePat branch September 27, 2022 11:32
@vzarytovskii vzarytovskii added this to the October-2022 milestone Oct 31, 2022
auduchinok added a commit to JetBrains/fsharp that referenced this pull request Dec 7, 2022
auduchinok added a commit to JetBrains/fsharp that referenced this pull request Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants