Added detection for the new M (aka MUMPS) language.

This commit is contained in:
Laurent Parenteau
2012-03-27 11:47:52 -04:00
parent 3b7b2020d2
commit e0190a5a6e
4 changed files with 20 additions and 0 deletions

4
test/fixtures/m_simple.m vendored Normal file
View File

@@ -0,0 +1,4 @@
fox
; The quick brown fox jumps over the lazy dog
write "The quick brown fox jumps over the lazy dog",!
quit

View File

@@ -307,6 +307,7 @@ class TestBlob < Test::Unit::TestCase
assert_equal Language['Objective-C'], blob("hello.m").language
assert_equal Language['Matlab'], blob("matlab_function.m").language
assert_equal Language['Matlab'], blob("matlab_script.m").language
assert_equal Language['M'], blob("m_simple.m").language
# .r disambiguation
assert_equal Language['R'], blob("hello-r.R").language