bug-global
[Top][All Lists]
Advanced

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

Re: Support file-type guess using file/libmagic when source file does no


From: Shigio YAMAGUCHI
Subject: Re: Support file-type guess using file/libmagic when source file does not have a suffix
Date: Tue, 21 Feb 2017 12:44:55 +0900

Hi,

I recognize libmagic as an equivalent of file(1).
Can it decide language type correctly?
Can it accommodate new languages?
Isn't it better to use it as a tool for creating file lists? 

Regards,
Shigio


2017-02-21 10:39 GMT+09:00 Jun Sheng <address@hidden>:
specifying the filetype in commandline is a good idea, but why not going further, make gtags read file type when read file list ?

and I attached a patch, which will guess file type using libmagic 

On Mon, Feb 20, 2017 at 3:16 PM Shigio YAMAGUCHI <address@hidden> wrote:
Hi,
> Hi,
> There, what about adding file-type guessing when the source file does not have a suffix?
>
> Currently when the file doesnot have a suffix, gnu global wont parse it,
> this is a problem when perl/python ... files. and gtags cant specify lang-type on command-line.

You are right.
Currently, we have a plan to do the following:

Does this specification fulfill your requirements?

Regards,
Shigio


2017-02-20 15:45 GMT+09:00 Jun Sheng <address@hidden>:
Hi, 
There, what about adding file-type guessing when the source file does not have a suffix?

Currently when the file doesnot have a suffix, gnu global wont parse it, this is a problem when perl/python ... files. and gtags cant specify lang-type on command-line.


_______________________________________________
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



--
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]