unterminated_expr

Diagnostic `nanook::template::unterminated_expr`

Summary

unterminated `{{{{` block

Help

close the expression with }}}}

Details

When this fires

A {{ opened an expression that never got its matching }}. Common when copy-pasting templates across editors that helpfully strip trailing braces, or when a string literal inside the expression itself was unterminated and ate the close. Parse-time, caught by nanook check.

What to check

If the span points far from where you expected, look for an unterminated string inside that ran past the intended close.

broken: alert: {{ trigger.value
fixed:  alert: {{ trigger.value }}

For complex bodies, prefer multi-line TOML strings so the {{ and }} line up visually:

body = """
value: {{ trigger.value | round(2) }}
"""