Okay, first of all I want to say that I know I'm annoying and that I really appreciate the help you guys are giving me, I really do.So, to continue to annoy you with my petty problems. I am having an issue with my custom highlighter. I've been trying to solve this for the last 5 hours and I have no clue.
What I have:
- Set the Editor.BracketMatchColor to what I want.
- Set BrackethighlightStyle := sbhsBoth.
- Set Editor.Options := [eoBracketHighlight + morestuff].
- Pretty much clone TSynHighlighterAny.
What doesn't work:
The braces are highlighted only if the type of token inside and to the right of the braces is the same. For example with "(x)x" both parenthesis are underlined, because of the "x" in both places. With "(1)x" it doesn't work and only one parenthesis is underlined, because "x" is an identifier en "1" is a number. Yes, I kid you not.
Now, I don't expect you to be able to tell me what the problem is (at least you have some kind of crystal ball in which case, be my guest

), but does anybody have any idea about what should I look for? Maybe it happened to you in the past and you have some suggestions to troubleshoot this.
As I said, I more or less copied the way TSynHighlighterAny works, I can't seem to find any difference between HLAny and mine that could cause this... But obviously something is lurking in the dark corners of my code like a demonic gobbling from hell.
