You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can't blindly create an ast.Ident with such a name, as that then
refers to the "top" identifier in CUE, which cannot be used as a label:
foo: cannot use _ as label:
We hadn't noticed this with other keys which need quoting such as "a-b"
because sticking the unquoted string in ast.Ident.Name caused cue/format
to quote the identifier correctly. It does not do this for "_" as it is
a valid identifier - it just represents top, and not a literal string.
Fixes#3350.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: If0f2c2fd6c0d984a7c6c30e4667ab8ed097aa17b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198819
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments