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

Precedence tuning #153

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Precedence tuning #153

merged 1 commit into from
Nov 22, 2024

Conversation

blindFS
Copy link
Contributor

@blindFS blindFS commented Nov 22, 2024

This PR

  1. fixes several corner cases, such as:
# empty list
[,,,]

# record with leading comment
# previously parsed as closure
{
# foo
echo : 1
}
  1. generalizes general_body_rule to cover more rules within the same pattern
  2. makes anonymous tokens more friendly for topiary to format

@fdncred fdncred merged commit 54936b0 into nushell:main Nov 22, 2024
3 checks passed
@fdncred
Copy link
Collaborator

fdncred commented Nov 22, 2024

Thanks

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