Skip to content

Variants parsed as junk if closing brace not indented #66

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

Closed
spookylukey opened this issue May 14, 2018 · 1 comment
Closed

Variants parsed as junk if closing brace not indented #66

spookylukey opened this issue May 14, 2018 · 1 comment

Comments

@spookylukey
Copy link
Collaborator

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
Copy link
Contributor

Pike commented May 14, 2018

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.

@Pike Pike closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants