Commit: patch 9.1.2100: filetype: tiltfiles are not recognized

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 20, 2026, 2:46:22 PM (yesterday) Jan 20
to vim...@googlegroups.com
patch 9.1.2100: filetype: tiltfiles are not recognized

Commit: https://github.com/vim/vim/commit/ff0e5d994ca4b533f3c9c43a7a154276b0fa08fb
Author: Luis Davim <luis....@gmail.com>
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 <luis....@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

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 <Br...@vim.org>

# 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 <Br...@vim.org>

" 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,
/**/
Reply all
Reply to author
Forward
0 new messages