This commit is contained in:
Maxim Mossienko
2005-02-08 22:07:12 +03:00
parent 36e22c430b
commit c5e251cd25
@@ -243,7 +243,7 @@ public class BraceMatchingUtil {
}
public IElementType getTokenType(char ch, HighlighterIterator iterator) {
final IElementType tokenType = iterator.getTokenType();
final IElementType tokenType = (!iterator.atEnd())?iterator.getTokenType():null;
if(tokenType instanceof IJavaElementType) {
if (ch == '}') return JavaTokenType.RBRACE;