mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.1177: filetype: tera files not detected
Problem: filetype: tera files not detected Solution: detect '*.tera' files as tera filetype, include a simple filetype plugin (MuntasirSZN) closes: #16806 Signed-off-by: MuntasirSZN <muntasir.joypurhat@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ec6e82af04
commit
5daaf23268
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -295,6 +295,7 @@ runtime/ftplugin/systemverilog.vim @Kocha
|
|||||||
runtime/ftplugin/swig.vim @jmarrec
|
runtime/ftplugin/swig.vim @jmarrec
|
||||||
runtime/ftplugin/tap.vim @petdance
|
runtime/ftplugin/tap.vim @petdance
|
||||||
runtime/ftplugin/tcsh.vim @dkearns
|
runtime/ftplugin/tcsh.vim @dkearns
|
||||||
|
runtime/ftplugin/tera.vim @MuntasirSZN
|
||||||
runtime/ftplugin/terraform.vim @JannoTjarks
|
runtime/ftplugin/terraform.vim @JannoTjarks
|
||||||
runtime/ftplugin/tf.vim @ribru17
|
runtime/ftplugin/tf.vim @ribru17
|
||||||
runtime/ftplugin/thrift.vim @jiangyinzuo
|
runtime/ftplugin/thrift.vim @jiangyinzuo
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2025 Mar 05
|
" Last Change: 2025 Mar 06
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
@ -2604,6 +2604,9 @@ au BufRead,BufNewFile *.ttl
|
|||||||
" Terminfo
|
" Terminfo
|
||||||
au BufNewFile,BufRead *.ti setf terminfo
|
au BufNewFile,BufRead *.ti setf terminfo
|
||||||
|
|
||||||
|
" Tera
|
||||||
|
au BufRead,BufNewFile *.tera setf tera
|
||||||
|
|
||||||
" Terraform variables
|
" Terraform variables
|
||||||
au BufRead,BufNewFile *.tfvars setf terraform-vars
|
au BufRead,BufNewFile *.tfvars setf terraform-vars
|
||||||
|
|
||||||
|
13
runtime/ftplugin/tera.vim
Normal file
13
runtime/ftplugin/tera.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin file
|
||||||
|
" Language: Tera
|
||||||
|
" Maintainer: Muntasir Mahmud <muntasir.joypurhat@gmail.com>
|
||||||
|
" Last Change: 2025 Mar 06
|
||||||
|
|
||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setlocal commentstring={#\ %s\ #}
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "setlocal commentstring<"
|
@ -804,6 +804,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
teal: ['file.tl'],
|
teal: ['file.tl'],
|
||||||
templ: ['file.templ'],
|
templ: ['file.templ'],
|
||||||
template: ['file.tmpl'],
|
template: ['file.tmpl'],
|
||||||
|
tera: ['file.tera'],
|
||||||
teraterm: ['file.ttl'],
|
teraterm: ['file.ttl'],
|
||||||
terminfo: ['file.ti'],
|
terminfo: ['file.ti'],
|
||||||
'terraform-vars': ['file.tfvars'],
|
'terraform-vars': ['file.tfvars'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1177,
|
||||||
/**/
|
/**/
|
||||||
1176,
|
1176,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user