]> granicus.if.org Git - vim/commitdiff
patch 8.2.4251: vala files are not recognized v8.2.4251
authorBram Moolenaar <Bram@vim.org>
Sat, 29 Jan 2022 12:45:47 +0000 (12:45 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 29 Jan 2022 12:45:47 +0000 (12:45 +0000)
Problem:    Vala files are not recognized.
Solution:   Add the *.vala pattern. (closes #9654)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 9847c62c2c2eeabd792b81776616dabc4cb806ab..c74054ce15d7e2c44a4c82db006e7c80fc314845 100644 (file)
@@ -2018,6 +2018,9 @@ au BufNewFile,BufRead */.init/*.conf,*/.init/*.override          setf upstart
 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
 
index 34c90205f8f3bf9e7238ad86ff3027c4877f121a..714d6f59cb303d7f5ea81c8c56c6e3d03de78a3d 100644 (file)
@@ -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'],
index 0657a150b9a363722f89a4943ca90b6b36dae2c9..84300baa7a8fdd65bb994f6c57551b8c433489ed 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4251,
 /**/
     4250,
 /**/