Skip to content

Commit

Permalink
fix #86 #87
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Nov 10, 2024
1 parent b4ed95d commit a1237ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/parser/Molder.re
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,19 @@ let rec mold =
|> Option.map(((grouted, stack)) => (tok, grouted, stack))
)
) {
| Some((tok, grouted, _stack) as molded) =>
| Some((tok, grouted, stack) as molded) =>
// remove empty ghost connected via neq-relation
// P.log("--- Molder.mold/success");
// P.show("tok", Token.show(tok));
// P.show("grouted", Grouted.show(grouted));
// P.show("stack", Stack.show(stack));
Mtrl.is_tile(tok.mtrl) && tok.text == "" && Grouted.is_neq(grouted)
Mtrl.is_tile(tok.mtrl)
&& Token.is_empty(tok)
&& (
Grouted.is_neq(grouted)
|| Option.is_some(Grouted.is_eq(grouted))
&& stack.slope == []
)
? Error(Cell.mark_degrouted(fill, ~side=R)) : Ok(molded)
| None =>
let deferred = Token.Unmolded.defer(t);
Expand Down

0 comments on commit a1237ed

Please sign in to comment.