[Geany] filetypes detection patch

Enrico Tröger enrico.troeger at xxxxx
Sun Nov 4 10:09:04 UTC 2007


On Sat, 3 Nov 2007 04:22:15 +0200, Yura Siamashka <yurand2 at gmail.com>
wrote:

> Hi
> 
> Often python and perl scripts begin with something like:
> 
> #!/usr/bin/env python
> #!/usr/bin/env perl
> 
> It will be good for me if you include the following patch.
Thanks.
I changed the code to detect the env wrapper, skip it and read the
following as interpreter. So, it won't only detect "env python" and
"env php" but all other known interpreters. I pretty sure env is also
used for Perl scripts, maybe also Ruby and who knows what else, so we
detect them all.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20071104/f0ec72a1/attachment.pgp>


More information about the Users mailing list