mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add ".es" to recognised ECMAScript extensions
* Add ".es" to recognised JavaScript extensions * Add heuristic to differentiate Erlang from ECMAScript * Add test-case for .es heuristic
This commit is contained in:
committed by
Arfon Smith
parent
7c8bc8561d
commit
24b368a30c
@@ -83,6 +83,13 @@ class TestHeuristcs < Minitest::Test
|
||||
"ECLiPSe" => all_fixtures("ECLiPSe", "*.ecl")
|
||||
})
|
||||
end
|
||||
|
||||
def test_es_by_heuristics
|
||||
assert_heuristics({
|
||||
"Erlang" => all_fixtures("Erlang", "*.es"),
|
||||
"JavaScript" => all_fixtures("JavaScript", "*.es")
|
||||
})
|
||||
end
|
||||
|
||||
def test_f_by_heuristics
|
||||
assert_heuristics({
|
||||
|
||||
Reference in New Issue
Block a user