Skip to content

Commit

Permalink
Use region.redish to highlight trailing spaces (#133)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rchl authored Mar 29, 2020
1 parent 6bf6b88 commit 86b0843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trailing_spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def plugin_loaded():
trailing_spaces_live_matching = bool(ts_settings.get("trailing_spaces_enabled",
DEFAULT_IS_ENABLED))
current_highlighting_scope = ts_settings.get("trailing_spaces_highlight_color",
"invalid")
"region.redish")
DEFAULT_COLOR_SCOPE_NAME = current_highlighting_scope
trim_modified_lines_only = bool(ts_settings.get("trailing_spaces_modified_lines_only",
DEFAULT_MODIFIED_LINES_ONLY))
Expand Down
2 changes: 1 addition & 1 deletion trailing_spaces.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Highlight color is specified as a scope. You may define and use a custom
// scope to better fit your colorscheme. A value of empty string "" will
// make highlights invisible.
"trailing_spaces_highlight_color" : "invalid",
"trailing_spaces_highlight_color" : "region.redish",

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

0 comments on commit 86b0843

Please sign in to comment.