Mercurial > vim
annotate runtime/syntax/esmtprc.vim @ 19868:a2fa2fc0f403 v8.2.0490
patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'
Commit: https://github.com/vim/vim/commit/0afdcf8601792ee751984265b49fc2ca6f8ea858
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 1 18:29:10 2020 +0200
patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'
Problem: Win32: VTP doesn't respect 'restorescreen'.
Solution: Use escape codes to switch to alternate screen. (Nobuhiro
Takasaki, closes #5872)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Apr 2020 18:30:03 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
167 | 1 " Vim syntax file |
2 " Language: Esmtp setup file (based on esmtp 0.5.0) | |
3 " Maintainer: Kornel Kielczewski <kornel@gazeta.pl> | |
4 " Last Change: 16 Feb 2005 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4992
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4992
diff
changeset
|
7 if exists("b:current_syntax") |
167 | 8 finish |
9 endif | |
10 | |
11 "All options | |
4992 | 12 syntax keyword esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda |
167 | 13 |
14 "All keywords | |
4992 | 15 syntax keyword esmtprcIdentifier default enabled disabled required |
167 | 16 |
17 "We're trying to be smarer than /."*@.*/ :) | |
4992 | 18 syntax match esmtprcAddress /[a-z0-9_.-]*[a-z0-9]\+@[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+/ |
19 syntax match esmtprcFulladd /[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+:[0-9]\+/ | |
167 | 20 |
21 "String.. | |
4992 | 22 syntax region esmtprcString start=/"/ end=/"/ |
167 | 23 |
24 | |
4992 | 25 highlight link esmtprcOptions Label |
26 highlight link esmtprcString String | |
27 highlight link esmtprcAddress Type | |
28 highlight link esmtprcIdentifier Identifier | |
29 highlight link esmtprcFulladd Include | |
167 | 30 |
4992 | 31 let b:current_syntax = "esmtprc" |