unterminated_string

Diagnostic `nanook::template::unterminated_string`

Summary

unterminated string literal

Help

close the string with a matching " or '

Details

When this fires

A " or ' opened a string literal inside an expression and the lexer hit end-of-input (or end of the block) without seeing the matching quote. Parse-time, caught by nanook check.

What to check

There are no escape sequences in template strings. Mix quote styles to embed one inside the other: "don't" or 'say "hi"'.

broken: {{ name | default("n/a) }}
fixed:  {{ name | default("n/a") }}
broken: {{ "it's fine }}
fixed:  {{ "it's fine" }}