Made closing parenthesis optional in \t if immediately followed by a } or end-of-line.