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

Allow comments on group entries #41

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Allow comments on group entries #41

merged 1 commit into from
Nov 22, 2024

Conversation

nc6
Copy link
Collaborator

@nc6 nc6 commented Nov 22, 2024

This addresses part of #36 - comments are still not supported everywhere, but they are allowed on group entries, which represent the area (other than top-level rules) where comments are the most useful.

The same "comment" syntax is used as with top-level rules.

Note that this does not (yet) work within groups - that will be addressed as part of #32.

As yet, the parser still does not deal with comments, or attribute them to any entity. The tests are likewise oblivious to comments. But this does allow Huddle to define comments and have them reflected in the generated CDDL, which was the principal outcome.

This addresses part of #36 - comments are still not supported
_everywhere_, but they are allowed on group entries, which represent the
area (other than top-level rules) where comments are the most useful.

The same "comment" syntax is used as with top-level rules.

Note that this does not (yet) work within groups - that will be
addressed as part of #32.

As yet, the parser still does not deal with comments, or attribute them
to any entity. The tests are likewise oblivious to comments. But this
does allow Huddle to define comments and have them reflected in the
generated CDDL, which was the principal outcome.
@nc6 nc6 requested a review from Soupstraw November 22, 2024 11:03
@nc6 nc6 merged commit 2c62cdb into master Nov 22, 2024
4 checks passed
@nc6 nc6 deleted the nc/comments branch November 22, 2024 15:37
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.

1 participant