> It seems the scan-sexps call in mic-paren-highlight fails to find the
> matching parenthesis which gives us the funny mismatch look.

Right.  The built-in blink-matching-open actually also bumps into
a problem, but just signals "Mismatched parenthesis", which is less
annoying but still incorrect.

>                    (condition-case ()
> -                      (setq opos (scan-sexps (point) mult))
> +                      (setq opos (let ((parse-sexp-ignore-comments nil))
> +                                   (scan-sexps (point) mult)))
>                      (error nil))))

But this leads to other bugs (try it with a comment like (* foo"bar *)
for example).

I think the only way to do it right begins by checking whether (1-
(point)) is within a comment.


        Stefan

_______________________________________________
gnu-emacs-sources mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to