JamesRitchie / language-matlab

MATLAB/Octave language support for Atom
15 stars 9 forks source link

m file extension conflict with objective-c #1

Open gleasonj opened 9 years ago

gleasonj commented 9 years ago

There appears to be a conflict between the objective-c language and matlab when using the .m file extension. For me objective-c wins the conflict and the language-matlab files do not get applied.

Changing the file extension to .matlab and adding it to the file types of m.cson allows for me to use the highlighting provided but it's kind of a rough fix. (I just realized that matlab doesn't recognize .matlab files, which makes this a very ineffectual fix...)

I'm using atom 0.158.0

nkmry commented 9 years ago

I solved this problem by using this package: https://atom.io/packages/file-types

JamesRitchie commented 9 years ago

As far as I'm aware Atom doesn't have any language detection more sophisticated than checking file extensions. So the only options are to use the file-types package to prefer Matlab over Objective-C, or to disable the language-objective-c package in Atom Settings.