From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 05372138334 for ; Tue, 14 Aug 2018 13:55:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18709E08BE; Tue, 14 Aug 2018 13:55:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EAFC7E08BE for ; Tue, 14 Aug 2018 13:55:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD4B4335CA6 for ; Tue, 14 Aug 2018 13:55:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C01037A for ; Tue, 14 Aug 2018 13:55:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1534254918.55406362c11d3178bb0a1c3774d770059fb4a90a.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: syntax/glep.vim X-VCS-Directories: syntax/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 55406362c11d3178bb0a1c3774d770059fb4a90a X-VCS-Branch: master Date: Tue, 14 Aug 2018 13:55:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b44b6b91-72b2-4bc9-8aa4-1a2ffcb9a606 X-Archives-Hash: d2c529b48bf0a26e1646b894e15d33fd commit: 55406362c11d3178bb0a1c3774d770059fb4a90a Author: Michał Górny gentoo org> AuthorDate: Fri Sep 15 13:02:00 2017 +0000 Commit: Michał Górny gentoo 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