Re: [Ctags] Looking for a volunteer to add support for Miva.
Brought to you by:
dhiebert
From: Darren H. <da...@da...> - 2007-05-11 02:53:33
|
Hello Bill, Nothing stupid, except for an incorrect assumption of what style of regex is implemented. You used '\s' to represent white space, which is a Perl regex meta-character and not recognized by the "extended regular expressions" that ctags generally uses. The Windows version of regex is built using Gnu regex, which is a superset of extended regular expressions. Replace the '\s' with a space or character class '[ ]' (i.e. a space and tab character) and your regex works (I tested it). For documentation on Gnu regex, see this page: <http://www.delorie.com/gnu/docs/regex/regex_toc.html> If you really want Perl-style regex, there is a perl regex library out there with an interface that matches that of the standard regex library and ctags could be compiled with this. Darren On May 10, 2007, at 8:27 PM, Bill Guindon wrote: > C:\Work\Boxer\Ctags>type ctags.cnf > --langdef=miva > --langmap=miva:.mv > --regex-miva=/^\s*<MvFUNCTION\s+NAME\s*=\s*"([a-zA-Z0-9_]+)"/\1/ > f,function/ > > C:\Work\Boxer\Ctags>type dump.txt > !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not > append ;" to lines/ > !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ > !_TAG_PROGRAM_AUTHOR Darren Hiebert / > dhi...@us.../ > !_TAG_PROGRAM_NAME Exuberant Ctags // > !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official > site/ > !_TAG_PROGRAM_VERSION 5.6 // > > Thanks again for your help. Let me know if you see any obvious > stupidity. -- Darren Hiebert http://darrenhiebert.com |