From 1f9fef4cdffa63f49d0133910df0c5f527cb43f3 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 15 Sep 2017 14:56:21 +0200 Subject: syntax/glep: Support --- around the preamble --- syntax/glep.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/glep.vim b/syntax/glep.vim index ba652e4..f1ca81c 100644 --- a/syntax/glep.vim +++ b/syntax/glep.vim @@ -33,6 +33,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 glepTripleDash start=/\%^---$/ end=/^---$/ contains=glepHeaderKey syn region glepHeaderKey contained start=/^[A-Za-z0-9]/ end=/:/ nextgroup=glepHeaderValue skipwhite 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\_\.]\+>/ @@ -51,6 +52,7 @@ hi link glepHeading4 Preproc hi link glepHeading5 Special hi link glepHeaders Define +hi link glepTripleDash Define hi link glepHeaderKey Keyword hi link glepHeaderValue String hi link glepHeaderEmail Special -- cgit v1.2.3-65-gdbad