diff options
-rw-r--r-- | runtime/ftplugin/tera.vim | 13 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/runtime/ftplugin/tera.vim b/runtime/ftplugin/tera.vim new file mode 100644 index 0000000000..47636f29fa --- /dev/null +++ b/runtime/ftplugin/tera.vim @@ -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<" diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 930e2142e7..2c058bc6bf 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1207,6 +1207,7 @@ local extension = { tl = 'teal', templ = 'templ', tmpl = 'template', + tera = 'tera', ti = 'terminfo', dtx = 'tex', ltx = 'tex', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 798a214769..590a460f3c 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -801,6 +801,7 @@ func s:GetFilenameChecks() abort \ 'teal': ['file.tl'], \ 'templ': ['file.templ'], \ 'template': ['file.tmpl'], + \ 'tera': ['file.tera'], \ 'teraterm': ['file.ttl'], \ 'terminfo': ['file.ti'], \ 'terraform-vars': ['file.tfvars'], |