Author Topic: B5: incorrect brace matching  (Read 2047 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
B5: incorrect brace matching
« on: September 24, 2014, 08:51:16 PM »
Given this code:

 
std:string hello("hello"); thing<void(std::string)>(hello); 

Place the cursor on "<"
Run find-matching-paren (Ctrl+])
The cursor is now on the ">"
Run find-matching-paren (Ctrl+]) again.
The cursor is now on "(" instead of back to "<"

Add a space
thing<void(std::string) >(hello);
and slick will now match it correctly.




Also, Slick doesn't match nesting < > quite right. Given:



 
vector<vector<vector<int>>>

Slick won't match any of the < > braces.
Add spaces:

 
vector<vector<vector<int> > >

and now it will.