all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode.
@ 2012-01-24  2:46 Matt Renaud
  2016-09-08 23:41 ` Alex
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Renaud @ 2012-01-24  2:46 UTC (permalink / raw
  To: 10590

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode.
  2012-01-24  2:46 bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode Matt Renaud
@ 2016-09-08 23:41 ` Alex
  0 siblings, 0 replies; 2+ messages in thread
From: Alex @ 2016-09-08 23:41 UTC (permalink / raw
  To: Matt Renaud; +Cc: 10590

close 10590 25.1
quit

Matt Renaud <mrenaud92@gmail.com> writes:

> 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;
> }

This appears to have been fixed in 25.1.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-08 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24  2:46 bug#10590: c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode Matt Renaud
2016-09-08 23:41 ` Alex

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.