def _get_match_info(self, current_region, match_word):
'''
????????
'''
index = 0
all_match_regions = self.view.find_all(match_word, sublime.LITERAL)
for region in all_match_regions:
if region == current_region:
break
index += 1
if index >= len(all_match_regions):
index = len(all_match_regions)
return all_match_regions, index
评论列表
文章目录