Skip to content
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

Parse error in Nickel files with wildcard type annotations #485

Closed
matthew-healy opened this issue May 26, 2023 · 1 comment · Fixed by #490
Closed

Parse error in Nickel files with wildcard type annotations #485

matthew-healy opened this issue May 26, 2023 · 1 comment · Fixed by #490
Labels
language: nickel Nickel formatting issues type: bug

Comments

@matthew-healy
Copy link

Describe the bug

Trying to format the following file with Topiary:

(let { a : { b : Number } = { b }} = { a = { b = "no" }} in
b) : _

results in this error:

[2023-05-26T09:12:17Z ERROR topiary] Parsing error between line 2, column 4 and line 2, column 7

Expected behavior

This is valid Nickel, so it should parse (& format) correctly.

@matthew-healy matthew-healy added type: bug language: nickel Nickel formatting issues labels May 26, 2023
@vkleen
Copy link
Contributor

vkleen commented May 26, 2023

I think this is a bug in the tree-sitter grammar; (fun x => x) : _ produces a parse error without topiary being involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language: nickel Nickel formatting issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants