mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Added detection for Prolog and disambiguation for .pl files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user