I want to create an extension for VS2012 that provides better Typescript highlighting. Basically, I want to port all of the regexes from Sublime Text 2 to VS2012. The good news is that I've already done this, the bad news is I have an issue.
My issue is that the regexes highlight ALL of the code, including comments and strings. This is obviously a bit annoying and hard to read. Ive been trying to figure out how to apply my coloring before Visual Studio coloring, but I can't seem to figure it out. None of the combinations of the Order attribute on the IClassifierProvider classes seem to work.
I know that I could fix the highlighting if I could also color strings, numbers and comments, but I'm only given a span of code at a time, not the whole file, so that makes it impossible to detect certain multi-line literals/comments.
I started with the Editor Classifier starter project and added all of my colorings from there. How exactly do I prevent comments and literals from being highlighted? Or better yet, how do I apply my colorizationsbefore the Visual Studio default ones?