From efa1a55dc7bee05e67da8830732bf9b70f3a3b19 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 10:29:18 +0100 Subject: Add meson support --- ftdetect/polyglot.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3e6aa32a..279dce62 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -683,6 +683,14 @@ au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,i augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 + augroup filetypedetect + " meson, from meson.vim in mesonbuild/meson:_ALL:/data/syntax-highlighting/vim/ +au BufNewFile,BufRead meson.build set filetype=meson +au BufNewFile,BufRead meson_options.txt set filetype=meson + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1 augroup filetypedetect " moonscript, from moon.vim in leafo/moonscript-vim -- cgit v1.2.3