On Sat, 14 Feb 2009, Raul Miller wrote:
> The jtags script looks like it should mostly work, except perhaps the
> file name should be 'tags' instead of 'TAGS' and you will probably
> have problems with lines which contain characters which are
> special in regular expressions.
> 
> Here's the documentation I am working from:
>    http://en.wikipedia.org/wiki/Ctags#Ctags
> 
> I would also be tempted to replace the searches that your jtags
> script generates with line numbers.  Line numbers would be
> less tolerant of edits to files -- they could send you to old locations
> instead of new locations until you updated the tags reference -- but
> would be more robust than these searches in the context of
> special characters.

Thanks.  I also found that ctags can generate tags for J scripts.
This is what I wrote to match explicit definitions.

/([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:.*(noun|verb|adverb|conjuction|(1?[01234]))[ 
\t]+:[ \t]*(define|0)/\1/

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩001 張九齡  感遇四首之一
    孤鴻海上來  池潢不敢顧  側見雙翠鳥  巢在三珠樹  矯矯珍木巔  得無金丸懼
    美服患人指  高明逼神惡  今我遊冥冥  弋者何所慕
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to