From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7413 invoked by alias); 20 Sep 2016 14:45:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21951 Received: (qmail 22058 invoked from network); 20 Sep 2016 14:45:07 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.178):SA:0(1.1/5.0):. Processed in 0.319617 secs); 20 Sep 2016 14:45:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_03_06, FREEMAIL_FROM,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.178 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=A2wuh6u4LKxrDL3wdQMV3VF2+/8dgz5OQaPVRFGTDI4=; b=Rcd0HsUjEf3mEiTyzWdsHHCs5k3pH56f6DbqWquBlm+5IVYKx/8MG7azAyBsgEvWuf iTXjfAV0k+MguS3oYM9vFOfedLozsbdlr8kdN6bgVD0bwwycwzSFPST3bxXGVMvWwRSt lZhBWplVdQKhoQZQqoxb1cJJxZsgdTnDsmUaO2S023cyqn2yL34fAmoG11gKIHmRQBDn ReFsRxwIhbR3XGd5mrA1Oo/xTg4thePAYySgPMcPegigSOPB2XyCuFuGUUXgccaeJqC8 40OTi0b8XzartSg41iQlPfQezfGYF+clB2oKtV+4MlXHWnhZQUEZxdG/op4vPqJkwq3C v+0w== X-Gm-Message-State: AE9vXwNGDAtqykEd3RhuJbH1K87FXPzdUOFJamQkHqeeQVFjIT02U7PUEjrEilC+biRTDdmxkJkTKiq8c/18pA== X-Received: by 10.55.170.215 with SMTP id t206mr33332625qke.42.1474361908501; Tue, 20 Sep 2016 01:58:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Sebastian Gniazdowski Date: Tue, 20 Sep 2016 10:58:08 +0200 Message-ID: Subject: Re: Ex. Ctags adapted to Zsh To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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=3Dpsprint&since=3D20= 16-09-01T00:00:00+02:00&until=3D2016-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=3Dsh:.,sh:+.sh" option for that. Ex. Ctags already has > something similar =E2=80=93 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