Make hint matching more conservative

We don't want to match the middle of multi-line definitions.