aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-20 22:33:41 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-20 22:33:55 +0200
commit0c91fccc7bf5477812de0438a6f7dc79fa65f5bf (patch)
tree3c37f80508ef81d1c0b751c01c88b4ccf0da2514
parentsyntax/ebuild: Detect whitespace errors inside functions too (diff)
downloadgentoo-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.vim2
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