commit:     0c91fccc7bf5477812de0438a6f7dc79fa65f5bf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 20 20:33:41 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 20 20:33:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=0c91fccc

syntax/gentoo-common: Detect mixed tab-space indent

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

 syntax/gentoo-common.vim | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/syntax/gentoo-common.vim b/syntax/gentoo-common.vim
index b3e2ae8..37879b3 100644
--- a/syntax/gentoo-common.vim
+++ b/syntax/gentoo-common.vim
@@ -14,6 +14,8 @@ syn match  GentooBug contained /\(\([gG]entoo \|[dD]ebian 
\|[sS]ource[Ff]orge \)
 syn region  GentooError start=/^ / end=/$/
 " trailing whitespace
 syn match   GentooError /\s\+$/
+" mixed tab and space indentation
+syn match   GentooError /\s*\(\t \| \t\)\s*/
 
 hi def link GentooBug                    Underlined
 hi def link GentooError                  Error

Reply via email to