Skip to content

Commit 86b0843

Browse files
authored
Use region.redish to highlight trailing spaces (#133)
That color is better for the use case as it's gonna have a reliable red color. `invalid` scope can look like anything, depending on syntax and what not. With this change the package will officially switch to only supporting ST3+. Resolves #125
1 parent 6bf6b88 commit 86b0843

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

trailing_spaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def plugin_loaded():
4343
trailing_spaces_live_matching = bool(ts_settings.get("trailing_spaces_enabled",
4444
DEFAULT_IS_ENABLED))
4545
current_highlighting_scope = ts_settings.get("trailing_spaces_highlight_color",
46-
"invalid")
46+
"region.redish")
4747
DEFAULT_COLOR_SCOPE_NAME = current_highlighting_scope
4848
trim_modified_lines_only = bool(ts_settings.get("trailing_spaces_modified_lines_only",
4949
DEFAULT_MODIFIED_LINES_ONLY))

trailing_spaces.sublime-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Highlight color is specified as a scope. You may define and use a custom
1313
// scope to better fit your colorscheme. A value of empty string "" will
1414
// make highlights invisible.
15-
"trailing_spaces_highlight_color" : "invalid",
15+
"trailing_spaces_highlight_color" : "region.redish",
1616

1717
// By default, empty lines are cleared as well when calling the deletion
1818
// command.

0 commit comments

Comments
 (0)