def test_python_syntax(self): # Setup self.set_syntax('python') self.set_settings({'level_char': '>'}) self.set_text(self.text_python()) # Test toc = TableOfComments(self.view, self.edit) titles = toc.get_comment_titles('string') self.check_titles_match(titles)
def test_css_syntax(self): # Setup self.view.set_syntax_file('Packages/CSS/CSS.tmLanguage') self.set_syntax('css') self.set_settings({'level_char': '#'}) self.set_text(self.text_css()) # Test toc = TableOfComments(self.view, self.edit) titles = toc.get_comment_titles('string', 'test') self.check_titles_match(titles)
def get_plugin(self): # return '' return TableOfComments(self.view, self.edit)