Skip to content

Improve dart indent - #3419

Merged
the-mikedavis merged 2 commits into
helix-editor:masterfrom
seb-bl:improve-dart-indent
Aug 24, 2022
Merged

Improve dart indent#3419
the-mikedavis merged 2 commits into
helix-editor:masterfrom
seb-bl:improve-dart-indent

Conversation

@seb-bl

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

Copy link
Copy Markdown
Contributor

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

@the-mikedavis the-mikedavis left a comment

Copy link
Copy Markdown
Member

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

seb-bl commented Aug 20, 2022

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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