Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Ex. Ctags adapted to Zsh

I've modified Emacs tag file output to be easier to parse with Zsh.
I've tagged the still-conforming ctags source with tag
"conforming_ctags". It produces normal Emacs tags:


If I would ever further extend Sh languages parsing or apply other
general patches, I will backport them to branch conforming_ctags_b

Best regards,
Sebastian Gniazdowski

On 18 September 2016 at 19:19, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> Hello,
> I've adapted Exuberant Ctags to:
> - allow "-" in function names,
> - recognize variables defined with typeset, local, float, etc., with
> options used
> - recognize variable declarations that are multiple in one line and
> with initialization
> Source:
> https://github.com/psprint/zcommodore/tree/master/myctags
> The commits that I refer to:
> https://github.com/psprint/zcommodore/commits?author=psprint&since=2016-09-01T00:00:00+02:00&until=2016-09-18T19:12:08+02:00
> TODO is to add Vim and Emacs mode-line recognition, so that files
> without extensions are nicely parsed. Currently one has to use
> "--langmap=sh:.,sh:+.sh" option for that. Ex. Ctags already has
> something similar – it looks at #! shebang to determine language, so
> this should be easy.
> Attached is screenshot of an example generated tags file.
> Best regards,
> Sebastian Gniazdowski

Messages sorted by: Reverse Date, Date, Thread, Author