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

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • 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.