A resist composition comprising a base polymer and a sulfonium salt of brominated indole or brominated indazole carboxylic acid offers a high sensitivity, minimal LWR and improved CDU independent of whether it is of positive or negative tone.