Resolve #2677 : add Groovy language analyzer - #4956
Open
urunsiyabend wants to merge 1 commit into
Open
urunsiyabend wants to merge 1 commit into
urunsiyabend wants to merge 1 commit into
Conversation
urunsiyabend
force-pushed
the
2677-groovy-analyzer
branch
from
May 24, 2026 22:54
0ec01fc to
604600a
Compare
vladak
force-pushed
the
2677-groovy-analyzer
branch
from
June 3, 2026 07:13
604600a to
d23035e
Compare
urunsiyabend
force-pushed
the
2677-groovy-analyzer
branch
from
June 3, 2026 16:02
d23035e to
8add316
Compare
urunsiyabend
force-pushed
the
2677-groovy-analyzer
branch
from
June 17, 2026 19:48
a4538b0 to
fc44f87
Compare
urunsiyabend
force-pushed
the
2677-groovy-analyzer
branch
from
August 18, 2026 10:40
fc44f87 to
db6327e
Compare
Signed-off-by: Siyabend Urun <urunsiyabend@gmail.com>
urunsiyabend
force-pushed
the
2677-groovy-analyzer
branch
from
August 20, 2026 13:19
db6327e to
b146154
Compare
This branch has not been deployed
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
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.
resolves #2677
this change adds syntax recognition for .groovy, .gradle, .gvy, .gy, and .gsh files. Since universal-ctags (as of v5.9.0) doesn’t yet have a native Groovy parser, this implementation follows the same approach as Scala, using patterns plugged via Ctags.java. Once a native parser is available, it can be swapped in easily by uppercasing a single letter.
i was highly inspired by official ANTLR groovy lexer (https://github.com/apache/groovy/blob/GROOVY_3_0_X/src/antlr/GroovyLexer.g4)
lexer highlights:
(/.../)and dollar-slashy regex($/.../$)are supported. Disambiguation between regex and division is handled with a regexAllowed flag, mirroring Apache Groovy ANTLR’s REGEX_CHECK_ARRAYctags kinds supported:
class, interface, trait, enum, annotation, method (def name(...)), field, package, import.performance & correctness:
known limitations: