Skip to content

Grammar cannot read git trailers #41

@epage

Description

@epage

Compare

<footer>          ::= <token>, <separator>, <whitespace>*, <value>
/* "!" should be added to the AST as a <breaking-change> node with the value "!" */
<token>           ::= <breaking-change>
                   |  <type>, "(" <scope> ")", ["!"]
                   |  <type>, ["!"]
<separator>       ::= ":" | " #"
<value>           ::= <text>, <continuation>+
                   |  <text>
<continuation>    ::= <newline>, <whitespace>+, <text>

with https://git-scm.com/docs/git-interpret-trailers

  • "When reading trailers, there can be whitespaces after the token, the separator and the value"
  • "There can also be whitespaces inside the token and the value"
    • This one seems like it makes parsing trailers a lot harder and doesn't seem common

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions