Skip to content

Commit

Permalink
Use activation scopes for abbreviation capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Oct 13, 2020
1 parent 733c145 commit 7934f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abbreviation.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def is_simple_markup_abbreviation(abbr: MarkupAbbreviation) -> bool:

def allow_tracking(editor: sublime.View, pos: int) -> bool:
"Check if abbreviation tracking is allowed in editor at given location"
if is_enabled(editor, pos):
if is_enabled(editor, pos) and syntax.in_activation_scope(editor, pos):
syntax_name = syntax.from_pos(editor, pos)
return syntax.is_supported(syntax_name) or syntax.is_jsx(syntax_name)

Expand Down

0 comments on commit 7934f55

Please sign in to comment.