syntax: parse inner attributes on impls.

Fixes #3614.