-
Notifications
You must be signed in to change notification settings - Fork 629
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
Making reference tags for external entities instead of definitions tags #2428
Comments
If external entities are captured with proper kinds and proper roles, we can implement semantic recursion feature. I have implemented such feature as a prototype (-S option):
As input file, only /usr/lib/python3.6/site-packages/pygments/cmdline.py is passed to ctags. Combining multi pass parsing feature with this sematic recursion will be quite powerful; ctags can run C parser on a C source file with knowledges about all macro definitions used in the C source file. |
An interesting question related to this issue |
It is an interesting one. I think at least it can be solved in 3 ways:
|
ctags itself also must have an ability to solve file name from given language object name when implementing multi-pass parsing.
It is already done in ctags side!
|
Some parsers capturing the tokens referring to external entities as definitions tags.
This should not[1]. Instead, it should capture as reference tags.
The modifications for solving this issue may break compatibility.
However, implementing multi-pass parsing in the future, we must fix them now.
let's call "tags referring to external entities" "dependency references" or "depedeny reference tags" as proposed in #3535 (comment).
...
[1] The following question illustrates the reason:
https://stackoverflow.com/questions/3609433/skip-python-import-statements-in-exuberant-ctags
The text was updated successfully, but these errors were encountered: