pub fn major_mode_id_for_lang(lang: Lang) -> Option<ModeId>Expand description
Resolve a Lang to its corresponding major-mode id.
Lang::Plain returns None because text-mode (the
fallback) is owned by lattice-mode; the caller falls
through to that when the lookup misses.