annotate runtime/ftplugin/cs.vim @ 32892:d5f7716fadde v9.0.1755

patch 9.0.1755: CI still fails with sodium mlock error Commit: https://github.com/vim/vim/commit/25dec33c9bd286eacd1767ce2f5324117132b33a Author: Christian Brabandt <cb@256bit.org> Date: Sat Aug 19 22:15:44 2023 +0200 patch 9.0.1755: CI still fails with sodium mlock error Problem: CI still fails with sodium mlock error Solution: catch mlock failure Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2023 22:30:03 +0200
parents 15c80d8bc515
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
2 " Language: C#
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
3 " Maintainer: Nick Jensen <nickspoon@gmail.com>
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
4 " Former Maintainer: Johannes Zellner <johannes@zellner.org>
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
5 " Last Change: 2022-11-16
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
6 " License: Vim (see :h license)
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
7 " Repository: https://github.com/nickspoons/vim-cs
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
9 if exists('b:did_ftplugin')
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
12 let b:did_ftplugin = 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
14 let s:save_cpo = &cpoptions
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
15 set cpoptions&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " and insert the comment leader when hitting <CR> or using "o".
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
19 setlocal formatoptions-=t formatoptions+=croql
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Set 'comments' to format dashed lists in comments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
24 let b:undo_ftplugin = 'setl com< fo<'
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
25
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
26 if exists('loaded_matchit') && !exists('b:match_words')
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
27 " #if/#endif support included by default
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
28 let b:match_ignorecase = 0
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
29 let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,'
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
30 let b:undo_ftplugin .= ' | unlet! b:match_ignorecase b:match_words'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3526
dd6c2497c997 Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents: 233
diff changeset
32
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
33 if (has('gui_win32') || has('gui_gtk')) && !exists('b:browsefilter')
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
34 let b:browsefilter = "C# Source Files (*.cs *.csx)\t*.cs;*.csx\n" .
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
35 \ "C# Project Files (*.csproj)\t*.csproj\n" .
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
36 \ "Visual Studio Solution Files (*.sln)\t*.sln\n" .
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
37 \ "All Files (*.*)\t*.*\n"
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
38 let b:undo_ftplugin .= ' | unlet! b:browsefilter'
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
39 endif
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
40
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
41 let &cpoptions = s:save_cpo
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
42 unlet s:save_cpo
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
43
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
44 " vim:et:sw=2:sts=2