normalizeUnterminatedOpeners
Scans source for opener delimiters that lack a matching closer and rewrites each unmatched opener's leading { to \ so the lexer sees a well-formed escape (\{{) instead of entering an EXPR mode it cannot leave. Returns the unmodified source if every opener is matched.
Return
the normalized string, or source unchanged if every opener is matched.
Parameters
source
the raw template string to normalize.