Skip to content
shadowbq edited this page Jun 11, 2015 · 4 revisions

Additional Bookmarks for Python imports, def, and class

	},{
		filename: '.py'
		regexp: ///^[\s]*def\s(.*):///
		labelfx: (match)->
			return "def #{match[1]}"
	},{
		filename: '.py'
		regexp: ///^((from)?(.*))?import\s(.*)///
		labelfx: (match)->
			return "import #{match[4]}"
	},{
		filename: '.py'
		regexp: ///[\s]*class (.*):///
		labelfx: (match)->
			return "class #{match[1]}"
	},{

Clone this wiki locally