What are BraceMatcher's braceChars for?

When I create BraceMatcher I must set leftBraceChar and rightBraceChar, but it seems to me that they're ignored, or I'm doing something wrong. I mean that if you want to match kind'a $ construction braces you write
new BracePair('{', MyTokenTypes.OPEN_BRACE, '}', MyTokenTypes.CLOSE_BRACE, false), and get '$' and '}' highlited, instead of '{' and '}' respectively. More than that, if you for example put any char instead of '}' , the '}' will be highlighted anyway.
So, what are these leftBraceChar and rightBraceChar for?

Please sign in to leave a comment.