BaseWriter.getAnchorFromName: use the last parenthetical instead of the first

Otherwise, links to "() (parentheses)" point to `.html` instead of `parentheses.html`.

This can be seen in the current version of the reference here: http://processing.org/reference/curlybraces.html.