commit: 55406362c11d3178bb0a1c3774d770059fb4a90a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Sep 15 13:02:00 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Aug 14 13:55:18 2018 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=55406362
syntax/glep: Handle header continuations correctly RFC 2822 headers are continued on the next line if it starts with whitespace. Update the syntax highlighting to handle that correctly. Closes: https://github.com/gentoo/gentoo-syntax/pull/15 syntax/glep.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/glep.vim b/syntax/glep.vim index cb2b1e7..ba652e4 100644 --- a/syntax/glep.vim +++ b/syntax/glep.vim @@ -34,7 +34,7 @@ syn region glepFoldH4 start=/^\S.\+\n'\{2,\}$/ end=/\(\n\n\S.\+\n[-=']\{2,\}\)\@ " Headers at the top of a GLEP syn region glepHeaders start=/\%^\(.*:\)\@=/ end=/^$/ contains=glepHeaderKey syn region glepHeaderKey contained start=/^[A-Za-z0-9]/ end=/:/ nextgroup=glepHeaderValue skipwhite -syn region glepHeaderValue contained start=/\S/ end=/$/ contains=glepHeaderEmail,glepHeaderCVSVar +syn region glepHeaderValue contained start=/\S/ end=/^\S\|^$/me=e-1 contains=glepHeaderEmail,glepHeaderCVSVar syn match glepHeaderEmail contained /<[-a-zA-Z0-9\_\.]\+@[-a-zA-Z0-9\_\.]\+>/ syn region glepHeaderCVSVar contained start=/\$\S\+:/ end=/\$/ syn keyword glepTODO TODO FIXME
