github/linguist — pull request #162 by horchler (2012-05-08 23:10:06+00:00)
Title: More robust heuristics for .m files and 3 new Matlab tests. Finally.

Support for Objective-C detection fully intact; all tests pass. Detection of Objective-C keywords @implementation, @property, @interface, and @synthesize removed to avoid possible conflicts with user-created Matlab function handles. Only @end is detected, which is not valid in Matlab. Matlab class files (classdef) now detected in addition to function files. Comments preceded by whitespace detected for Objective-C and Matlab.

I know Matlab intimately and I'm willing to do a bit of work to finally get Matlab and Objective-C .m files to be reliably distinguished from one another (there are Matlab repositories on GitHub that are misclassified, including one of mine: github.com/horchler/QTWriter). Let me know how I can help.

Signed-off-by: Andrew D. Horchler