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


  • Senior Community Member
  • Posts: 2450
  • Hero Points: 203
  • 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:


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

vector<vector<vector<int> > >

and now it will.