commit | 742593f450c34d60df38108f59168f488fd16f8a | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Wed Sep 30 15:06:59 2020 +0200 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Wed Sep 30 15:45:42 2020 +0000 |
tree | 2fedc0b4d937759cae998f303c4ff94679bf09ec | |
parent | 8ad07faa39592289efa8a55119e6c9f39c6cc65d [diff] [blame] |
internal/core/compile: fix hidden definition bug Fixes #533 Change-Id: Idcefbec32b3321401cf4449375cd194f5f86668f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7265 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/internal/core/adt/feature.go b/internal/core/adt/feature.go index bc2a32c..74926a6 100644 --- a/internal/core/adt/feature.go +++ b/internal/core/adt/feature.go
@@ -116,7 +116,7 @@ i := r.StringToIndex(s) t := StringLabel switch { - case strings.HasPrefix(s, "#_"): + case strings.HasPrefix(s, "_#"): t = HiddenDefinitionLabel case strings.HasPrefix(s, "#"): t = DefinitionLabel