The following gas was identified in the sun using spectroscopy:

Carbon

Nitrogen

Hydrogen

Helium