Get the character position of the complement of "{", "[", "("
$brace_pos = $scintilla->get_current_pos(); $char = $scintilla->get_char_at($brace_pos); if (($char == '{') or ($char == '}')) // or... $other_pos = $scintilla->brace_match($brace_pos);