Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335702

Summary: [c++0x] Template brackets matching doesn't work with adjacent closing angle brackets
Product: [Tools] CDT Reporter: Gil Barash <scobido1984>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, scobido1984
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gil Barash CLA 2011-01-28 11:44:57 EST
Build Identifier: I20100805-1700 ; CDT 8

In the expression:
list<list<int>> a;
When putting the cursor on the '>' which is adjacent to the 'int' then the matching '<' is marked.
However, when putting the cursor on one of the other '>' (the one closer to "a") then the matching '<' isn't marked.

Reproducible: Always

Steps to Reproduce:
1. Write: list<list<int>> a; 
2. Put the cursor on the second '>'
3. Nothing is marked
Comment 1 Anton Leherbauer CLA 2011-01-31 04:24:53 EST
(In reply to comment #0)
> list<list<int>> a;

This syntax is only valid with C++0x.  Inserting a space between the closing angle brackets makes the bracket matcher work.
Comment 2 Anton Leherbauer CLA 2011-01-31 05:55:00 EST
Improved heuristics in HEAD.