annotate runtime/ftplugin/meson.vim @ 29247:5f314b2ed494 v8.2.5142

patch 8.2.5142: startup test fails if there is a status bar Commit: https://github.com/vim/vim/commit/fa04eae5a5b9394079bde2d37ce6f9f8a5567d48 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 21 14:38:40 2022 +0100 patch 8.2.5142: startup test fails if there is a status bar Problem: Startup test fails if there is a status bar at the top of the screen. (Ernie Rael) Solution: Use a larger vertical offset in the test.
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Jun 2022 18:45:07 +0200
parents babd9f1dbe12
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18456
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: meson
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " License: VIM License
24636
840665e74421 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18456
diff changeset
4 " Maintainer: Liam Beguin <liambeguin@gmail.com>
18456
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " Last Change: 2018 Nov 27
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 if exists("b:did_ftplugin") | finish | endif
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 let s:keepcpo= &cpo
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 set cpo&vim
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 setlocal commentstring=#\ %s
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 setlocal comments=:#
26100
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
15 setlocal formatoptions+=croql formatoptions-=t
18456
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16
26100
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
17 let b:undo_ftplugin = "setl com< cms< fo<"
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
18
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
19 if get(g:, "meson_recommended_style", 1)
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
20 setlocal expandtab
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
21 setlocal shiftwidth=2
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
22 setlocal softtabstop=2
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
23 let b:undo_ftplugin .= " | setl et< sts< sw<"
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
24 endif
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
25
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
26 if exists("loaded_matchit") && !exists("b:match_words")
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
27 let b:match_words = '\<if\>:\<elif\>:\<else\>:\<endif\>,' .
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
28 \ '\<foreach\>:\<break\>:\<continue\>:\<endforeach\>'
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
29 let b:undo_ftplugin .= " | unlet! b:match_words"
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
30 endif
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
31
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
32 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
33 let b:browsefilter = "Meson Build Files (meson.build)\tmeson.build\n" .
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
34 \ "All Files (*.*)\t*.*\n"
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
35 let b:undo_ftplugin .= " | unlet! b:browsefilter"
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 24636
diff changeset
36 endif
18456
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 let &cpo = s:keepcpo
6d11fc4aa683 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 unlet s:keepcpo