Where do braces close?

braces_closes_at(tex_line, position_of_opening_brace)

Arguments

tex_line

A single line.

position_of_opening_brace

An integer giving the position of the opening brace in question.

Value

The positions of the closing brace matching the opening braces at position_of_opening_brace.