Subject: bug#8943: octave mode: "mismatched parentheses" warning on multiline comments

From: Stefan Monnier <[email-masked]>
Date: Mon, 04 Jul 2011 16:20:23 -0400

tags 8943 wontfix
thanks

> When using multiline comments in octave mode, there is a "mismatched
> parentheses" warning issued to the mini-buffer when closing the comment.
> For example, the warning appears on the final "}" in the following code:

> %{
> blah blah blah 
> %}

> There doesn't seem to be any problems with indentation.  Also, I see the same
> result for both "#{" and "%{"

Indeed, that's a bug.  A related bug that can be seen in all programming
modes is that if you type something like

     // some comment (and some
     // side note).

the final ) will not be matched to the opening (.  It will either raise
a "mismatched parenthesis" warning or will be matched to some
unrelated open parenthesis.

Your case is slightly different since the paren is actually part
of the comment-marker rather than being inside the comment, but the
problem has basically the same origin.

I don't expect we'll fix this problem any time soon, tho.

        Stefan