all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Renaud <mrenaud92@gmail.com>
To: 10590@debbugs.gnu.org
Subject: bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode.
Date: Mon, 23 Jan 2012 21:46:01 -0500	[thread overview]
Message-ID: <CACxDEQG1BdVx-BiiFZtr+RHKqtGd6K9hmnbmr+TmCx1pLx_dig@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

*Emacs Version: *24.0.92.2

When writing C++ code with nested templates, putting two (or more) closing
angle braces together causes the font-lock, show-paren-mode and indentation
to break.  Positioning point on any of the closing parentheses fails to
show the matching opening brace which makes template meta-programs
difficult to read.  Any nested templates will cause this.  The following is
a simple example showing the 2 cases:


template <typename T = std::vector<int>>
  struct foo    // Indentation broken here...
  {
  };


int main()
{
  std::vector<std::vector<int>> vv_int; // Font-lock broken here...

  return 0;
}

[-- Attachment #2: Type: text/html, Size: 760 bytes --]

             reply	other threads:[~2012-01-24  2:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24  2:46 Matt Renaud [this message]
2016-09-08 23:41 ` bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode Alex

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=CACxDEQG1BdVx-BiiFZtr+RHKqtGd6K9hmnbmr+TmCx1pLx_dig@mail.gmail.com \
    --to=mrenaud92@gmail.com \
    --cc=10590@debbugs.gnu.org \
    /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.