Closed unhammer closed 8 years ago
Most likely I'll be the one fixing this anyway, but if you've narrowed the bug down to sp-region-ok
then the issue should probably be opened against the smartparens repo.
I really appreciate the legwork you did prior to opening this issue. It's certainly a lot quicker to fix when the cause is known! :)
A haskell pragma looks like
{-# LANGUAGE ScopedTypeVariables #-}
and smartparens-haskell sets"{-#" "#-}"
as a pair in haskell-mode.But any evil-smartparens op on these gives "That would leave the buffer unbalanced", which seems to be because
sp-region-ok
(used by e.g.evil-sp--new-ending
) gives nil on these haskell pragmas.I see
sp-region-ok
is only used in one place by smartparens itself, and sp-kill-sexp in fact works fine here, whileevil-sp-delete
errors out here.