Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Ex. Ctags adapted to Zsh
- X-seq: zsh-users 21943
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Ex. Ctags adapted to Zsh
- Date: Sun, 18 Sep 2016 19:19:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=iiSDgXa6nptWM9VFHrSLilWTjvVk2ojGLDFX/Tx2iUI=; b=O7yV9t5SZIroKgwOQvsRxGdUHOFLlD/Yyi2DUKnebNweXhDU3UDIKmsk54kgh30EzF DWiA6YYJuzAd8OV3OJ8+RL2nrQjsvlrvFUZbPh6fPcxuiQIhCGG0hsoKaf9PCnZWVlbI qWixbbIM4zEHScRJvUeLvdnJoFW9V7PnFG067gBz/2gxym+XkZLzRCJ+CCLEMTmmRt2O sxBHadist8L5isMIed/pkZVilqcI6XVb00IGAW7mL61WkHK3RwSvt5UuKFdv906ONK1x jO2PhxB0gLasqho76ZvpnYKf8U7w9ylusK7S+vdfN3qxBb1k2AhxEfoWYCl6SNdh+Zae 9OGg==
- 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
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:
tags.png
Description: PNG image
Messages sorted by:
Reverse Date,
Date,
Thread,
Author