Skip to content

Commit

Permalink
Changes demonstrating the segfault for projectfluent#319
Browse files Browse the repository at this point in the history
  • Loading branch information
Pike committed Jan 7, 2021
1 parent 82be893 commit 8f911bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ let PatternElement = defer(() =>
block_placeable));

let inline_text = defer(() =>
repeat1(text_char)
repeat(text_char)
.map(join)
.chain(into(FTL.TextElement)));

Expand All @@ -174,12 +174,12 @@ let block_text = defer(() =>
let inline_placeable = defer(() =>
sequence(
string("{"),
maybe(blank),
not(blank),
either(
// Order matters!
SelectExpression,
InlineExpression),
maybe(blank),
not(blank),
string("}"))
.map(element_at(2))
.chain(into(FTL.Placeable)));
Expand Down

0 comments on commit 8f911bb

Please sign in to comment.