QScintilla/Editor.py

branch
APIs
changeset 5349
bccda3b5920a
parent 5158
b85f06f38f21
child 5358
2584d0a08bf4
equal deleted inserted replaced
5348:96197e13fdf3 5349:bccda3b5920a
1576 1576
1577 # now set the lexer properties 1577 # now set the lexer properties
1578 self.lexer_.initProperties() 1578 self.lexer_.initProperties()
1579 1579
1580 # initialize the lexer APIs settings 1580 # initialize the lexer APIs settings
1581 api = self.vm.getAPIsManager().getAPIs(self.apiLanguage) 1581 if self.project.isOpen() and self.project.isProjectFile(filename):
1582 projectType = self.project.getProjectType()
1583 else:
1584 projectType = ""
1585 api = self.vm.getAPIsManager().getAPIs(self.apiLanguage,
1586 projectType=projectType)
1582 if api is not None and not api.isEmpty(): 1587 if api is not None and not api.isEmpty():
1583 self.lexer_.setAPIs(api.getQsciAPIs()) 1588 self.lexer_.setAPIs(api.getQsciAPIs())
1584 self.acAPI = True 1589 self.acAPI = True
1585 else: 1590 else:
1586 self.acAPI = False 1591 self.acAPI = False

eric ide

mercurial