I have taken your SimpleStructureMatcher sample and added functionality to detect XML start/end tags and highlight them both when either is clicked.
I want the entire start tag to be highlighted - including the attributes, etc. But when you click outside of the tag part (i.e. XmlTokenId.StartTagStartDelimiter, XmlTokenId.StartTagName), I'd like the Match method to rerun so that I can turn off the highlighting.
Unfortunately, the StructureMatcher does not re-run the Match method if you click anywhere within an existing StructureMatchResult range. Is there a way I can circumvent that check and force it to always run?