bool NonCommentBraceCheck(int pos)
{
char ch = scintilla.GetCharAt(pos);
int sty = scintilla.GetStyleAt(pos);
if (sty == 10 && "[](){}".IndexOf(ch) != -1)
{
int other = scintilla.BraceMatch(pos, 10);
if (other == -1)
{
scintilla.BraceBadLight(pos);
}
else
{
scintilla.BraceHighlight(pos, other);
}
return true;
}
return false;
}