commit | 3b17f6ac913c24d4c0da53f4d16f678b00006c67 | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Thu Jan 16 16:13:04 2020 +0100 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Thu Jan 16 17:51:11 2020 +0000 |
tree | bd408d1c8cabeeedb001a91053ed23c059f082d3 | |
parent | 78c24c56a403677dfbff59559ae615cad6f5214a [diff] |
cmd/cue/cmd: err on space-separated syntax It is still supported, but only to accomodate cue fmt. Change-Id: Iac26d28b58ebbe87275ea531ba1d712dceda2edf Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4723 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/cmd/cue/cmd/common.go b/cmd/cue/cmd/common.go index 6590a04..8429b6d 100644 --- a/cmd/cue/cmd/common.go +++ b/cmd/cue/cmd/common.go
@@ -36,7 +36,8 @@ // Disallow // - block comments // - old-style field comprehensions -const syntaxVersion = -1000 + 12 +// - space separator syntax +const syntaxVersion = -1000 + 13 var defaultConfig = &load.Config{ Context: build.NewContext(
diff --git a/cmd/cue/cmd/testdata/script/vet.txt b/cmd/cue/cmd/testdata/script/vet.txt index 68e3664..493934c 100644 --- a/cmd/cue/cmd/testdata/script/vet.txt +++ b/cmd/cue/cmd/testdata/script/vet.txt
@@ -13,7 +13,7 @@ idx: a[str] // should resolve to top-level `a` str: string } -b a b: 4 +b: a: b: 4 a: { b: 3 c: 4