fix completion with @:enum (and other keywords in metadata) (close #2373)