[
https://issues.apache.org/jira/browse/GROOVY-11705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Flanigan updated GROOVY-11705:
-----------------------------------
Description:
Please consider adopting an official tree-sitter grammar for Groovy.
Such a grammar would allow support for Groovy (and {{build.gradle}} or
{{{}Jenkinsfile{}}}) in any tool based on tree-sitter. One such tool is
[{{ast-grep}}|https://ast-grep.github.io/] ("A CLI tool for code structural
search, lint and rewriting"), which only accepts grammars from [trusted
sources|https://github.com/ast-grep/ast-grep/discussions/419#discussioncomment-13624180]
as built-in languages.
There are some existing grammars for Groovy, but the most popular maintained
grammar at present seems to be
[https://github.com/murtaza64/tree-sitter-groovy] (MIT licence).
was:
Please consider adopting an official tree-sitter grammar for Groovy.
Such a grammar would allow support for Groovy (and {{build.gradle}} or
{{{}Jenkinsfile{}}}) in any tool based on tree-sitter. One such tool is
[{{ast-grep}}|https://ast-grep.github.io/] ("A CLI tool for code structural
search, lint and rewriting"), which only accepts grammars from [trusted
sources|https://github.com/ast-grep/ast-grep/discussions/419#discussioncomment-13624180]
as built-in languages.
There are some existing grammars for Groovy, but the most popular maintained
grammar at present seems to be
[https://github.com/murtaza64/tree-sitter-groovy] (MIT licence)
> Official tree-sitter grammar for Groovy
> ---------------------------------------
>
> Key: GROOVY-11705
> URL: https://issues.apache.org/jira/browse/GROOVY-11705
> Project: Groovy
> Issue Type: New Feature
> Reporter: Sean Flanigan
> Priority: Major
>
> Please consider adopting an official tree-sitter grammar for Groovy.
> Such a grammar would allow support for Groovy (and {{build.gradle}} or
> {{{}Jenkinsfile{}}}) in any tool based on tree-sitter. One such tool is
> [{{ast-grep}}|https://ast-grep.github.io/] ("A CLI tool for code structural
> search, lint and rewriting"), which only accepts grammars from [trusted
> sources|https://github.com/ast-grep/ast-grep/discussions/419#discussioncomment-13624180]
> as built-in languages.
> There are some existing grammars for Groovy, but the most popular maintained
> grammar at present seems to be
> [https://github.com/murtaza64/tree-sitter-groovy] (MIT licence).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)