Re: Universal Ctags langmap

Shigio YAMAGUCHI <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CADJmJYqLO8Y76Uk4H8vBQj-bJ0G1K2XYEJckiTt8C_Q8zmwv+w@mail.gmail.com>
Hi,
> 1. DBusIntrospect is ignored, as Ant already has .xml.
> Since .xml is hardly distinct, I suggest removing both.
>
> 2. DBusIntrospect & Glade may not be supported at all,
> if ctags was built without libxml.

OK. I'll remove them by the same method as you.

# :langmap=DBusIntrospect\:.xml:\

> 3. The real problem is suffixes don't accumulate, which stops
> C++ from working at all - .inl is replacing all the other extensions.

It seems to work well in my Mac.

$ touch a.inl b.cpp c.c++
$ gtags --gtagsconf=/usr/local/share/gtags/gtags.conf
--gtagslabel=new-ctags --explain
 - File 'a.inl' is handled as follows:
        suffix:   |.inl|
        language: |C++|
        parser:   |parser|
        library:  |/usr/local/lib/gtags/universal-ctags.la|
 - File 'b.cpp' is handled as follows:
        suffix:   |.cpp|
        language: |C++|
        parser:   |parser|
        library:  |/usr/local/lib/gtags/universal-ctags.la|
 - File 'c.c++' is handled as follows:
        suffix:   |.c++|
        language: |C++|
        parser:   |parser|
        library:  |/usr/local/lib/gtags/universal-ctags.la|

Regards,
Shigio

2016-03-22 11:24 GMT+09:00 Jason Hood <[email protected]>:

> There's a few problems with langmap for universal-ctags.
>
> 1. DBusIntrospect is ignored, as Ant already has .xml.  Since .xml is
> hardly distinct, I suggest removing both.
>
> 2. DBusIntrospect & Glade may not be supported at all, if ctags was built
> without libxml.
>
> 3. The real problem is suffixes don't accumulate, which stops C++ from
> working at all - .inl is replacing all the other extensions.  For the
> Windows release I just separated the duplicated languages.  Another
> solution would be to map the languages (using value to store the position
> within the strbuf), create a strbuf_insert function and append the new
> extension(s).
>
> --
> Jason.
>
> _______________________________________________
> Bug-global mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/bug-global
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.