changeset 27445:31b0d8898489 v8.2.4251

patch 8.2.4251: vala files are not recognized Commit: https://github.com/vim/vim/commit/97c554d5149c2aa4a43d689c59563e77277265d4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 29 12:45:47 2022 +0000 patch 8.2.4251: vala files are not recognized Problem: Vala files are not recognized. Solution: Add the *.vala pattern. (closes https://github.com/vim/vim/issues/9654)
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Jan 2022 14:00:03 +0100
parents 75ad30234ddd
children d5dcb8d0cf5e
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2018,6 +2018,9 @@ au BufNewFile,BufRead */.init/*.conf,*/.
 au BufNewFile,BufRead */.config/upstart/*.conf		       setf upstart
 au BufNewFile,BufRead */.config/upstart/*.override	       setf upstart
 
+" Vala
+au BufNewFile,BufRead *.vala			setf vala
+
 " Vera
 au BufNewFile,BufRead *.vr,*.vri,*.vrh		setf vera
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -557,6 +557,7 @@ let s:filename_checks = {
     \ 'usserverlog': ['usserver.log', 'USSERVER.LOG', 'usserver.file.log', 'USSERVER.FILE.LOG', 'file.usserver.log', 'FILE.USSERVER.LOG'],
     \ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'],
     \ 'vb': ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'],
+    \ 'vala': ['file.vala'],
     \ 'vera': ['file.vr', 'file.vri', 'file.vrh'],
     \ 'verilog': ['file.v'],
     \ 'verilogams': ['file.va', 'file.vams'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4251,
+/**/
     4250,
 /**/
     4249,