cue: allow and enforce parens for single postfix alias
Allow ~(X) as an alternative to ~X for the
single postfix alias form. The formatter now
always outputs the parenthesized form ~(X),
making it consistent with the dual form ~(K,V).
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I191ebcc4faaf9ebf90059ecdc1525624737a3790
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1236300
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>