Re: gtags and Lua
Shigio YAMAGUCHI <[email protected]> Mon, 11 May 2020 07:01:38 +0900
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <CADJmJYo3WVVKWcopceXTycm0-vXoW6GtdruS1vzGJ7LXxYgs4w@mail.gmail.com> |
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'. <=3D 1
Using configuration label '*****'. <=3D 2
Using plug-in parser. <=3D 3
...
[*] extracting tags of test.lua
- File 'test.lua' is handled as follows:
suffix: |.lua| <=3D 4
language: |Lua| <=3D 5
parser: |parser|
library: |/usr/local/lib/gtags/universal-ctags.la| <=3D 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=E5=B9=B45=E6=9C=8811=E6=97=A5(=E6=9C=88) 2:13 DrPastah MartinScampah <=
[email protected]>:
>
> Hi,
>
> How do I get gtags working with Lua?
> I'm using gtags/global on windows under git bas, i.e. mingw
> `gtags --gtagslabel=3Dctags` and `gtags --gtagslabel=3Dnew-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 un=
der my /etc/ but still nothing for generating tags for Lua.
>
> Also, does gtags give references to functions and variables? Or is it onl=
y function definitions?
--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB