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

Milian Wolff mail at milianw.de
Thu Jul 8 21:55:04 UTC 2010


Milian Wolff, 08.07.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

PS: you can also create multiple lang support plugins if you want to, and 
still link to the same libs in them to share code
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- 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: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100708/8eb9abaf/attachment.sig>


More information about the KDevelop-devel mailing list