Skip to content

fix: correctly parse parentheses around anonymous function arguments - #141

Merged
mhanberg merged 1 commit into
elixir-tools:mainfrom
katafrakt:fix-parent-in-fn-args
Sep 3, 2026
Merged

fix: correctly parse parentheses around anonymous function arguments#141
mhanberg merged 1 commit into
elixir-tools:mainfrom
katafrakt:fix-parent-in-fn-args

Conversation

@katafrakt

Copy link
Copy Markdown
Contributor

This was found via expert-lsp/expert#877

When Spitfire parses a code where anonymous function's arguments are surrounded by parentheses, it produces a different AST than Code.string_to_quoted. This theoretically incorrect AST was fed to Sourceror, which resulted in an error reported in the issue in Expert.

@katafrakt
katafrakt force-pushed the fix-parent-in-fn-args branch from e3a2a18 to 867a0db Compare September 3, 2026 16:54
@katafrakt katafrakt changed the title Correctly parse parentheses around anonymous function arguments fix: correctly parse parentheses around anonymous function arguments Sep 3, 2026
@mhanberg
mhanberg merged commit ca12cb4 into elixir-tools:main Sep 3, 2026
39 checks passed
mhanberg pushed a commit that referenced this pull request Sep 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.4.1](v0.4.0...v0.4.1)
(2026-09-03)


### Bug Fixes

* correctly parse parentheses around anonymous function arguments
([#141](#141))
([ca12cb4](ca12cb4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@katafrakt
katafrakt deleted the fix-parent-in-fn-args branch September 3, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants