]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1978: No filetype detection for just files v9.0.1978
authordundargoc <gocdundar@gmail.com>
Wed, 4 Oct 2023 17:52:54 +0000 (19:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 4 Oct 2023 17:52:54 +0000 (19:52 +0200)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 9bf84e29f9c3401c97bf50e0e40727e70a12c658..f3049636f45f9c21db0a51bc6e14013d859b74c3 100644 (file)
@@ -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
 
index d9fd919d021ff3b62a6f92d3ce4c45a138963d87..25710116b03605f29b64a922155e0dabf8fc16b8 100644 (file)
@@ -350,6 +350,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index 4d037b4721cbed839d758205c0179e2d66767eab..2c99b23849f554c6e02edaa0f73b91500ef306a6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1978,
 /**/
     1977,
 /**/