mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Added detection of the Tea language.
This commit is contained in:
@@ -1050,6 +1050,12 @@ Tcsh:
|
|||||||
- .csh
|
- .csh
|
||||||
- .tcsh
|
- .tcsh
|
||||||
|
|
||||||
|
Tea:
|
||||||
|
type: programming
|
||||||
|
lexer: Tea
|
||||||
|
extensions:
|
||||||
|
- .tea
|
||||||
|
|
||||||
TeX:
|
TeX:
|
||||||
type: markup
|
type: markup
|
||||||
primary_extension: .tex
|
primary_extension: .tex
|
||||||
|
|||||||
1
test/fixtures/foo.tea
vendored
Normal file
1
test/fixtures/foo.tea
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<% template foo() %>
|
||||||
@@ -412,6 +412,9 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
|
|
||||||
# OpenEdge ABL / Progress
|
# OpenEdge ABL / Progress
|
||||||
assert_equal Language['OpenEdge ABL'], blob("openedge.p").language
|
assert_equal Language['OpenEdge ABL'], blob("openedge.p").language
|
||||||
|
|
||||||
|
# Tea
|
||||||
|
assert_equal Language['Tea'], blob("foo.tea").language
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_lexer
|
def test_lexer
|
||||||
@@ -421,6 +424,7 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
assert_equal Lexer['Ruby'], blob("grit.rb").lexer
|
assert_equal Lexer['Ruby'], blob("grit.rb").lexer
|
||||||
assert_equal Lexer['Scheme'], blob("dude.el").lexer
|
assert_equal Lexer['Scheme'], blob("dude.el").lexer
|
||||||
assert_equal Lexer['Text only'], blob("README").lexer
|
assert_equal Lexer['Text only'], blob("README").lexer
|
||||||
|
assert_equal Lexer['Tea'], blob("foo.tea").lexer
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_shebang_script
|
def test_shebang_script
|
||||||
|
|||||||
Reference in New Issue
Block a user