Merge branch 'detect-prolog' of https://github.com/tautologico/linguist into tautologico-detect-prolog

Conflicts:
	lib/linguist/blob_helper.rb
	test/test_blob.rb
This commit is contained in:
Joshua Peek
2011-07-05 16:06:22 -05:00
7 changed files with 56 additions and 3 deletions

2
test/fixtures/test-perl.pl vendored Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/perl
print "Hello, world!\n";

3
test/fixtures/test-perl2.pl vendored Normal file
View File

@@ -0,0 +1,3 @@
# Perl file without shebang
print "Hello, world!\n";

12
test/fixtures/test-prolog.pl vendored Normal file
View File

@@ -0,0 +1,12 @@
/* Prolog test file */
male(john).
male(peter).
female(vick).
female(christie).
parents(john, peter, christie).
parents(vick, peter, christie).
/* X is a brother of Y */
brother(X, Y) :- male(X), parents(X, F, M), parents(Y, F, M).