Skip to content

Commit

Permalink
exclude_languages option instead of language_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen authored and whitequark committed Nov 8, 2018
1 parent a3c5300 commit 2f98d29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The `palettes` setting is a mapping of theme names to the list of colors to use
}
```

The `languages` setting is list of languages included (or excluded if `language_mode` setting is set to 'exclude') in highlighting.
The `languages` setting is list of languages included (or excluded if `exclude_languages` setting is set to true) in highlighting.

```
{
Expand Down
2 changes: 2 additions & 0 deletions Rainbowth.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"Tomorrow Night": ["#c66", "#de935f", "#ee6", "#b5bd68", "#81a2be", "#b294bb", "#ff69b4", "#8a2be2"],
"Monokai": ["#AE81FF", "#66D9EF", "#A6E22E", "#FD971F", "#F92672"]
},
// Toggle whether languages from list are excluded or included. Default: false
"exclude_languages": false,
// Toggle whether strings should be ignored. Default: false
"disable_inside_string": false,
// Enables custom pre- and suffixes. Currently only single character 'fixes.
Expand Down
2 changes: 1 addition & 1 deletion rainbowth.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def on_activated_async(self, view):
settings = sublime.load_settings('Rainbowth.sublime-settings')
languages = settings.get('languages')
lispy = self.is_written_in(view, languages)
if settings.get('language_mode') == 'exclude':
if settings.get('exclude_languages'):
lispy = not lispy
view.settings().set('rainbowth.lispy', lispy)
if view.settings().get('rainbowth.lispy'):
Expand Down

0 comments on commit 2f98d29

Please sign in to comment.