Browse Source

Fix comments in lists

pull/19/head
Fredrik Ekre 1 year ago
parent
commit
4bc7c0de3f
No known key found for this signature in database
GPG Key ID: DE82E6D5E364C0A2
  1. 4
      src/runestone.jl

4
src/runestone.jl

@ -236,7 +236,9 @@ function spaces_around_x(ctx::Context, node::Node, is_x::F, n_leaves_per_x::Int
accept_node!(ctx, kid) accept_node!(ctx, kid)
looking_for_whitespace = kind(last_leaf(kid)) !== K"Whitespace" looking_for_whitespace = kind(last_leaf(kid)) !== K"Whitespace"
# TODO: Duplicated with the branch below. # TODO: Duplicated with the branch below.
if looking_for_x if kind(kid) === K"Comment"
# Keep the state
elseif looking_for_x
@assert is_x(kid)::Bool @assert is_x(kid)::Bool
n_x_leaves_visited += 1 n_x_leaves_visited += 1
if n_x_leaves_visited == n_leaves_per_x if n_x_leaves_visited == n_leaves_per_x

Loading…
Cancel
Save