conventional-commits / parser

reference implementation of conventionalcommits.org spec
ISC License
46 stars 7 forks source link

Grammar cannot read git trailers #41

Open epage opened 2 years ago

epage commented 2 years ago

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