From 0c91fccc7bf5477812de0438a6f7dc79fa65f5bf Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 20 Aug 2018 22:33:41 +0200 Subject: 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 -- cgit v1.2.3-65-gdbad