[Qt-creator] qt-creator fails to highlight matlab (*.m) files

erik.verbruggen at nokia.com erik.verbruggen at nokia.com
Thu Jan 26 08:49:18 CET 2012


On Jan 26, 2012, at 2:47, ext Coda Highland wrote:

> Maybe Creator is treating .m files as Objective-C? I don't have a way
> to check this right now but it seems that .m might be getting nabbed
> by the C parser instead of the generic one.

Yes, .m and .mm are treated as Objective-C(++), as you can see in CppEditor.mimetypes.xml. You can try to override it in the preferences under mimetypes. If that doesn't work, then please file a feature request.

-- Erik.


> /s/ Adam
> 
> On Wed, Jan 25, 2012 at 5:16 PM, Thomas Gahr <ml at dadommas.de> wrote:
>> Hello!
>> 
>> Is it possible that qt-creator (2.3.1 and git 4a43336a from Jan. 11) support
>> for kate-highlighting files is not complete? It fails to highlight matlab files
>> correctly while kate has no problems.
>> Is there any way to debug this?
>> I tried attaching with GDB in TextEditor/GenericHighlighter/manager.cpp:139:
>>        try {
>>            reader.parse(source);
>>        } catch (HighlighterException &) {
>>            definition.clear();         //here
>>        }
>> to see if there was an error parsing matlab.xml but this does not seem to be
>> the case.
>> 
>> Any ideas?
>> 
>> Thanks,
>> Thomas
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator


-- 
Erik Verbruggen
Product manager Qt Creator
Nokia

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




More information about the Qt-creator mailing list