invalid_duration_unit

Diagnostic `nanook::expr::invalid_duration_unit`

Summary

invalid duration unit `{0}`

Help

durations use s (seconds), m (minutes), h (hours), d (days)

Details

When this fires

A numeric duration was followed by a unit the lexer doesn't recognise. Supported suffixes are s (seconds), m (minutes), h (hours), and d (days). Anything else (like ms, us, w, y) trips this.

What to check

Compound durations chain supported units: 1h30m, 2d12h. Sub-second precision isn't part of the rule DSL by design.

# broken
for = "500ms"
# fixed
for = "1s"

Caught by nanook check.