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

* Re: Ex. Ctags adapted to Zsh
  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-20  8:58 ` Sebastian Gniazdowski
  2 siblings, 0 replies; 5+ messages in thread
From: Sebastian Gniazdowski @ 2016-09-18 17:23 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]

Attached the correct screenshot file

Best regards,
Sebastian Gniazdowski



On 18 September 2016 at 19:19, Sebastian Gniazdowski
<sgniazdowski@gmail.com> 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

[-- Attachment #2: tags2.png --]
[-- Type: image/png, Size: 391259 bytes --]

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

* Re: Ex. Ctags adapted to Zsh
  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
  2 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2016-09-18 20:10 UTC (permalink / raw)
  To: Zsh Users

On Sun, Sep 18, 2016 at 10:19 AM, Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
>
> Attached is screenshot of an example generated tags file.

Somehow, I don't think so ...  :-)


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

* Re: Ex. Ctags adapted to Zsh
  2016-09-18 20:10 ` Bart Schaefer
@ 2016-09-18 22:48   ` Sebastian Gniazdowski
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Gniazdowski @ 2016-09-18 22:48 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh Users

On 18 September 2016 at 22:10, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Sun, Sep 18, 2016 at 10:19 AM, Sebastian Gniazdowski
> <sgniazdowski@gmail.com> wrote:
>>
>> Attached is screenshot of an example generated tags file.
>
> Somehow, I don't think so ...  :-)

Yes I've sent second message, something mixed up :)

Best regards,
Sebastian Gniazdowski


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

* Re: Ex. Ctags adapted to Zsh
  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-20  8:58 ` Sebastian Gniazdowski
  2 siblings, 0 replies; 5+ messages in thread
From: Sebastian Gniazdowski @ 2016-09-20  8:58 UTC (permalink / raw)
  To: Zsh Users

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@gmail.com> 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


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