I'm using the child language possibilites extensively, mainly for the HTML language. I use dynamic, langdef based languages, but for most of the supported languages in my application, I have a language class, which inherits from SyntaxLanguage and then loads the langdef as well as registering various services.
Now, my problem is that while this works just fine for all tha main languages, my classes are not used for child languages. Here's an example of where that is a problem: For SQL, I would like to add keywords and functions in runtime from a datafile. I simply do it in my SqlSyntaxLanguage class and it works very well, but only when SQL is the primary language. When I use it as a child language, the class is not used and therefore my keywords and functions are not added.
I'm not sure if there's already a solution to this, or if you're working on one, but in my head, it might be as simple as an event on the SyntaxEditor that allows me to instantiate my own class whenever SyntaxEditor tries to use a child language - would something like that be possible? There are many situations where I could see the above being a problem, so I hope you can help me :)