Some MATLAB files are incorrectly detected as Objective-C files
Some MATLAB files are incorrectly detected as Objective-C files; this can be observed in applications such as gnome-text-editor which make use of this detection. I can't find en exhaustive list of such misdetetcions, but at least it looks like it's related in some way to the presence or absence of a line starting with % at the beginning of a .m file (i.e., a MATLAB comment): if the file starts with such a line, it is correctly detected as a MATLAB file (actually, it is usually detected as an Octave file, but that's still a good enough result IMHO); otherwise it is detected as an Objective-C file. I don't know how to properly solve this, but I guess that just looking for a % at the beginning of an .m file is not enough because not every MATLAB file begins with such a comment. Maybe adding some low priority magics for syntactical differences between MATLAB and Objective-C could help (for example, if any matching couple of for/end, if/end, while/end, switch/end, etc. is found throughout the file then the file is likely to be a MATLAB file).