]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0188: filetype: no support for Vento files v9.1.0188
authorwrapperup <wrapperup4@gmail.com>
Tue, 19 Mar 2024 17:06:22 +0000 (18:06 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 19 Mar 2024 17:09:13 +0000 (18:09 +0100)
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 <wrapperup4@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index fd9ba2c696d2e14ac5357fcc29347c7893e592eb..0f8ac8b9fda9f146df953aa4e5a0f6c2a2b2a058 100644 (file)
@@ -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
 
index ed7e6b9530ca693dd5e7282ec9ea66e924da2914..94f5812b52270ae0ae3e92f28eeef2d4f8ecb26b 100644 (file)
@@ -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'],
index ca4ca563ee5b4838892de63626636b75fad5bb76..db093a7e410d86d55f1f8fe0b1f02a95d25b623f 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    188,
 /**/
     187,
 /**/