Add event constructors to auto-complete and highlighting.