]> granicus.if.org Git - vim/commitdiff
patch 8.1.2175: meson files are not recognized v8.1.2175
authorBram Moolenaar <Bram@vim.org>
Fri, 18 Oct 2019 20:09:34 +0000 (22:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 18 Oct 2019 20:09:34 +0000 (22:09 +0200)
Problem:    Meson files are not recognized.
Solution:   Add the meson filetype. (Liam Beguin , Nirbheek Chauhan,
            closes #5056)  Also recognize hollywood.

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

index 9af37ad2a8c2e0989e429a3830fcfdff004f9dd2..a27dc419535f392539d2ede78487fb4b7ed5b9ab 100644 (file)
@@ -979,6 +979,9 @@ au BufNewFile,BufRead hg-editor-*.txt               setf hgcommit
 " Mercurial config (looks like generic config file)
 au BufNewFile,BufRead *.hgrc,*hgrc             setf cfg
 
+" Meson Build system config
+au BufNewFile,BufRead meson.build,meson_options.txt setf meson
+
 " Messages (logs mostly)
 au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages
 
index 19fd19a9acc2a3a85e3aac6995f845141712e89e..736dc79ebf4eff8373d9e25447fa6b2468ce490d 100644 (file)
@@ -201,6 +201,7 @@ let s:filename_checks = {
     \ 'hex': ['file.hex', 'file.h32'],
     \ 'hgcommit': ['hg-editor-file.txt'],
     \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'],
+    \ 'hollywood': ['file.hws'],
     \ 'hostconf': ['/etc/host.conf'],
     \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny'],
     \ 'template': ['file.tmpl'],
@@ -274,6 +275,7 @@ let s:filename_checks = {
     \ 'mason': ['file.mason', 'file.mhtml', 'file.comp'],
     \ 'master': ['file.mas', 'file.master'],
     \ 'mel': ['file.mel'],
+    \ 'meson': ['meson.build', 'meson_options.txt'],
     \ 'messages': ['/log/auth', '/log/cron', '/log/daemon', '/log/debug', '/log/kern', '/log/lpr', '/log/mail', '/log/messages', '/log/news/news', '/log/syslog', '/log/user',
     \     '/log/auth.log', '/log/cron.log', '/log/daemon.log', '/log/debug.log', '/log/kern.log', '/log/lpr.log', '/log/mail.log', '/log/messages.log', '/log/news/news.log', '/log/syslog.log', '/log/user.log',
     \     '/log/auth.err', '/log/cron.err', '/log/daemon.err', '/log/debug.err', '/log/kern.err', '/log/lpr.err', '/log/mail.err', '/log/messages.err', '/log/news/news.err', '/log/syslog.err', '/log/user.err',
index e2e213e9f34821dc709cb89482f46f74cc30e97a..e371d68dbf8e458eba1ca7d14c7e3b49ef36c019 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2175,
 /**/
     2174,
 /**/