-
Notifications
You must be signed in to change notification settings - Fork 624
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
The configuration file blocks parsing #2557
Comments
Understandable but I don't support these use cases. I will never consider sharing .ctags with e-ctags in u-ctags development. If you use the "already defined" message, I would like you to revise your .ctags file. I would like to you to try the built-in parser instead of your parser defined in .ctags. If the built-in parser doesn't satisfies you, open a new issue or make a pull request here though I cannot promise you to fix the issue or merge the pull request. This is the only way to extend the life of ctags. If u-ctags doesn't stop when detecting a parser redefinition as you request, we will lose the chance to receive the issue report and/or the pull request. It makes the life of ctags shorten. This is the worst case I would like to avoid. If you want to add extra regex rules to a built-in parser, there are some choices. I have some regex rules for reading Linux kernel written mainly in C language:
I don't merge this fragments to u-ctags because I think these rules don't fit the general purpose.
If you don't want to use the built-in parser, but you want to use the name of the parser, |
No problem. Thanks for the heads up. |
Sorry for bringing up this old question but just wanted to clarify if you don't mind: if I want to use MY definitions for a language that is already supported, the only option is to use this Say, I don't like the inbuilt
Right? And this will override the inbuilt |
Thank you for finding this discussion. I'm interested that there is a person who is interested in
YES. I will show the way to verify the option works.
You can rewrite the options file more u-ctags way:
I wonder why you want to use the option. Any interesting application? |
Thank you for this reply and for your hints!
Not really :) I just started using |
Parsing Javascript:
Content of
~/.ctags
:Please note this is a bug related to ctags configuration file. Say I used to use a very old version of Exuberant Ctags which does not support Javascript. So I have to use
--langdef=Javascript
. Now I switch to Universal Ctags, but I DONOT want to update my~/.ctags
because I possibly be forced to use old Exuberant Ctags again. It's much better the program could ignore the error that Javascript is already defined and CONTINUE parsing.The cli
The content of input file:
The tags output you are not satisfied with:
The tags output you expect:
The version of ctags:
How do you get ctags binary:
Building it locally, via GNU/Linux distribution, as Debian Linux
The text was updated successfully, but these errors were encountered: