1 Commits
1.1.1 ... 1.1.2

Author SHA1 Message Date
Kemal Hadimli
148ad95966 Hunt for spaces after tabs or tabs after spaces as well 2013-08-27 12:09:58 +03:00

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,}$'