Add doc comment

pull/856/head
Wilfred Hughes 2025-07-01 09:53:49 +07:00
parent e6fc867755
commit 390360f97a
1 changed files with 6 additions and 0 deletions

@ -84,9 +84,15 @@ pub(crate) enum Language {
Zig,
}
/// Users can explicitly request to treat a certain file glob pattern
/// as a specific languages, rather than using the normal language
/// detection logic.
#[derive(Debug, Clone, Copy, PartialEq)]
pub(crate) enum LanguageOverride {
/// Treat the file as this language regardless of what language
/// detection thinks.
Language(Language),
/// Treat this file as plain text.
PlainText,
}