Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ex. Ctags adapted to Zsh
- X-seq: zsh-users 21951
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Ex. Ctags adapted to Zsh
- Date: Tue, 20 Sep 2016 10:58:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=A2wuh6u4LKxrDL3wdQMV3VF2+/8dgz5OQaPVRFGTDI4=; b=NHQThvGZwyHQfrnHcT5TGjOGGrBs8HDp2S3WpRzsfb6hFClERSPh0a1BuQyz2inYln 1c5VBMGfuCJklJoV8VKEsKmbidqxDPsQAOgXjBy+vCO6/ZtdsyLSj5MLyGJu3xZKnp9S t90piIUmFCrg1iW7GLS67Z814WTxchFbMLUduWl3P4ZDTcCU2wmWXquGwHn3Igj9C/gs WvRPYKIuibG8wiv9h7H6Yg8W6J5ClLqbNNbLNciV/SROplYmHhulD71ZyGf8wRzag0fc AkpRxfUv9G1CBcKD3BGFLfwZoXIu3zq5Cfew3nDUPREfvNgIqQ5GjF8IML0LEYYGefng q5cQ==
- In-reply-to: <CAKc7PVChiGE4=GnGS8bRT7Ek3Fcu_zw0vZChTb0fSbDCi2LWrA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVChiGE4=GnGS8bRT7Ek3Fcu_zw0vZChTb0fSbDCi2LWrA@mail.gmail.com>
Hello,
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:
https://github.com/psprint/zcommodore/releases/tag/conforming_ctags
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