Mercurial > vim
annotate runtime/syntax/procmail.vim @ 23810:8152b7daebad v8.2.2446
patch 8.2.2446: setting 'term' empty has different error if compiled with GUI
Commit: https://github.com/vim/vim/commit/5daa91162699e4f8b54f9d1caaaab2715038941c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 1 18:39:47 2021 +0100
patch 8.2.2446: setting 'term' empty has different error if compiled with GUI
Problem: Setting 'term' empty has different error if compiled with GUI.
Solution: Insert "else". (closes https://github.com/vim/vim/issues/7766)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Feb 2021 18:45:06 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Procmail definition file | |
3 " Maintainer: Melchior FRANZ <mfranz@aon.at> | |
4 " Last Change: 2003 Aug 14 | |
5 " Author: Sonia Heimann | |
6 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 syn match procmailComment "#.*$" contains=procmailTodo | |
13 syn keyword procmailTodo contained Todo TBD | |
14 | |
15 syn region procmailString start=+"+ skip=+\\"+ end=+"+ | |
16 syn region procmailString start=+'+ skip=+\\'+ end=+'+ | |
17 | |
18 syn region procmailVarDeclRegion start="^\s*[a-zA-Z0-9_]\+\s*="hs=e-1 skip=+\\$+ end=+$+ contains=procmailVar,procmailVarDecl,procmailString | |
19 syn match procmailVarDecl contained "^\s*[a-zA-Z0-9_]\+" | |
20 syn match procmailVar "$[a-zA-Z0-9_]\+" | |
21 | |
22 syn match procmailCondition contained "^\s*\*.*" | |
23 | |
24 syn match procmailActionFolder contained "^\s*[-_a-zA-Z0-9/]\+" | |
25 syn match procmailActionVariable contained "^\s*$[a-zA-Z_]\+" | |
26 syn region procmailActionForward start=+^\s*!+ skip=+\\$+ end=+$+ | |
27 syn region procmailActionPipe start=+^\s*|+ skip=+\\$+ end=+$+ | |
28 syn region procmailActionNested start=+^\s*{+ end=+^\s*}+ contains=procmailRecipe,procmailComment,procmailVarDeclRegion | |
29 | |
30 syn region procmailRecipe start=+^\s*:.*$+ end=+^\s*\($\|}\)+me=e-1 contains=procmailComment,procmailCondition,procmailActionFolder,procmailActionVariable,procmailActionForward,procmailActionPipe,procmailActionNested,procmailVarDeclRegion | |
31 | |
32 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
33 " Only when an item doesn't have highlighting yet |
7 | 34 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
35 hi def link procmailComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
36 hi def link procmailTodo Todo |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
37 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link procmailRecipe Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 "hi def link procmailCondition Statement |
7 | 40 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link procmailActionFolder procmailAction |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link procmailActionVariable procmailAction |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link procmailActionForward procmailAction |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link procmailActionPipe procmailAction |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link procmailAction Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link procmailVar Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
47 hi def link procmailVarDecl Identifier |
7 | 48 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
49 hi def link procmailString String |
7 | 50 |
51 | |
52 let b:current_syntax = "procmail" | |
53 | |
54 " vim: ts=8 |