Skip to content

Include the line end in spans of Messages and Terms #258

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

Merged

Conversation

stasm
Copy link
Contributor

@stasm stasm commented Jul 17, 2018

This is similar to the change made to Comments except here it doesn't
affect the values, just the spans.

The EBNF defines Message and Term as:

Message             ::= Comment? Identifier inline_space? "=" inline_space? ((Pattern Attribute*) | (Attribute+)) line_end
Term ::= Comment? TermIdentifier inline_space? "=" inline_space? Value Attribute* line_end

This is similar to the change made to Comments except here it doesn't
affect the values, just the spans.

The EBNF defines Message and Term as:

    Message             ::= Comment? Identifier inline_space? "=" inline_space? ((Pattern Attribute*) | (Attribute+)) line_end
    Term ::= Comment? TermIdentifier inline_space? "=" inline_space? Value Attribute* line_end
@stasm stasm requested a review from Pike July 17, 2018 17:14
@stasm stasm merged commit 12ee312 into projectfluent:feature/syntax-0.6 Jul 17, 2018
@stasm stasm deleted the include-lineend-all-entires branch July 17, 2018 17:38
stasm added a commit to projectfluent/python-fluent that referenced this pull request Jul 17, 2018
Port of projectfluent/fluent.js#258

This is similar to the change made to Comments except here it doesn't
affect the values, just the spans. The EBNF defines Message and Term as:

    Message ::= Comment? Identifier inline_space? "=" inline_space? ((Pattern Attribute*) | (Attribute+)) line_end
    Term ::= Comment? TermIdentifier inline_space? "=" inline_space? Value Attribute* line_end
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

Successfully merging this pull request may close these issues.

2 participants