commit:     6d6e37e194b230b5713cb3853e1516903342df48
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 20 20:09:38 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 20 20:09:38 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=6d6e37e1

syntax/ebuild: Highlight DESCRIPTION if too long

Bug: https://bugs.gentoo.org/637100

 syntax/ebuild.vim | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/syntax/ebuild.vim b/syntax/ebuild.vim
index a6b5299..f9f0eba 100644
--- a/syntax/ebuild.vim
+++ b/syntax/ebuild.vim
@@ -299,6 +299,9 @@ syn match   EbuildErrorC /`which.*`\|$(which.*)/
 " Special homepage handling
 syn match EbuildHomePageError 
/^HOMEPAGE=.*\(\${[^}]*}\?\|\([^\\]\)\@<=\$[^{]\w*\).*$/
 
+" Too long descriptions
+syn match   EbuildErrorC /^DESCRIPTION=['"].\{81,\}['"]$/
+
 " clusters
 syn cluster EbuildThings 
contains=EbuildCoreKeyword,EbuildFunctions,EbuildInherit,EbuildEutilsKeyword
 syn cluster EbuildThings 
add=EbuildLibtoolKeyword,EbuildFixHeadTailsKeyword,EbuildWebappKeyword

Reply via email to