emacs: Attributes highlighting fixes 

This addresses two problems noted in #14347: the incorrect highlight of `#foo]` as an attribute, and the incorrect non-highlight of `#[foo = "bar"]`.