Skip to content

Commit 9c1721a

Browse files
committed
Fluent Syntax Spec 0.3
1 parent a9fb740 commit 9c1721a

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fluent-spec",
33
"description": "Specification and documentation for Fluent",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"private": true,
66
"homepage": "http://projectfluent.io",
77
"repository": {

spec/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
-
6+
7+
## 0.3.0
8+
59
- Added tags for language-specific grammatical information.
610

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

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

42+
Spans are `{ start, end }` productions. Annotations are `{ code, args,
43+
message, span }` productions.
44+
3845
- Allowed more characters in keys.
3946

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

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

57+
- Defined the behavior of backslash escapes as follows:
58+
59+
- Escape sequences are only allowed in `text` and `quoted-text`.
60+
61+
- Newlines are preserved by the parser. This allows proper serialization.
62+
63+
- Known escape sequences are: `\\` for the literal backslash, `\"` for the
64+
literal double quote, `\{` for the literal opening brace and `\u`
65+
followed by 4 hex digits for Unicode code points. Representing code
66+
points from outside of the Basic Multilingual Plane is made possible with
67+
surrogate pairs (two `\uXXXX` sequences). Using the actual character is
68+
encouraged, however.
69+
70+
- Any other escaped characters result in a parsing error.
71+
5072
- Changed the sigil for comments to `//`.
5173
- Renamed `SelectExpression`'s `expr` field to `expression`.
5274
- Renamed `Junk`'s and `Comment`s `body` fields to `content`.

0 commit comments

Comments
 (0)