diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-08-20 22:33:41 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-08-20 22:33:55 +0200 |
commit | 0c91fccc7bf5477812de0438a6f7dc79fa65f5bf (patch) | |
tree | 3c37f80508ef81d1c0b751c01c88b4ccf0da2514 | |
parent | syntax/ebuild: Detect whitespace errors inside functions too (diff) | |
download | gentoo-syntax-0c91fccc7bf5477812de0438a6f7dc79fa65f5bf.tar.gz gentoo-syntax-0c91fccc7bf5477812de0438a6f7dc79fa65f5bf.tar.bz2 gentoo-syntax-0c91fccc7bf5477812de0438a6f7dc79fa65f5bf.zip |
syntax/gentoo-common: Detect mixed tab-space indent
Bug: https://bugs.gentoo.org/637104
-rw-r--r-- | syntax/gentoo-common.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 |