mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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.davim@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
284f8669e6
commit
ff0e5d994c
Vendored
+7
-1
@@ -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 <Bram@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)
|
||||
|
||||
@@ -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 <Bram@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')
|
||||
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2100,
|
||||
/**/
|
||||
2099,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user