Hi,
How about adding new configuration variable 'langmap_glob'?
This variable has almost same syntax as 'skip' variable.
For example,
:langmap=cpp\:.c++.cc.hh:\
is re-writable as follows.
:langmap_glob=cpp\:*.c++,*.cc,*.hh:\
If the pattern begin with '/', it is a path name from the
current directory. Additionally, if the pattern ends with
'/', it is assumed as a directory, and every file under it
is treated as a C++ source file.
For example, if you want to treat every file under 'c++/4.8'
as a C++ source file, then
:langmap_glob=cpp\:/c++/4.8/:\
$ cd /usr/include
$ gtags
What do you think?
Shigio