Skip to content

Conversation

@kezhenxu94
Copy link

No description provided.

nik-rev and others added 30 commits September 8, 2024 17:22
… 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.
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>
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
github-actions bot and others added 8 commits May 13, 2025 15:35
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;
  }
}
```
@kiyoon
Copy link
Collaborator

kiyoon commented Oct 31, 2025

I'm sorry but can you make a PR targetting main branch?

@kezhenxu94 kezhenxu94 changed the base branch from master to main November 1, 2025 04:23
@kezhenxu94 kezhenxu94 closed this Nov 1, 2025
@kezhenxu94 kezhenxu94 deleted the patch-1 branch November 1, 2025 04:30
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.