From: dundargoc Date: Wed, 4 Oct 2023 17:52:54 +0000 (+0200) Subject: patch 9.0.1978: No filetype detection for just files X-Git-Tag: v9.0.1978^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d90f71b764e67b1eb12fc6a9a4b9e2fca6dc087;p=thirdparty%2Fvim.git patch 9.0.1978: No filetype detection for just files Problem: No filetype detection for just files Solution: Detect just files (*.just, justfile, etc) closes: #13271 Signed-off-by: Christian Brabandt Co-authored-by: dundargoc --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9bf84e29f9..f3049636f4 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1093,6 +1093,9 @@ au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet " Julia au BufNewFile,BufRead *.jl setf julia +" Just +autocmd BufNewFile,BufRead *[jJ]ustfile,.justfile,*.just setfiletype just + " KDL au BufNewFile,BufRead *.kdl setf kdl diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d9fd919d02..25710116b0 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -350,6 +350,7 @@ def s:GetFilenameChecks(): dict> jsonnet: ['file.jsonnet', 'file.libsonnet'], jsp: ['file.jsp'], julia: ['file.jl'], + just: ['justfile', 'Justfile', '.justfile', 'config.just'], kconfig: ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], kdl: ['file.kdl'], kivy: ['file.kv'], diff --git a/src/version.c b/src/version.c index 4d037b4721..2c99b23849 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1978, /**/ 1977, /**/