help-global
[Top][All Lists]
Advanced

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

Re: gtags and Lua


From: Shigio YAMAGUCHI
Subject: Re: gtags and Lua
Date: Mon, 11 May 2020 07:01:38 +0900

Hello,
How about invoking gtags with the -v and --explain option?
Gtags will work by explaining what it is doing.
You can check the value of the following 1-6.

$ ls
test.lua
$ gtags -v --explain
...
 Using configuration file '/***/***/***/gtags.conf'.            <= 1
 Using configuration label '*****'.                             <= 2
 Using plug-in parser.                                          <= 3
...
 [*] extracting tags of test.lua
 - File 'test.lua' is handled as follows:
        suffix:   |.lua|                                        <= 4
        language: |Lua|                                         <= 5
        parser:   |parser|
        library:  |/usr/local/lib/gtags/universal-ctags.la|     <= 6
...

> Also, does gtags give references to functions and variables?
> Or is it only function definitions?

Universal Ctags does not treat references at the moment.
However, it's just because there's no parser for it yet.
In fact, Universal Ctags has a mechanism for treating references.
So, you can write a new parser which give references. It is
of course also available from gtags.
(https://docs.ctags.io/en/latest/news.html#reference-tags)

Good luck!
Shigio

2020年5月11日(月) 2:13 DrPastah MartinScampah <address@hidden>:
>
> Hi,
>
> How do I get gtags working with Lua?
> I'm using gtags/global on windows under git bas, i.e. mingw
> `gtags --gtagslabel=ctags` and `gtags --gtagslabel=new-ctags` doesn't 
> generate anything for Lua files
> Downloaded the newest release of global from 
> http://adoxa.altervista.org/global/ i.e. 6.6.3 for win32
> Downloaded the newest release of universal ctags from 
> https://github.com/universal-ctags/ctags-win32
> I tried taking the gtags.conf from the given zip global and putting it under 
> my /etc/ but still nothing for generating tags for Lua.
>
> Also, does gtags give references to functions and variables? Or is it only 
> function definitions?



-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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