changeset 33448:a8158a496896 v9.0.1978

patch 9.0.1978: No filetype detection for just files Commit: https://github.com/vim/vim/commit/3d90f71b764e67b1eb12fc6a9a4b9e2fca6dc087 Author: dundargoc <gocdundar@gmail.com> Date: Wed Oct 4 19:52:54 2023 +0200 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 <cb@256bit.org> Co-authored-by: dundargoc <gocdundar@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Wed, 04 Oct 2023 20:00:08 +0200
parents 528ec090214b
children 02a7312b9b02
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1093,6 +1093,9 @@ au BufNewFile,BufRead *.jsonnet,*.libson
 " Julia
 au BufNewFile,BufRead *.jl			setf julia
 
+" Just
+autocmd BufNewFile,BufRead *[jJ]ustfile,.justfile,*.just setfiletype just
+
 " KDL
 au BufNewFile,BufRead *.kdl			setf kdl
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -350,6 +350,7 @@ def s:GetFilenameChecks(): dict<list<str
     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'],
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1978,
+/**/
     1977,
 /**/
     1976,