Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335702 - [c++0x] Template brackets matching doesn't work with adjacent closing angle brackets
Summary: [c++0x] Template brackets matching doesn't work with adjacent closing angle b...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 11:44 EST by Gil Barash CLA
Modified: 2011-01-31 06:23 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.