This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: allow omitting leading "#" for LookupDef
This is mostly to smooth the transition to #-style definitions. Case in point: the internal filetypes package was upgraded and to new-style definitions (included in this CL). The conversion was automatic, but the code now requires a leading `#` prefix for definitions. This change allows using `cue fix` without breaking code. Note that now a field name can never be a valid definition name if it does not start with `#`. Change-Id: Id69a9601e8d244c27a0855f454b730ce9baf6b9f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6240 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
4 changed files
with
32 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.