zsh-users
 help / color / mirror / code / Atom feed
* Ex. Ctags adapted to Zsh
@ 2016-09-18 17:19 Sebastian Gniazdowski
  2016-09-18 17:23 ` Sebastian Gniazdowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sebastian Gniazdowski @ 2016-09-18 17:19 UTC (permalink / raw)
  To: Zsh Users

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-20 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-18 17:19 Ex. Ctags adapted to Zsh Sebastian Gniazdowski
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

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).