unterminated_string

Diagnostic `nanook::expr::unterminated_string`

Summary

unterminated string literal

Help

close the string with a matching " or '

Details

When this fires

The lexer opened a string literal with " or ' and reached the end of input without finding the matching closer. The label points at the opening quote.

What to check

For TOML configs, watch for nested escaping: \" inside a "..." string.

# broken
expr = "host.name is \"web"
# fixed
expr = "host.name is \"web\""

Caught by nanook check while lexing.