You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixprojectfluent#12, projectfluent#17, projectfluent#18.
With this change, the entire body of a message needs to indented. This makes
error recovery very easy: finding the next message definition is as simple as
finding the next identifier with no indentation.
It also opens up a number of opportunities: we can remove the `|` syntax for
multiline blocks of text and allow line breaks inside of placeables safely.
The PR also allows the value to be defined on a new line, making the
following examples equivalent:
lipsum = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
pellentesque congue metus, non mattis sem faucibus sit amet.
lipsum
= Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
pellentesque congue metus, non mattis sem faucibus sit amet.
I hope this will help when attributes are present:
lipsum
= Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi
pellentesque congue metus, non mattis sem faucibus sit amet.
.attr = Attribute
Lastly, quoted patterns are only available inside of placeables and cannot be
used directly as values.
The exact semantics of \ escapes will be defined in projectfluent#22.
0 commit comments