generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 247
Add Java support for @statement.outer
#814
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… like `const`, `local` etc. and semicolon (nvim-treesitter#682) * feat(ecma): update assignment.outer to include lexical declaration * feat(go): update assignment.outer to include keyword * feat(lua): update assignment.outer to include keyword * feat(apex): update assignment.outer to include field and local variable declarations * feat(julia): assignment.outer includes local, const and global keywords
Co-authored-by: Github Actions <actions@github>
Now includes the preceding comma for the final field of a table.
NOTE: based on upstream parser switch in nvim-treesitter/nvim-treesitter@b139d21
This patch adapts the julia queries to the breaking changes in tree-sitter/tree-sitter-julia#153. fixes nvim-treesitter#716
Co-authored-by: Github Actions <actions@github>
Adapt to the upstream change neovim/neovim@629483e
Co-authored-by: Github Actions <actions@github>
Co-authored-by: Github Actions <actions@github>
In Kotlin data classes, the body is optional, This makes `@class.outer` work in those cases
Co-authored-by: Github Actions <actions@github>
Co-authored-by: Github Actions <actions@github>
Co-authored-by: Github Actions <actions@github>
…#747) * feat(ecma): refine class.inner text object selection Replace basic node capture for class.inner with make-range! implementation to select class body content without including braces. This makes class.inner behavior consistent with function.inner, providing a more intuitive text object selection for editing class contents. * feat(ecma): separate class.outer and class.inner text objects
* feat(enforce): add queries * feat(enforce): add return textobject query * feat(enforce): inner class capture
Co-authored-by: Github Actions <actions@github>
…sitter#788) The query handles methods with a typical return as you'd expect: ```java class Example { private String example() { return "example"; } } ``` I made the wildcard child node optional `(_)?` in the query so `@return.outer` matches `void` returns: ```java class Example { private void example() { return; } } ```
Collaborator
|
I'm sorry but can you make a PR targetting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.