annotate runtime/syntax/modconf.vim @ 27084:6fc63c6a7ee7 v8.2.4071

patch 8.2.4071: Vim9: no detection of return in try/endtry Commit: https://github.com/vim/vim/commit/53c296112edd8471eb63afbca03f96bad164c813 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 12 16:18:18 2022 +0000 patch 8.2.4071: Vim9: no detection of return in try/endtry Problem: Vim9: no detection of return in try/endtry. (Dominique Pell?) Solution: Check if any of the blocks inside try/endtry did not end in return.
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Jan 2022 17:30:07 +0100
parents 1218c5353e2b
children
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 syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
2 " Language: modules.conf(5) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
4 " Latest Revision: 2007-10-25
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 839
diff changeset
10 setlocal iskeyword+=-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
12 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
15 syn keyword modconfTodo FIXME TODO XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17 syn region modconfComment start='#' skip='\\$' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 \ contains=modconfTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 syn keyword modconfConditional if else elseif endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 syn keyword modconfPreProc alias define include keep prune
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 \ post-install post-remove pre-install
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
24 \ pre-remove persistdir blacklist
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 syn keyword modconfKeyword add above below install options probe probeall
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
27 \ remove
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
29 syn keyword modconfIdentifier depfile insmod_opt path generic_stringfile
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 \ pcimapfile isapnpmapfile usbmapfile
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 \ parportmapfile ieee1394mapfile pnpbiosmapfile
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 syn match modconfIdentifier 'path\[[^]]\+\]'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 hi def link modconfTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
35 hi def link modconfComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
36 hi def link modconfConditional Conditional
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 hi def link modconfPreProc PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
38 hi def link modconfKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 hi def link modconfIdentifier Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 let b:current_syntax = "modconf"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
43 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 unlet s:cpo_save