annotate runtime/ftplugin/make.vim @ 25583:7d3c296a117f v8.2.3328

patch 8.2.3328: Coverity error for not checking return value Commit: https://github.com/vim/vim/commit/b85d3627d9a7b41d603c58a16d0ddbf6b88beeaf Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 11 15:54:59 2021 +0200 patch 8.2.3328: Coverity error for not checking return value Problem: Coverity error for not checking return value. Solution: Check value is not negative.
author Bram Moolenaar <Bram@vim.org>
date Wed, 11 Aug 2021 16:00:06 +0200
parents 5b7ea82bc18f
children 4027cefc2aab
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
22723
5b7ea82bc18f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16208
diff changeset
4 " Last Change: 2020 Oct 16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
22723
5b7ea82bc18f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16208
diff changeset
12 let b:undo_ftplugin = "setl et< sts< sw< fo< com< cms< inc<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Make sure a hard tab is used, required for most make programs
22723
5b7ea82bc18f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16208
diff changeset
15 setlocal noexpandtab softtabstop=0 shiftwidth=0
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".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 setlocal fo-=t fo+=croql
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 com=sO:#\ -,mO:#\ \ ,b:#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Set 'commentstring' to put the marker after a #.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 setlocal commentstring=#\ %s
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 7
diff changeset
26
410fa1a31baf updated for version 7.0023
vimboss
parents: 7
diff changeset
27 " Including files.
410fa1a31baf updated for version 7.0023
vimboss
parents: 7
diff changeset
28 let &l:include = '^\s*include'
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
29
16208
a23c883685cb Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4339
diff changeset
30 " For matchit.vim, suggested by Albert Netymk and Ken Takata.
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
31 if exists("loaded_matchit")
16208
a23c883685cb Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4339
diff changeset
32 let b:match_words = '^ *ifn\=\(eq\|def\)\>:^ *else\(\s\+ifn\=\(eq\|def\)\)\=\>:^ *endif\>,\<define\>:\<endef\>,^!\s*if\(n\=def\)\=\>:^!\s*else\(if\(n\=def\)\=\)\=\>:^!\s*endif\>'
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
33 endif