annotate runtime/syntax/sendpr.vim @ 31543:0c0ecf489f05 v9.0.1104

patch 9.0.1104: invalid memory access when checking function argument types Commit: https://github.com/vim/vim/commit/56310d38d8e866085108c7b77b756f4373d5122a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 27 17:25:05 2022 +0000 patch 9.0.1104: invalid memory access when checking function argument types Problem: Invalid memory access when checking function argument types. Solution: Do not check beyond the number of arguments. (closes https://github.com/vim/vim/issues/11755)
author Bram Moolenaar <Bram@vim.org>
date Tue, 27 Dec 2022 18:30:06 +0100
parents 1e9e9d89f0ee
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: FreeBSD send-pr file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net>
29193
1e9e9d89f0ee Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
4 " Last Change: 2022 Jun 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " http://raisdorf.net/files/misc/send-pr.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
8 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
9 if exists("b:current_syntax")
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
13 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match sendprComment /^SEND-PR:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " email address
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " ^> lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match sendprString /^>[a-zA-Z\-]*:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region sendprLabel start="\[" end="\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match sendprString /^To:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match sendprString /^From:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match sendprString /^Reply-To:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match sendprString /^Cc:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match sendprString /^X-send-pr-version:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match sendprString /^X-GNATS-Notify:/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 hi def link sendprComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 hi def link sendprType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 hi def link sendprString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 hi def link sendprLabel Label
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
33
29193
1e9e9d89f0ee Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
34 let b:current_syntax = 'sendpr'
1e9e9d89f0ee Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10048
diff changeset
35
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
36 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
37 unlet s:cpo_save