-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
[cucumber/gherkin] - comments in feature description cause a parse error #19
Comments
Yes, this seem to be disallowed by the grammar. I don't know whether this was intentional though.
|
Whether it was intentional I think it's clearly wrong - I don't know how to fix it though? ;) |
@ciaranmcnulty Are commented lines allowed before the Feature? It is sometimes important to add comments to tags; if those tags precede 'Feature' then comments should be allowed there as well. (And lines that are neither comments nor tags should probably raise a parser error.) If comments are not allowed before 'Feature', I think that should be addressed at the same time as this issue. |
Duplicate of #16? |
Summary
It looks like comments in any part of the feature description are currently disallowed:
Current Behavior
The text line that comprises the feature description is not allowed to follow the
comment 1
so a parse error is thrown. Thecomment 2
is allowed because it's followed by an Example, so if onlycomment 1
is removed the file parses correctly.Context & Motivation
I'm generally looking at where comments are allowed by the parser for behat compatibility and this came up
Your Environment
The text was updated successfully, but these errors were encountered: