Dear all,
the Matlab bundle does not correctly deal with the ' character as a mathematical operation. I have this line in a matlab file:
time = (-L_TEMPLATE/2+1/2:L_TEMPLATE/2-1/2)'; % time vector [samples]
and everything after this line is marked as being a string, because ' is recognized as string-open, I guess? Does anybody know how to make this work better?
Thx, Michael
On 2013-01-15 13:09:55 +0000, K.-Michael Aye said:
Dear all,
the Matlab bundle does not correctly deal with the ' character as a mathematical operation. I have this line in a matlab file:
time = (-L_TEMPLATE/2+1/2:L_TEMPLATE/2-1/2)'; % time vector [samples]
and everything after this line is marked as being a string, because ' is recognized as string-open, I guess? Does anybody know how to make this work better?
Thx, Michael
Sorry for the noise, the Matlab bundle is okay, the problem was that the .m extension switched Textmate to the Objective-C bundle without me noticing. How can I control then which extensions load what bundle?
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jan 15, 2013, at 3:00 PM, K.-Michael Aye kmichael.aye@gmail.com wrote:
How can I control then which extensions load what bundle?
If you always want .m files to open as Matlab then you don’t have to do anything besides making the choice (or correction) once, and TextMate will remember that for all future .m files.
Should you however wnat .m files to be Objective-C for some Objective-C project you can create a .tm_properties file in the root of that project containing:
[ *.m ] fileType = source.objc
That will make all .m files contained in that folder (and subfolders) be Objective-C, while still globally treating .m files as Matlab.