Skip to content

Commit efdd2c6

Browse files
authored
Require = after the identifier in message definitions. (#72)
1 parent 66c8a2e commit efdd2c6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

spec/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737

3838
The `comment` field on the `Resource` node was removed.
3939

40-
- Renamed `Symbol` to `VariantName` in the ASDL.
40+
- Require `=` after the identifier in message definitions. (#63)
4141

42+
- Renamed `Symbol` to `VariantName` in the ASDL.
4243

4344
## 0.4.0 (November 14, 2017)
4445

spec/fluent.ebnf

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ variant ::= __ '[' _? variant-key _? ']' pattern
3636
default-variant ::= __ '*[' _? variant-key _? ']' pattern
3737
variant-list ::= variant* default-variant variant* line-break
3838

39-
attribute ::= __ '.' identifier value
40-
41-
message ::= identifier (value attribute* | attribute+)
42-
term ::= term-identifier value attribute*
43-
44-
value ::= _? '=' pattern
39+
message ::= identifier _? '=' (pattern attribute* | attribute+)
40+
term ::= term-identifier _? '=' pattern attribute*
41+
attribute ::= __ '.' identifier _? '=' pattern
4542
pattern ::= (text | placeable)+
4643

4744
/* \ and { must be escaped */

0 commit comments

Comments
 (0)