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

Improve dart indent #3419

Merged
merged 2 commits into from
Aug 24, 2022
Merged

Conversation

seb-bl
Copy link
Contributor

@seb-bl seb-bl commented Aug 13, 2022

This PR improves the indentation for dart. It is based on a more recent version of the grammar, so it updates it in addition to changing runtime/queries/dart/indents.scm

@the-mikedavis the-mikedavis self-requested a review August 14, 2022 15:43
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

This is looking good. I think the "this one is not actually used" commented out nodes can be removed, right?

@seb-bl
Copy link
Contributor Author

seb-bl commented Aug 20, 2022

Yes, they can be removed (I did in the next commit). They corresponds to declaration in the syntax with braces, but are actually not contained by a node in the program syntax. For example, here https://github.com/seb-bl/tree-sitter-dart/blob/455556f37ca9f208bdbeb76fffb4e3fd331ebf08/grammar.js#L726 inferred_parameters is not used anywhere

@the-mikedavis the-mikedavis merged commit ccae718 into helix-editor:master Aug 24, 2022
@the-mikedavis
Copy link
Member

Thank you!

@seb-bl seb-bl deleted the improve-dart-indent branch August 24, 2022 17:19
AlexanderBrevig pushed a commit to AlexanderBrevig/helix that referenced this pull request Aug 29, 2022
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
jdrst pushed a commit to jdrst/helix that referenced this pull request Sep 13, 2022
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