syntax: improve message for misused inner attributes