Commit: patch 9.1.1606: filetype: a few more files are not recognized

1 view
Skip to first unread message

Christian Brabandt

unread,
Aug 8, 2025, 7:30:13 AM8/8/25
to vim...@googlegroups.com
patch 9.1.1606: filetype: a few more files are not recognized

Commit: https://github.com/vim/vim/commit/eb2aebeb7982168ece3888c9c0b08fc46f9d4d15
Author: lacygoill <lacy...@lacygoill.me>
Date: Fri Aug 8 13:17:57 2025 +0200

patch 9.1.1606: filetype: a few more files are not recognized

Problem: filetype: a few more files are not recognized
Solution: guess Mail, Info and Terminfo files by its content
(lacygoill)

closes: #17880

Signed-off-by: lacygoill <lacy...@lacygoill.me>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim
index c184bd032..8781391a5 100644
--- a/runtime/autoload/dist/script.vim
+++ b/runtime/autoload/dist/script.vim
@@ -264,6 +264,7 @@ def DetectFromText(line1: string)

# ELM Mail files
elseif line1 =~ '^From \([a-zA-Z][a-zA-Z_0-9\.=-]*\(@[^ ]*\)\=\|-\) .* \(19\|20\)\d\d$'
+ || line1 =~ '^
Reply all
Reply to author
Forward
0 new messages