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

fix(grit): patch more parser incompatibilities for complex patterns #5037

Merged
merged 7 commits into from
Feb 5, 2025

Conversation

morgante
Copy link
Contributor

@morgante morgante commented Feb 5, 2025

Summary

Ensure Biome can parse the full GritQL standard library:

  • function needs to be usable as a name in JavaScript
  • bubble { ... } is valid GritQL

Test Plan

Added spec tests

@github-actions github-actions bot added A-Parser Area: parser A-Formatter Area: formatter L-Grit Language: GritQL labels Feb 5, 2025
@morgante morgante changed the title fix(grit: patch more parser incompatibilites fix(grit): patch more parser incompatibilities for complex patterns Feb 5, 2025
Copy link

codspeed-hq bot commented Feb 5, 2025

CodSpeed Performance Report

Merging #5037 will not alter performance

Comparing morgante:more-grit-fixes (c721ee2) with next (48eab5b)

Summary

✅ 94 untouched benchmarks

}
}

private pattern handle_one_statement($class_name, $statements, $states_statements, $static_statements, $render_statements, $constructor_statements, $handler_callback_suffix, $use_ref_from, $use_previous_value_hook) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose here we should break the group on multiple lines. I'll look at it.

It's good to have a complex and long example, we were missing them. Thank you :)

@ematipico ematipico merged commit a17ca7d into biomejs:next Feb 5, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter A-Parser Area: parser L-Grit Language: GritQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants