forked from qt-creator/qt-creator
CppTools: Make objective c extension *.m unambiguous
...and thus avoid reading the file. The other candidate was "text/x-matlab". Change-Id: Ifb36b817cda654bcda37b7d675c2df4e60525a2b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -37,9 +37,9 @@
|
||||
example, STL ones like <string>. Those can have a big initial
|
||||
comment exceeding 1000 chars, though. -->
|
||||
<magic priority="50">
|
||||
<match value="#ifndef " type="string" offset="0:2000"/>
|
||||
<match value="#if " type="string" offset="0:2000"/>
|
||||
<match value="#include " type="string" offset="0:2000"/>
|
||||
<match value="#ifndef " type="string" offset="0:2000"/>
|
||||
<match value="#if " type="string" offset="0:2000"/>
|
||||
<match value="#include " type="string" offset="0:2000"/>
|
||||
</magic>
|
||||
</mime-type>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<glob pattern="*.t++" weight="70"/>
|
||||
<glob pattern="*.txx" weight="70"/>
|
||||
<magic priority="30">
|
||||
<match value="-*- C++ -*-" type="string" offset="0:30"/>
|
||||
<match value="-*- C++ -*-" type="string" offset="0:30"/>
|
||||
</magic>
|
||||
</mime-type>
|
||||
|
||||
@@ -83,4 +83,13 @@
|
||||
<glob pattern="*.mm" weight="70"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="text/x-objcsrc">
|
||||
<comment>Objective-C source code</comment>
|
||||
<sub-class-of type="text/x-csrc"/>
|
||||
<glob pattern="*.m" weight="70"/>
|
||||
<magic priority="30">
|
||||
<match value="#import" type="string" offset="0"/>
|
||||
</magic>
|
||||
</mime-type>
|
||||
|
||||
</mime-info>
|
||||
|
||||
Reference in New Issue
Block a user