def is_at_word(view: sublime.View, event) -> bool: pos = get_position(view, event) point_classification = view.classify(pos) if point_classification & SUBLIME_WORD_MASK: return True else: return False
def position_is_word(view: sublime.View, position: int) -> bool: point_classification = view.classify(position) if point_classification & SUBLIME_WORD_MASK: return True else: return False