else if( d && ( (d <= b && d <= s) || (!b && !s) ) smallest = d
Consider this piece of code of C++. Can we have bracket matching (highlighting opening bracket when cursor on closing bracket & vice versa)?
set brackets ""')>]}"
set matchbrackets "(<[{)>]}"
Update ~/.nanorc (or perhaps /etc/nanorc) with these lines and it works like a charm.
When on any bracket press Meta] (often this will be Alt]) and there you go to the other paired bracket.