Skip to content

Commit

Permalink
Minor improvement for detecting Perl files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoura committed Aug 9, 2011
1 parent de940f2 commit a18e88c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detector.c
Expand Up @@ -693,6 +693,8 @@ const char *disambiguate_pl(SourceFile *sourcefile) {
char *contents = ohcount_sourcefile_get_contents(sourcefile);
if (contents && strstr(contents, "#!/usr/bin/perl"))
return LANG_PERL;
else if (contents && strstr(contents, "#!/usr/local/bin/perl"))
return LANG_PERL;
else if (contents && strstr(contents, ":-"))
return LANG_PROLOG;
else
Expand Down

0 comments on commit a18e88c

Please sign in to comment.