Merge pull request #142 from jaxzin/detect-tea

Added detection of the Tea language.
This commit is contained in:
Joshua Peek
2012-03-28 09:16:40 -07:00
3 changed files with 11 additions and 0 deletions

View File

@@ -1079,6 +1079,12 @@ Tcsh:
- .csh
- .tcsh
Tea:
type: markup
lexer: Tea
extensions:
- .tea
TeX:
type: markup
ace_mode: latex

1
test/fixtures/foo.tea vendored Normal file
View File

@@ -0,0 +1 @@
<% template foo() %>

View File

@@ -420,6 +420,9 @@ class TestBlob < Test::Unit::TestCase
# OpenEdge ABL / Progress
assert_equal Language['OpenEdge ABL'], blob("openedge.p").language
# Tea
assert_equal Language['Tea'], blob("foo.tea").language
end
def test_lexer
@@ -429,6 +432,7 @@ class TestBlob < Test::Unit::TestCase
assert_equal Lexer['Ruby'], blob("grit.rb").lexer
assert_equal Lexer['Scheme'], blob("dude.el").lexer
assert_equal Lexer['Text only'], blob("README").lexer
assert_equal Lexer['Tea'], blob("foo.tea").lexer
end
def test_shebang_script