-
Notifications
You must be signed in to change notification settings - Fork 632
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
How to parse groovy file with multiline docstrings? #2908
Comments
No, as far as using the Java parser for parsing Groovy input files.
Java parser just reports the input is broken as Java source code. |
AFAIK there's no parser for groovy files, correct? So how do I parse a groovy file? |
Yes.
A. write a parser for Groovy and link it to ctags, or These choices are applicable to any languages which ctags doesn't support. See also #1566 . |
Yeah, I saw that Groovy isn't the most wanted :-) In the end I found my .ctags syntax file for Groovy language (exuberant-ctags) and that is working for me. Btw. I use ctags in Kate CTags Plugin Thanks for you help and a patience with a newbie |
I'm trying create tags for a groovy file(s).
I followed SO question How can I get groovy methods with generics to work with ctags (universal ctags)?
and created options file:
When I try to run it I unfortunately get an error:
The failure is within a multiline docstring:
I'm a very beginner with ctags, so I'm probably doing it all wrong.
But is there a way to instruct ctags to ignore multiline docstrings?
The command line you used to run ctags:
The content of input file:
The tags output you are not satisfied with:
The tags output you expect:
the ctags won't fail on the input file, but gracefully ignore the text in between ''' and ''' (including new lines).
The version of ctags:
How do you get ctags binary:
Building it locally, via GNU/Linux Ubuntu distribution
following SO question https://stackoverflow.com/a/34401367/775066
also tried binary from ubuntu package:
universal-ctags | 0+git20181215-2 | http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
The text was updated successfully, but these errors were encountered: