codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: meson3" License: VIM License4" Maintainer: Liam Beguin <liambeguin@gmail.com>5" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>6" Last Change: 2018 Nov 277" 2024 Jan 14 by Vim Project (browsefilter)8 9if exists("b:did_ftplugin") | finish | endif10let b:did_ftplugin = 111let s:keepcpo= &cpo12set cpo&vim13 14setlocal commentstring=#\ %s15setlocal comments=:#16setlocal formatoptions+=croql formatoptions-=t17 18let b:undo_ftplugin = "setl com< cms< fo<"19 20if get(g:, "meson_recommended_style", 1)21 setlocal expandtab22 setlocal shiftwidth=223 setlocal softtabstop=224 let b:undo_ftplugin .= " | setl et< sts< sw<"25endif26 27if exists("loaded_matchit") && !exists("b:match_words")28 let b:match_words = '\<if\>:\<elif\>:\<else\>:\<endif\>,' .29 \ '\<foreach\>:\<break\>:\<continue\>:\<endforeach\>'30 let b:undo_ftplugin .= " | unlet! b:match_words"31endif32 33if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")34 let b:browsefilter = "Meson Build Files (meson.build)\tmeson.build\n"35 if has("win32")36 let b:browsefilter .= "All Files (*.*)\t*\n"37 else38 let b:browsefilter .= "All Files (*)\t*\n"39 endif40 let b:undo_ftplugin .= " | unlet! b:browsefilter"41endif42 43let &cpo = s:keepcpo44unlet s:keepcpo45 