cucumber/gherkin — pull request #212 by rwestgeest (2012-11-11 19:51:40+00:00)
Title: Bom before language spec

Hi Aslak,

I added the test and fix for [issue:211](:https://github.com/cucumber/gherkin/issues/211) including my test. I needed some time, because i am no encoding expert.

I *think* that a similar problem might occur when the BOM is in the line with en encoding specification. However i wouldn't know how to deal with a file that has an utf-8 bom in and a # encoding: iSo-8859-1 encoding specification, so i stopped there.

Also I have not changed the behaviour of the java lexer, although it found it odd that the java parser should not behave like encoding.

If there's anything else I can do, or if you'd like me to change my pull request, please let me know.

Cheers

Rob