Open Pitometsu opened 5 years ago
where {id|
is begin and |id}
is end of the expression.
I don't think this is currently easily possible. We could write some code for {}
pair to check if there is id|
and |id
at the inner borders of the sexp and adjust the returned structure.
Looks like smartparents in general not very compatible with OCaml mode, even comments like
(** Comment. *)
it ignoring.
Another cases to check are some "ppx" expressions:
[@@deriving protocol ~driver:(module Jsonm)]
[%of_sexp: t]
It does not detected as parenthesis by smartparens.