0
0
mirror of https://github.com/vim/vim.git synced 2025-10-24 08:54:47 -04:00

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

@@ -454,6 +454,7 @@ def s:GetFilenameChecks(): dict<list<string>>
lite: ['file.lite', 'file.lt'],
litestep: ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
livebook: ['file.livemd'],
log: ['file.log', 'file_log', 'file.LOG', 'file_LOG'],
logcheck: ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'],
loginaccess: ['/etc/login.access', 'any/etc/login.access'],
logindefs: ['/etc/login.defs', 'any/etc/login.defs'],