semantic-lex-unterminated-syntax-protection

semantic-lex-unterminated-syntax-protection is a Lisp macro in `lex.el'.

(semantic-lex-unterminated-syntax-protection SYNTAX &rest FORMS)

For SYNTAX, execute FORMS with protection for unterminated syntax.
If FORMS throws an error, treat this as a syntax problem, and
execute the unterminated syntax code. FORMS should return a position.
Irregardless of an error, the cursor should be moved to the end of
the desired syntax, and a position returned.
If `debug-on-error' is set, errors are not caught, so that you can
debug them.
Avoid using a large FORMS since it is duplicated.