2012-08-27

Tagging UniVerse Basic in ctags

Use etags in Exuberant Ctags, instead of the one in emacs.

find -H /somewhere/UVBasic/src -name '*.[BHu]' \
 | xargs -I{} ctags -e -a -o TAGS-uvb --langdef=uvbasic --langmap=uvbasic:.B.H.u \
--regex-uvbasic='/^([^ \t]+):$/\1/' --regex-uvbasic='/^[ \t]*PROGRAM[ \t]+([^ ]+)$/\1/i'  \
--regex-uvbasic='/^[ \t]*(FUNCTION|DEFFUN)[ \t]+([^ ]+\))/\2/i'  \
--regex-uvbasic='/^[ \t]*(EQUATE|EQU)[ \t]+([^ ]+)[ \t]+TO[ \]+/\2/i' {}