Behat / Gherkin

Gherkin parser, written in PHP for Behat project
MIT License
1.05k stars 91 forks source link

Whitespace around language stops detection #206

Open ciaranmcnulty opened 3 years ago

ciaranmcnulty commented 3 years ago

We do things slightly differently to cucumber, removing this line will cause a failing test

https://github.com/Behat/Gherkin/blob/master/tests/Behat/Gherkin/Cucumber/CompatibilityTest.php#L36

stof commented 3 years ago

We have other issues regarding language IMO. AFAICT, the parser will parse them in other places than at the top of the file (or at least it tries to do it, as it is part of parseExpression)