Posted 19 years ago
by tobias weltner
I am experimenting with MatchingBracketToken but can't really get it to work.
What I need to do is while parsing backwards, whenever I encounter a closing bracket I want to move on to the corresponding opening bracket, thus ignoring the arguments inbetween.
It seems as if BracketHighlighting assumes its positioning information from caret position instead of some provided argument. If that's right, would I then really need to reposition the caret? Seems odd...
Of course I could manually keep a stack of opening and closing brackets but since there seems to be some form of bracket synch included, I'd love to be able to use it.
What I need to do is while parsing backwards, whenever I encounter a closing bracket I want to move on to the corresponding opening bracket, thus ignoring the arguments inbetween.
It seems as if BracketHighlighting assumes its positioning information from caret position instead of some provided argument. If that's right, would I then really need to reposition the caret? Seems odd...
Of course I could manually keep a stack of opening and closing brackets but since there seems to be some form of bracket synch included, I'd love to be able to use it.