Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bareword support #292

Closed

Conversation

oyvindronningstad
Copy link
Collaborator

Including some refactoring of the regex matching.

Fixes #171

…es_regex

The label regex was broken, this fixes it. Also, adds ':' to the key matching.
This allows getting rid of the secondary key matching using all_types_regex.

Only the union matching ('/') needs all_type_regex, but it really only
needs the ones that match ranges, i.e. quotes and brackets. Refactor so it
only uses this.

Signed-off-by: Øyvind Rønningstad <[email protected]>
Allow text keys in maps to be specified with the same syntax as labels,
i.e.
my_map = {
   text_key: value
}

Add a test.

Signed-off-by: Øyvind Rønningstad <[email protected]>
@oyvindronningstad
Copy link
Collaborator Author

Closing since it doesn't fix all issues with map keys. Will reconsider how I want to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support CDDL bareword member key syntax for maps
1 participant