Skip to content

Commit

Permalink
Fluent Syntax Spec 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Aug 4, 2017
1 parent a9fb740 commit 9c1721a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fluent-spec",
"description": "Specification and documentation for Fluent",
"version": "0.2.0",
"version": "0.3.0",
"private": true,
"homepage": "http://projectfluent.io",
"repository": {
Expand Down
22 changes: 22 additions & 0 deletions spec/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

-

## 0.3.0

- Added tags for language-specific grammatical information.

Tags are binary values attached to messages. They are language-specific and
Expand Down Expand Up @@ -35,6 +39,9 @@

- Added `annotations` and `span` to all `entry` types.

Spans are `{ start, end }` productions. Annotations are `{ code, args,
message, span }` productions.

- Allowed more characters in keys.

Variant keys are now trimmed from both sides.
Expand All @@ -47,6 +54,21 @@

`Keyword` is now called `Symbol` in ASDL.

- Defined the behavior of backslash escapes as follows:

- Escape sequences are only allowed in `text` and `quoted-text`.

- Newlines are preserved by the parser. This allows proper serialization.

- Known escape sequences are: `\\` for the literal backslash, `\"` for the
literal double quote, `\{` for the literal opening brace and `\u`
followed by 4 hex digits for Unicode code points. Representing code
points from outside of the Basic Multilingual Plane is made possible with
surrogate pairs (two `\uXXXX` sequences). Using the actual character is
encouraged, however.

- Any other escaped characters result in a parsing error.

- Changed the sigil for comments to `//`.
- Renamed `SelectExpression`'s `expr` field to `expression`.
- Renamed `Junk`'s and `Comment`s `body` fields to `content`.
Expand Down

0 comments on commit 9c1721a

Please sign in to comment.