truist
unread,Sep 16, 2011, 5:51:50 PM9/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ack dev/users
Hello,
At my work, we use explicit version numbers in our shebang lines (for
perl). Example:
#!/some/path/perl5.8.8
('perl5.8.8' is an actual perl binary)
When the files containing this shebang line don't have an extension,
the regex in filetypes() won't match the shebang line, so these files
are (silently) not searched. (Took us a while to figure this out.)
I propose the following change to that regex:
return ($1,TEXT) if $header =~ /\b(ruby|p(?:erl|hp|ython))[\d\.
\_]*\b/;
Sorry this isn't a patch against the original source. If it's really
necessary, I'll go chase down the code on github and figure out where
it should go and submit one... eventually :)
Nathan