Hunt for spaces after tabs or tabs after spaces as well

This commit is contained in:
Kemal Hadimli 2013-08-27 12:09:58 +03:00
parent dc3c860a25
commit 148ad95966

View File

@ -46,7 +46,7 @@ def is_find_results(view):
# Return an array of regions matching whitespaces. # Return an array of regions matching whitespaces.
def find_whitespaces_spaces(view): def find_whitespaces_spaces(view):
last_whitespace = bool(hws_settings.get('highlight_last_whitespace',DEFAULT_LAST_WHITESPACE)) last_whitespace = bool(hws_settings.get('highlight_last_whitespace',DEFAULT_LAST_WHITESPACE))
regex = ' {2,}' regex = ' {2,}|\t | \t'
if last_whitespace: if last_whitespace:
regex += '| {1,}$' regex += '| {1,}$'