annotate runtime/ftplugin/meson.vim @ 31237:5bdf73161e65 v9.0.0952

patch 9.0.0952: Eclipse preference files are not recognized Commit: https://github.com/vim/vim/commit/f3f198b6349fe252b72975701e2f17d932b19c70 Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Nov 26 13:03:20 2022 +0000 patch 9.0.0952: Eclipse preference files are not recognized Problem: Eclipse preference files are not recognized. Solution: Add a pattern to use "jproperties" for Eclipse preference files. (closes #11618)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Nov 2022 14:15:04 +0100
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