TextViewer.py
changeset 68 66308e07402c
parent 64 dd6f693e46a1
child 73 f2529e34e4b7
equal deleted inserted replaced
67:3a1b0afdaf84 68:66308e07402c
   193     
   193     
   194     def SetFunctions(self, blocktypes):
   194     def SetFunctions(self, blocktypes):
   195         self.Functions = []
   195         self.Functions = []
   196         for category in blocktypes:
   196         for category in blocktypes:
   197             for blocktype in category["list"]:
   197             for blocktype in category["list"]:
   198                 if blocktype["name"] not in self.Keywords and blocktype["name"] not in self.Variables:
   198                 if blocktype["type"] == "function" and blocktype["name"] not in self.Keywords and blocktype["name"] not in self.Variables:
   199                     self.Functions.append(blocktype["name"].upper())
   199                     self.Functions.append(blocktype["name"].upper())
   200         self.Colourise(0, -1)
   200         self.Colourise(0, -1)
   201     
   201     
   202     def RefreshJumpList(self):
   202     def RefreshJumpList(self):
   203         self.Jumps = [jump.upper() for jump in LABEL_MODEL.findall(self.GetText())]
   203         self.Jumps = [jump.upper() for jump in LABEL_MODEL.findall(self.GetText())]