patch 9.1.2100: filetype: tiltfiles are not recognized

Commit: 
https://github.com/vim/vim/commit/ff0e5d994ca4b533f3c9c43a7a154276b0fa08fb
Author: Luis Davim <[email protected]>
Date:   Tue Jan 20 19:40:35 2026 +0000

    patch 9.1.2100: filetype: tiltfiles are not recognized
    
    Problem:  filetype: tiltfiles are not recognized
    Solution: Detect Tiltfiles.* and *.tiltfiles as tiltfile  filetype.
              (Luis Davim)
    
    Reference:
    - https://docs.tilt.dev/api.html
    
    fixes:  #19214
    closes: #19218
    
    Signed-off-by: Luis Davim <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 3f3fe971a..0d3b1e7eb 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
 # Vim functions for file type detection
 #
 # Maintainer:          The Vim Project <https://github.com/vim/vim>
-# Last Change:         2026 Jan 11
+# Last Change:         2026 Jan 20
 # Former Maintainer:   Bram Moolenaar <[email protected]>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -3033,6 +3033,9 @@ const ft_from_ext = {
   "blp": "blueprint",
   # Blueprint build system file
   "bp": "bp",
+  # Tiltfile
+  "Tiltfile": "tiltfile",
+  "tiltfile": "tiltfile"
 }
 # Key: file name (the final path component, excluding the drive and root)
 # Value: filetype
@@ -3319,6 +3322,9 @@ const ft_from_name = {
   # TF (TinyFugue) mud client
   ".tfrc": "tf",
   "tfrc": "tf",
+  # Tilefile
+  "Tiltfile": "tiltfile",
+  "tiltfile": "tiltfile",
   # Trustees
   "trustees.conf": "trustees",
   # Vagrant (uses Ruby syntax)
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index da5340a32..bfdf46e1a 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:          The Vim Project <https://github.com/vim/vim>
-" Last Change:         2026 Jan 11
+" Last Change:         2026 Jan 20
 " Former Maintainer:   Bram Moolenaar <[email protected]>
 
 " If the filetype can be detected from extension or file name(the final path 
component),
@@ -1548,6 +1548,9 @@ au BufNewFile,BufRead .tcshrc*    call 
dist#ft#SetFileTypeShell("tcsh")
 " csh scripts ending in a star
 au BufNewFile,BufRead .login*,.cshrc*  call dist#ft#CSH()
 
+" Tiltfile
+au BufNewFile,BufRead Tiltfile.*       call s:StarSetf('tiltfile')
+
 " tmux configuration with arbitrary extension
 au BufNewFile,BufRead {.,}tmux*.conf*          call s:StarSetf('tmux')
 
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 625a4f90a..a082b4fb9 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -888,6 +888,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     tidy: ['.tidyrc', 'tidyrc', 'tidy.conf'],
     tiger: ['file.tig'],
     tilde: ['file.t.html'],
+    tiltfile: ['Tiltfile', 'tiltfile', 'file.Tiltfile', 'file.tiltfile', 
'Tiltfile.debian'],
     tla: ['file.tla'],
     tli: ['file.tli'],
     tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 
'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
diff --git a/src/version.c b/src/version.c
index 71388c23e..61720c936 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2100,
 /**/
     2099,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1viHey-005I7q-Us%40256bit.org.

Raspunde prin e-mail lui