Allow %name to take an infix name as an argument.

Fixes #1191.
Merge pull request #1205 from david-christiansen/issue/1191

Allow %name to take an infix name as an argument.