Commit: patch 9.1.0188: filetype: no support for Vento files

6 views
Skip to first unread message

Christian Brabandt

unread,
Mar 19, 2024, 1:15:13 PM3/19/24
to vim...@googlegroups.com
patch 9.1.0188: filetype: no support for Vento files

Commit: https://github.com/vim/vim/commit/9f26e5a9bcedb3caef26e9d77849ea37a3626bbf
Author: wrapperup <wrapp...@gmail.com>
Date: Tue Mar 19 18:06:22 2024 +0100

patch 9.1.0188: filetype: no support for Vento files

Problem: Vento files are not recognized.
Solution: Recognize *.vto files as filetype "vento" (wrapperup)

Vento is a templating engine https://vento.js.org/

closes: #14229

Signed-off-by: wrapperup <wrapp...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index fd9ba2c69..0f8ac8b9f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2400,6 +2400,9 @@ au BufRead,BufNewFile *.vdmpp,*.vpp setf vdmpp
au BufRead,BufNewFile *.vdmrt setf vdmrt
au BufRead,BufNewFile *.vdmsl,*.vdm setf vdmsl

+" Vento
+au BufNewFile,BufRead *.vto setf vento
+
" Vera
au BufNewFile,BufRead *.vr,*.vri,*.vrh setf vera

diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index ed7e6b953..94f5812b5 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -779,6 +779,7 @@ def s:GetFilenameChecks(): dict<list<string>>
vdmpp: ['file.vpp', 'file.vdmpp'],
vdmrt: ['file.vdmrt'],
vdmsl: ['file.vdm', 'file.vdmsl'],
+ vento: ['file.vto'],
vera: ['file.vr', 'file.vri', 'file.vrh'],
verilogams: ['file.va', 'file.vams'],
vgrindefs: ['vgrindefs'],
diff --git a/src/version.c b/src/version.c
index ca4ca563e..db093a7e4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 188,
/**/
187,
/**/
Reply all
Reply to author
Forward
0 new messages