From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Ex. Ctags adapted to Zsh
Date: Sun, 18 Sep 2016 19:19:58 +0200 [thread overview]
Message-ID: <CAKc7PVChiGE4=GnGS8bRT7Ek3Fcu_zw0vZChTb0fSbDCi2LWrA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 875 bytes --]
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
[-- Attachment #2: tags.png --]
[-- Type: image/png, Size: 390052 bytes --]
next reply other threads:[~2016-09-18 17:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 17:19 Sebastian Gniazdowski [this message]
2016-09-18 17:23 ` Sebastian Gniazdowski
2016-09-18 20:10 ` Bart Schaefer
2016-09-18 22:48 ` Sebastian Gniazdowski
2016-09-20 8:58 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKc7PVChiGE4=GnGS8bRT7Ek3Fcu_zw0vZChTb0fSbDCi2LWrA@mail.gmail.com' \
--to=sgniazdowski@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).