all: rename fallback keyword to otherwise
Add the `otherwise` keyword as the canonical form
of the comprehension fallback clause. The legacy
`fallback` keyword remains accepted by the parser
for backward compatibility. The formatter rewrites
`fallback` to `otherwise` on format.
Changes:
- cue/token: add OTHERWISE token alongside FALLBACK
- cue/parser: accept both `fallback` and `otherwise`;
update error messages to reference `otherwise`
- cue/format: emit `otherwise` (not `fallback`)
- internal/astinternal: use `otherwise` in debug str
- doc/ref/spec: update grammar and examples
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I7b0c649e425a73a02729e581bc737822f4340f17
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1234954
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>