Exemplo n.º 1
0
 def indentation_level(self, pt):
     return sublime_api.view_indentation_level(self.view_id, pt)
Exemplo n.º 2
0
 def guess_indentation_level(self, region):
     view = self.view
     (x, y) = view.rowcol(max(0, region.begin() - 1))
     prev_line_region = sublime.Region(view.text_point(x, y)).begin()
     return sublime_api.view_indentation_level(view.id(), prev_line_region)
Exemplo n.º 3
0
 def indentation_level(self, pt):
     return sublime_api.view_indentation_level(self.view_id, pt)
Exemplo n.º 4
0
 def guess_indentation_level(self, region):
     view = self.view
     (x, y) = view.rowcol(max(0, region.begin() - 1))
     prev_line_region = sublime.Region(view.text_point(x, y)).begin()
     return sublime_api.view_indentation_level(view.id(), prev_line_region)