Added detection for the new Logtalk language

This commit is contained in:
Paulo Moura
2012-03-02 20:26:27 +00:00
parent 101676d90b
commit 66496fcde5
4 changed files with 9 additions and 0 deletions

View File

@@ -566,6 +566,12 @@ Literate Haskell:
extensions:
- .lhs
Logtalk:
type: programming
primary_extension: .lgt
extensions:
- .lgt
Lua:
type: programming
primary_extension: .lua

View File

@@ -53,6 +53,7 @@ application/xaml+xml @xaml :8bit
image/x-icns @icns
text/cache-manifest @manifest
text/plain @cu,cxx
text/x-logtalk @lgt
text/x-nemerle @n
text/x-nimrod @nim
text/x-ocaml @ml,mli,mll,mly,sig,sml

View File

@@ -274,6 +274,7 @@ class TestBlob < Test::Unit::TestCase
assert_equal Language['C++'], blob("hello.cpp").language
assert_equal Language['C++'], blob("cuda.cu").language
assert_equal Language['GAS'], blob("hello.s").language
assert_equal Language['Logtalk'], blob("foo.lgt").language
assert_equal Language['Objective-C'], blob("Foo.h").language
assert_equal Language['Objective-C'], blob("Foo.m").language
assert_equal Language['Objective-C'], blob("FooAppDelegate.h").language

View File

@@ -62,6 +62,7 @@ class TestMime < Test::Unit::TestCase
assert_equal 'text/plain', Mime.mime_for('.hh')
assert_equal 'text/plain', Mime.mime_for('.hpp')
assert_equal 'text/plain', Mime.mime_for('.kt')
assert_equal 'text/x-logtalk', Mime.mime_for('.lgt')
assert_equal 'text/x-rust', Mime.mime_for('.rs')
assert_equal 'text/x-rust', Mime.mime_for('.rc')
assert_equal 'video/quicktime', Mime.mime_for('.mov')