aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-03-06 22:50:41 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-03-07 00:07:08 +0100
commite46f07b1d2942c7b5c08fca9a4cac735ee2c0c71 (patch)
tree4a182c200872a70867685357b4c978f147147751 /runtime
parent7371abf7554ebbcdb66bde3c892954596c497ff4 (diff)
downloadrneovim-e46f07b1d2942c7b5c08fca9a4cac735ee2c0c71.tar.gz
rneovim-e46f07b1d2942c7b5c08fca9a4cac735ee2c0c71.tar.bz2
rneovim-e46f07b1d2942c7b5c08fca9a4cac735ee2c0c71.zip
vim-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: vim/vim#16806 https://github.com/vim/vim/commit/5daaf2326800ff0683a5be9a7f475667a4fc09db Co-authored-by: MuntasirSZN <muntasir.joypurhat@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ftplugin/tera.vim13
-rw-r--r--runtime/lua/vim/filetype.lua1
2 files changed, 14 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',