commit:     1f9fef4cdffa63f49d0133910df0c5f527cb43f3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 15 12:56:21 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:55:26 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1f9fef4c

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

Reply via email to