[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Parsing Objective C syntax in a header file
|
I managed to find the cause of my earlier problem - I'd been defining
the language like:
<extension point="org.eclipse.cdt.core.language">
<language class="org.eclipse.cdt.objc.core.dom.ast.objc.ObjCLanguage"
id="org.eclipse.cdt.objc.core.objcLanguage"
name="%objc.language.name">
<contentType id="org.eclipse.cdt.objc.core.objcHeader" />
<contentType id="org.eclipse.cdt.objc.core.objcSource" />
</language>
</extension>
However, it appears that under the covers, the language ID is being
prepended with something (bundle id?) and was therefore not being
found in the mapping. I had to change it to:
<extension point="org.eclipse.cdt.core.language">
<language class="org.eclipse.cdt.objc.core.dom.ast.objc.ObjCLanguage"
id="objcLanguage" name="%objc.language.name">
<contentType id="org.eclipse.cdt.objc.core.objcHeader" />
<contentType id="org.eclipse.cdt.objc.core.objcSource" />
</language>
</extension>
Note that in the latter case, the id is just 'objcLanguage' and not
'org.eclipse.cdt.objc.core.objcLanguage'. I'm including it here for
reference in case others trip up on this. Now, I have the ability to
parse header files as Objective C code, and I need to tweak the
creation of the projects via the wizard to add this automatically, and
I should be good to go.
Alex