Open rgemulla opened 7 years ago
Something like this should theoretically work
(defun sp-check-parens ()
(interactive)
(goto-char (point-min))
(while (sp-forward-sexp))
(sp-skip-forward-to-symbol))
unless there are of course bugs in the parser (there are some issues in comments... which we should probably eagerly skip instead of trying to walk them).
Yes, that's a already helpful!
It seems to move overly aggressively, though: Nested mismatched parens are not found, e.g., it will accept (})
.
It would be great if smartparen could provide the functionality of Emacs
check-paren
command (which is unware of the paren pairs defined by smartparen).