Input: add guarding parentheses to macros