parser: a mode must end at a word boundary

A single-letter mode was stolen from the middle of a longer word, so `gen testG r
now` mis-parsed as name=r, mode=n (the 'n' of 'now'), leaving 'ow' dangling and
failing with a trailing-input error. Require a non-alphanumeric after a mode so 'now'
parses as the date it is. Adds a regression test.
This commit is contained in:
Oleksandr Kozachuk
2026-06-09 23:24:57 +02:00
parent 0dd173f113
commit 05613813de
2 changed files with 22 additions and 1 deletions
Binary file not shown.