8000 ABNF: comments · Issue #11 · katef/kgt · GitHub
[go: up one dir, main page]

Skip to content

ABNF: comments #11

Open
Open

Description

@mnot

ABNF allows comments using ; as a delimiter to signal a comment to the end of the line.

This seems to be supported inline in a rule; e.g., this works:

foorule = bar  ; this is a comment
        / baz

but if the comment is on the last line of a rule, it will fail; e.g., either of these forms:

foorule = bar ; this is a comment

foorule = bar ; this is a comment
        / baz ; more commenting

Activity

  1. katef commented on Jan 19, 2019

    @katef
    Owner

    This is because $sep isn't being produced for the double newline, because the comment zone swallows its newline character. I think it'd be best to try to reimplement the whitespace handling, and hopefully get rid of the need for a double newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0