Improve Mathematica's heuristic rule

Use closing of Mathematica comment instead of opening
Unit test to check that test file is not detected as Mathematica anymore
This commit is contained in:
Paul Chaignon
2016-09-24 17:57:31 +02:00
parent cd9401c424
commit 3ae89b48ba
3 changed files with 417 additions and 3 deletions

View File

@@ -244,7 +244,7 @@ module Linguist
Language["MUF"]
elsif /^\s*;/.match(data)
Language["M"]
elsif /^\s*\(\*/.match(data)
elsif /\*\)$/.match(data)
Language["Mathematica"]
elsif /^\s*%/.match(data)
Language["Matlab"]