patch 9.1.1755: filetype: generic log files are not recognized

Problem:  filetype: generic log files are not recognized
Solution: Detect *.log files as log filetype, include simple log syntax
          script (Mao-Yining).

closes: #18285

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Mao-Yining
2025-09-14 03:59:34 -04:00
committed by Christian Brabandt
parent 450d59145e
commit b8970b43cd
5 changed files with 168 additions and 4 deletions

View File

@ -3410,6 +3410,9 @@ au BufNewFile,BufRead *.blp setf blueprint
" Blueprint build system file
au BufNewFile,BufRead *.bp setf bp
" Generic log file
au BufNewFile,BufRead *.log,*_log,*.LOG,*_LOG setf log
" Use the filetype detect plugins. They may overrule any of the previously
" detected filetypes.
runtime! ftdetect/*.vim