Issue #1 resolved

Django syntax not recognized if only the first line contains 'from Django'

Zdeslav Vojkovic
created an issue

As title says, if only the first line of the file contains text 'from Django' (i.e. there are no more Django imports), plugin will not recognize the file as Django file.

In method: {{{ def is_django(self): if self.view.find('from django',1,sublime.IGNORECASE) > -1: self.set_syntax('Python Django', 'Djaneiro') return True return False }}}

first line should be changed to: {{{ if self.view.find('from django',0,sublime.IGNORECASE) > -1: }}}

Comments (2)

  1. Log in to comment