mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
@@ -338,6 +338,9 @@ Moocode:
|
||||
Myghty:
|
||||
:ext:
|
||||
- .myt
|
||||
Nimrod:
|
||||
:ext:
|
||||
- .nim
|
||||
Nu:
|
||||
:lexer: scheme
|
||||
:aliases:
|
||||
|
||||
@@ -29,3 +29,5 @@ application/x-wais-source :8bit
|
||||
application/xaml+xml @xaml :8bit
|
||||
image/x-icns @icns
|
||||
text/cache-manifest @manifest
|
||||
text/x-nimrod @nim :8bit
|
||||
video/vnd.nokia.interleaved-multimedia @-nim
|
||||
|
||||
@@ -242,6 +242,9 @@ class TestBlob < Test::Unit::TestCase
|
||||
# https://github.com/wycats/osx-window-sizing/blob/master/center.applescript
|
||||
assert_equal Language['AppleScript'], blob("center.scpt").language
|
||||
assert_equal Language['AppleScript'], blob("center.applescript").language
|
||||
|
||||
# https://github.com/Araq/Nimrod/tree/master/examples
|
||||
assert_equal Language['Nimrod'], blob("foo.nim").language
|
||||
end
|
||||
|
||||
def test_lexer
|
||||
|
||||
@@ -251,6 +251,7 @@ class TestLanguage < Test::Unit::TestCase
|
||||
assert_equal Lexer['Ruby'], Language['Mirah'].lexer
|
||||
assert_equal Lexer['Moocode'], Language['Moocode'].lexer
|
||||
assert_equal Lexer['Myghty'], Language['Myghty'].lexer
|
||||
assert_equal Lexer['Nimrod'], Language['Nimrod'].lexer
|
||||
assert_equal Lexer['Scheme'], Language['Nu'].lexer
|
||||
assert_equal Lexer['NumPy'], Language['NumPy'].lexer
|
||||
assert_equal Lexer['OCaml'], Language['OCaml'].lexer
|
||||
|
||||
@@ -15,9 +15,10 @@ class TestMime < Test::Unit::TestCase
|
||||
assert_equal 'application/python', Mime.mime_for(".py")
|
||||
assert_equal 'application/ruby', Mime.mime_for(".rb")
|
||||
|
||||
assert_equal 'text/plain', Mime.mime_for(".kt")
|
||||
assert_equal 'text/html', Mime.mime_for(".html")
|
||||
assert_equal 'text/cache-manifest', Mime.mime_for(".manifest")
|
||||
assert_equal 'text/html', Mime.mime_for(".html")
|
||||
assert_equal 'text/nimrod', Mime.mime_for(".nim")
|
||||
assert_equal 'text/plain', Mime.mime_for(".kt")
|
||||
assert_equal 'application/sh', Mime.mime_for(".sh")
|
||||
assert_equal 'application/latex', Mime.mime_for(".latex")
|
||||
|
||||
@@ -133,6 +134,7 @@ class TestMime < Test::Unit::TestCase
|
||||
assert !Mime.binary?("text/html")
|
||||
assert !Mime.binary?("text/javascript")
|
||||
assert !Mime.binary?("text/plain")
|
||||
assert !Mime.binary?("text/x-nimrod")
|
||||
|
||||
assert !Mime.binary?(".js")
|
||||
assert !Mime.binary?(".latex")
|
||||
|
||||
Reference in New Issue
Block a user