summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2023-10-29 14:57:01 -0600
committerDavid Faure <faure@kde.org>2024-04-20 08:25:46 +0000
commit0a2dc1562f37ef8da00bfffcfba5ac66b5a2307a (patch)
treea7279dd8903f180959d5fde2002b71fd68a8c19e /data
parent1cbcc79d7156f3797fc23790c5042159e3624474 (diff)
Fix backwards relationships between C, C++, Objective-C, and Objective-C++
Almost all C code is also C++ or Objective-C code, but the reverse is rarely true. All C++ and Objective-C code is also Objective-C++ code.
Diffstat (limited to 'data')
-rw-r--r--data/freedesktop.org.xml.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 05d52a3..393b3bb 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -6789,7 +6789,7 @@ command to generate the output files.
</mime-type>
<mime-type type="text/x-c++src">
<comment>C++ source code</comment>
- <sub-class-of type="text/x-csrc"/>
+ <sub-class-of type="text/x-objc++src"/>
<glob pattern="*.cpp"/>
<glob pattern="*.cxx"/>
<glob pattern="*.cc"/>
@@ -6848,7 +6848,8 @@ command to generate the output files.
</mime-type>
<mime-type type="text/x-csrc">
<comment>C source code</comment>
- <sub-class-of type="text/plain"/>
+ <sub-class-of type="text/x-c++src"/>
+ <sub-class-of type="text/x-objcsrc"/>
<alias type="text/x-c"/>
<glob pattern="*.c" case-sensitive="true"/>
<magic priority="30">
@@ -7145,7 +7146,7 @@ command to generate the output files.
</mime-type>
<mime-type type="text/x-objcsrc">
<comment>Objective-C source code</comment>
- <sub-class-of type="text/x-csrc"/>
+ <sub-class-of type="text/x-objc++src"/>
<magic priority="30">
<match type="string" value="#import" offset="0"/>
</magic>
@@ -7153,8 +7154,7 @@ command to generate the output files.
</mime-type>
<mime-type type="text/x-objc++src">
<comment>Objective-C++ source code</comment>
- <sub-class-of type="text/x-c++src"/>
- <sub-class-of type="text/x-objcsrc"/>
+ <sub-class-of type="text/plain"/>
<glob pattern="*.mm"/>
</mime-type>
<mime-type type="text/x-ocaml">