all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: fork <forkandwait@gmail.com>
Cc: 8943@debbugs.gnu.org
Subject: bug#8943: octave mode: "mismatched parentheses" warning on multiline comments
Date: Mon, 04 Jul 2011 16:20:23 -0400	[thread overview]
Message-ID: <jwvhb714xg5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <loom.20110627T190116-296@post.gmane.org> (fork's message of "Mon, 27 Jun 2011 17:05:10 +0000 (UTC)")

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





      reply	other threads:[~2011-07-04 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 17:05 bug#8943: octave mode: "mismatched parentheses" warning on multiline comments fork
2011-07-04 20:20 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvhb714xg5.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=8943@debbugs.gnu.org \
    --cc=forkandwait@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.