Skip to content

Commit

Permalink
Capitalize Junk
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Nov 8, 2018
1 parent 09bac61 commit c054562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/fluent.ebnf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* An FTL file defines a Resource consisting of Entries. */
Resource ::= (Entry | blank_block | junk)*
Resource ::= (Entry | blank_block | Junk)*

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

/* Attributes of Messages and Terms. */
Expand Down
4 changes: 2 additions & 2 deletions syntax/grammar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let Resource = defer(() =>
either(
Entry,
blank_block,
junk))
Junk))
.chain(list_into(FTL.Resource)));

/* ------------------------------------------------------------------------- */
Expand Down Expand Up @@ -91,7 +91,7 @@ let CommentLine = defer(() =>
* be a beginning of a new message, term, or a comment. Any whitespace
* following a broken Entry is also considered part of Junk.
*/
let junk = defer(() =>
let Junk = defer(() =>
sequence(
junk_line,
repeat(
Expand Down

0 comments on commit c054562

Please sign in to comment.