Use \VHDL\ (etc.) instead of relying on \autoinsertnextspace.