Skip to content

Commit 09c634d

Browse files
committed
Capitalize Junk
1 parent 1413023 commit 09c634d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/fluent.ebnf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
22
/* An FTL file defines a Resource consisting of Entries. */
3-
Resource ::= (Entry | blank_block | junk)*
3+
Resource ::= (Entry | blank_block | Junk)*
44

55
/* Entries are the main building blocks of Fluent. They define translations and
66
* contextual and semantic information about the translations. During the AST
@@ -24,7 +24,7 @@ CommentLine ::= ("###" | "##" | "#") ("\u0020" /.*/)? line_end
2424
* be a beginning of a new message, term, or a comment. Any whitespace
2525
* following a broken Entry is also considered part of Junk.
2626
*/
27-
junk ::= junk_line (junk_line - "#" - "-" - [a-zA-Z])*
27+
Junk ::= junk_line (junk_line - "#" - "-" - [a-zA-Z])*
2828
junk_line ::= /[^\n]*/ ("\u000A" | EOF)
2929

3030
/* Attributes of Messages and Terms. */

syntax/grammar.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let Resource = defer(() =>
1616
either(
1717
Entry,
1818
blank_block,
19-
junk))
19+
Junk))
2020
.chain(list_into(FTL.Resource)));
2121

2222
/* ------------------------------------------------------------------------- */
@@ -91,7 +91,7 @@ let CommentLine = defer(() =>
9191
* be a beginning of a new message, term, or a comment. Any whitespace
9292
* following a broken Entry is also considered part of Junk.
9393
*/
94-
let junk = defer(() =>
94+
let Junk = defer(() =>
9595
sequence(
9696
junk_line,
9797
repeat(

0 commit comments

Comments
 (0)