Added detection for Prolog and disambiguation for .pl files

This commit is contained in:
Andrei Formiga
2011-07-05 17:33:28 -03:00
parent 302f8763b7
commit b3e7065972
4 changed files with 36 additions and 0 deletions

View File

@@ -228,6 +228,11 @@ class TestBlob < Test::Unit::TestCase
assert_equal Language['R'], blob("hello-r.R").language
assert_equal Language['Rebol'], blob("hello-rebol.r").language
# .pl disambiguation
assert_equal Language['Prolog'], blob("test-prolog.pl").language
assert_equal Language['Perl'], blob("test-perl.pl").language
assert_equal Language['Perl'], blob("test-perl2.pl").language
# ML
assert_equal Language['OCaml'], blob("Foo.ml").language
assert_equal Language['Standard ML'], blob("Foo.sig").language