projectfluent/python-fluent

Variants parsed as junk if closing brace not indented

spookylukey opened this issue · 1 comments

For example, the following message, taken from the JS test suite - https://github.com/projectfluent/fluent.js/blob/master/fluent/test/values_ref_test.js#L15

key2 = {
      [a] A2
     *[b] B2
}

This is parsed as 'Junk' by the Python parser. If you add a space before the closing brace, it is parsed properly. I'm assuming the JS version is correct.

Pike commented

The python parser is correct, though we're contemplating relaxing the indentation requirements in projectfluent/fluent#87.

Before we get there, we're currently working on the overall correctness of the spec, which has a few loopholes in the ebnf, too.