diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-05-02 13:54:14 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-02 14:14:56 +0200 |
commit | ebf8237af8af794654c045f836e6caa479053c7b (patch) | |
tree | 065519de9d922174dfa5fc95f816fb8fceb8fec6 | |
parent | cb2a36bb5fce1ad105212a12ea71c1bbe76fdc7c (diff) | |
download | rneovim-ebf8237af8af794654c045f836e6caa479053c7b.tar.gz rneovim-ebf8237af8af794654c045f836e6caa479053c7b.tar.bz2 rneovim-ebf8237af8af794654c045f836e6caa479053c7b.zip |
vim-patch:9.1.0389: filetype: templ files are not recognized
Problem: filetype: templ files are not recognized
Solution: Detect '*.templ' files as filetype templ
(Tristan Knight)
See:
- https://github.com/a-h/templ
- https://templ.guide/
closes: vim/vim#14697
https://github.com/vim/vim/commit/54e79157c536c631b2f9b3dfefec30b9b966ed97
Co-authored-by: tris203 <admin@snappeh.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 77b3d29d01..e8d88ca309 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1039,6 +1039,7 @@ local extension = { tk = 'tcl', jacl = 'tcl', tl = 'teal', + templ = 'templ', tmpl = 'template', ti = 'terminfo', dtx = 'tex', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 893c5d382d..e1ca16b370 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -748,6 +748,7 @@ func s:GetFilenameChecks() abort \ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history', '.xsctcmdhistory', '.xsdbcmdhistory'], \ 'tablegen': ['file.td'], \ 'teal': ['file.tl'], + \ 'templ': ['file.templ'], \ 'template': ['file.tmpl'], \ 'teraterm': ['file.ttl'], \ 'terminfo': ['file.ti'], |