From 148ad959665f5a7b077a3e4a8e46eefa8027b0e1 Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Tue, 27 Aug 2013 12:09:58 +0300 Subject: [PATCH] Hunt for spaces after tabs or tabs after spaces as well --- highlight_whitespaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlight_whitespaces.py b/highlight_whitespaces.py index 21f689a..a9b3c1f 100644 --- a/highlight_whitespaces.py +++ b/highlight_whitespaces.py @@ -46,7 +46,7 @@ def is_find_results(view): # Return an array of regions matching whitespaces. def find_whitespaces_spaces(view): last_whitespace = bool(hws_settings.get('highlight_last_whitespace',DEFAULT_LAST_WHITESPACE)) - regex = ' {2,}' + regex = ' {2,}|\t | \t' if last_whitespace: regex += '| {1,}$'