It's possible to handle two different grammars on the same plugin?

Milian Wolff mail at
Thu Jul 8 21:54:16 UTC 2010

Victor Vicente de Carvalho, 08.07.2010:
> In a way that I'll not feel like doing something crappy?
> I know that I could do this is checking for the file extension and do an
> if/else when creating the parser. This is the way to go or there is a
> better way?

1) add multiple mimetype definitions to .desktop file
2) in your language support, create a parsejob dependent on the mimetype
3) profit
Milian Wolff
mail at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the KDevelop-devel mailing list