Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes demonstrating the segfault for #319 #321

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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