Skip to content

Commit

Permalink
make spc eq spc
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Jul 24, 2024
1 parent 3a000c1 commit 2991d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/material/Walker.re
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ let step_all =
Memo.general(((src: End.t, from: Dir.t)) =>
switch (src) {
| Root => swing_all(Tile(Tile.NT.root), ~from)
// space takes prec over everything. could make it so that space eq space
// but this behavior is encoded in token zipping/merging instead of walks.
| Node(Space ()) => Index.single(Root, Walk.empty)
| Node(Space ()) =>
// space takes prec over everything and matches itself
Index.single(Root, Walk.empty) |> Index.add(Node(Space()), Walk.empty)
| Node(Grout((s, tips))) =>
switch (Dir.pick(Dir.toggle(from), tips)) {
| Conc =>
Expand Down

0 comments on commit 2991d87

Please sign in to comment.