Skip to content

Commit

Permalink
Add note about SublimeTextIssues/Core/#657
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardroche committed Dec 30, 2017
1 parent 34de7a3 commit ff0934f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/color_scheme.py
Expand Up @@ -24,6 +24,8 @@ def __init__(self, view):
self.default_styles.update(plist_settings_dict['settings'])

def at_point(self, point):
# scope_name() needs to striped due to a bug in ST:
# See https://github.com/SublimeTextIssues/Core/issues/657.
scope = self.view.scope_name(point).strip()

if scope in self.scope_style_cache:
Expand Down
2 changes: 2 additions & 0 deletions lib/generator.py
Expand Up @@ -24,6 +24,8 @@ def generate_syntax_assertions(view, pt):

scopes = []
for i in range(line.begin(), line.end()):
# scope_name() needs to striped due to a bug in ST:
# See https://github.com/SublimeTextIssues/Core/issues/657.
scopes.append(view.scope_name(i).rstrip(' '))

return _generate_assertions(scopes, view, pt)
Expand Down

0 comments on commit ff0934f

Please sign in to comment.