Hi,
On my wish list for GNU Global I have being able to add wildcards in
skips lists.
Emacs' flymake-mode creates temporary copies of files by adding
`_flymake' before the the file extension. I.e. a temporary copy of
`my-code.php' is named `my-code_flymake.php'. So adding `*_flymake.*` to
the skip list will ensured that the file is not indexed by gtags.
I have created a very simple patch that turns `*' in the skip list into
`.*' in the regular expression instead of escaping it.
Kind regards,
Arne Jørgensen
Index: libutil/find.c
===================================================================
RCS file: /sources/global/global/libutil/find.c,v
retrieving revision 1.91
diff -u -r1.91 find.c
--- libutil/find.c 13 Oct 2012 07:01:33 -0000 1.91
+++ libutil/find.c 13 Feb 2014 08:10:21 -0000
@@ -275,7 +275,9 @@
} else {
strbuf_putc(reg, '/');
for (q = skipf; *q; q++) {
- if (isregexchar(*q))
+ if (*q == '*')
+ strbuf_putc(req, '.');
+ else if (isregexchar(*q))
strbuf_putc(reg, '\\');
strbuf_putc(reg, *q);
}
_______________________________________________
Help-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-global