Replies: 2 comments
-
About supporting local variables, a suggestion I can give is only "read sh.c". To support local variables, the parser must support scopes of functions.
The current parser implementation doesn't know the end of f(). Extracting python.c tracks the scope cleanly (token based). Compared with supporting scope, adding and supporting may be an easier task. I struggled to add support for variables: #3544 . Good luck! |
Beta Was this translation helpful? Give feedback.
-
I think this is not an "issue". So if you are o.k., I would like to convert this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
I'm looking for a guidance for adding local variables support to sh/zsh parsers. They're typically defined with a
typeset
/declare
/local
keyword. What is the way of adding this to universal-ctags?The name of the parser:
Sh/Zsh
The tags output you expect:
A output that has shell variables tagged.
The version of ctags:
How do you get ctags binary:
I'm cloning and autotools building it.
Beta Was this translation helpful? Give feedback.
All reactions