Re: [Ctags] protecting regex chars
Brought to you by:
dhiebert
From: Darren H. <Darren@DarrenHiebert.com> - 2008-11-04 05:53:40
|
I'll add that detail to the man page. Tag files are standard (and Exuberant Ctags is not the only tag file generator), so if an editor wants to support them, it needs to do it correctly. The only variation Exuberant Ctags makes to a tag file is the extension fields. On Nov 3, 2008, at 10:20 PM, Mike Maxwell wrote: > Darren Hiebert wrote: >> The search pattern used in tag files is constructed with the >> assumption >> that the editor behaves like the vi (or ex) editor with the 'nomagic' >> option set, which causes the characters . [ * to lose their special >> meaning. > > Wow, it's been a long time since I routinely used vi. I'd forgotten > (if > I ever knew) that there was such an option. > > jEdit does not appear to have a 'nomagic' option on search or in its > ctags plugins, and I don't see anything in the ctags man page about > turning off the 'nomagic'. So it looks like my choices are to > convince > one or the other side to do something magical :-), or to implement my > own regex character post-process. Or am I missing some other option? -- Darren Hiebert http://darrenhiebert.com |