From 390360f97ac87ba8ff26bc14ac2cc2fb82b2c6f3 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 1 Jul 2025 09:53:49 +0100 Subject: [PATCH] Add doc comment --- src/parse/guess_language.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parse/guess_language.rs b/src/parse/guess_language.rs index d7a14af48..d714550bc 100644 --- a/src/parse/guess_language.rs +++ b/src/parse/guess_language.rs @@ -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, }