annotate runtime/syntax/gitsendemail.vim @ 20538:9f921ba86d05 v8.2.0823

patch 8.2.0823: Vim9: script reload test is disabled Commit: https://github.com/vim/vim/commit/25e0f5863e9010a75a1ff0d04e8f886403968755 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 25 22:36:50 2020 +0200 patch 8.2.0823: Vim9: script reload test is disabled Problem: Vim9: script reload test is disabled. Solution: Compile a function in the context of the script where it was defined. Set execution stack for compiled function. Add a test that an error is reported for the right file/function.
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 May 2020 22:45:03 +0200
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1622
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: git send-email message
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Tim Pope
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
4 " Filenames: .gitsendemail.*
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
5 " Last Change: 2016 Aug 29
1622
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
6
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1622
diff changeset
8 finish
1622
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
9 endif
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
10
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
11 runtime! syntax/mail.vim
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
12 unlet! b:current_syntax
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
13 syn include @gitsendemailDiff syntax/diff.vim
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
14 syn region gitsendemailDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^-- %/ fold contains=@gitsendemailDiff
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2202
diff changeset
15
1622
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
16 syn case match
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
17
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
18 syn match gitsendemailComment "\%^From.*#.*"
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
19 syn match gitsendemailComment "^GIT:.*"
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
20
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
21 hi def link gitsendemailComment Comment
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
22
149d8b46404c updated for version 7.2a
vimboss
parents:
diff changeset
23 let b:current_syntax = "gitsendemail"