d2tags - converts DMD2's JSON output to Exuberant Ctags format

Leandro Lucarella llucax at gmail.com
Thu May 6 10:50:52 PDT 2010


Andrei Alexandrescu, el  6 de mayo a las 09:48 me escribiste:
> MIURA Masahiro wrote:
> > Hi,
> > 
> > Being happy to see issue 3415 (broken JSON format) fixed,
> > I have written a utility to convert DMD2's JSON output
> > to Exuberent Ctags format.  This enables you to tagjump in Vim
> > and other editors/IDEs.  It's just 150+ lines, thanks to D2's
> > powerful string handling.  Enjoy!
> > 
> > http://github.com/Dubhead/d2tags
> > 
> > usage:
> > % dmd -Xftags.json foo.d
> > % d2tags tags.json > tags
> 
> Very useful, and a beautiful example of D scripting.
> 
> I wonder if this is of enough general utility to warrant inclusion
> within the D distribution, along with rdmd. Thoughts?

I think it might be better to add support to the common tools, like
exuberant-ctags[1], but having it as part of rdmd or whatever could be
nice too.

[1] http://ctags.sourceforge.net/

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
A lo que Peperino respondióles: aquel que tenga sabañones que se los
moje, aquel que padece calvicie no padece un osito, no es bueno comer
lechón en día de gastritis, no mezcleis el vino con la sandía, sacad la
basura después de las ocho, en caso de emergencia rompa el vidrio con
el martillo, a cien metros desvio por Pavón.
	-- Peperino Pómoro


More information about the Digitalmars-d-announce mailing list