invalid_number

Diagnostic `nanook::template::invalid_number`

Summary

invalid number `{0}`

Help

numbers look like 42 or 3.14

Details

When this fires

The lexer found something that started like a number but couldn't be parsed as one. Usually a stray dot, leading sign in the wrong spot, or a hex/binary literal (not supported). Raised at parse time, so nanook check catches it.

What to check

Numbers in templates look like 42 or 3.14. No _ separators, no 0x..., no trailing dot.

broken: {{ x | round(2.) }}
broken: {{ items[1_000] }}
fixed:  {{ x | round(2) }}
fixed:  {{ items[1000] }}