bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal Ctags langmap


From: Shigio YAMAGUCHI
Subject: Re: Universal Ctags langmap
Date: Tue, 22 Mar 2016 14:12:48 +0900

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 <address@hidden>:
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
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]