diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-08-20 22:09:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-08-20 22:09:38 +0200 |
commit | 6d6e37e194b230b5713cb3853e1516903342df48 (patch) | |
tree | 57dfa62164d16b654b780cf29ce9d29e85ce7059 | |
parent | newebuild: Use EAPI 7 (diff) | |
download | gentoo-syntax-6d6e37e194b230b5713cb3853e1516903342df48.tar.gz gentoo-syntax-6d6e37e194b230b5713cb3853e1516903342df48.tar.bz2 gentoo-syntax-6d6e37e194b230b5713cb3853e1516903342df48.zip |
syntax/ebuild: Highlight DESCRIPTION if too long
Bug: https://bugs.gentoo.org/637100
-rw-r--r-- | syntax/ebuild.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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 |