In systematic nomenclature, the suffix -carbonitrile is used to name compounds RC≡N where the suffix includes the carbon atom of the –CN. However, carbonitrile is not a class name for nitriles.
PAC, 1995, 67, 1307 (Glossary of class names of organic compounds and reactivity intermediates based on structure (IUPAC Recommendations 1995)) on page 1325