editors/CodeFileEditor.py
branchsearch_in_CTN
changeset 2526 450c6239ee75
parent 2525 9812b332f350
child 2528 6bfc8a9bf0e7
equal deleted inserted replaced
2525:9812b332f350 2526:450c6239ee75
   934 
   934 
   935     def AddHighlight(self, infos, start, end, highlight_type):
   935     def AddHighlight(self, infos, start, end, highlight_type):
   936         if self.VariablesPanel is not None and infos[0] == "var_inout":
   936         if self.VariablesPanel is not None and infos[0] == "var_inout":
   937             self.VariablesPanel.AddVariableHighlight(infos[1:], highlight_type)
   937             self.VariablesPanel.AddVariableHighlight(infos[1:], highlight_type)
   938         else:
   938         else:
   939             self.CodeEditor.AddHighlight(infos, start, end, highlight_type)
   939             self.CodeEditor.AddHighlight(start, end, highlight_type)
   940 
   940 
   941     def RemoveHighlight(self, infos, start, end, highlight_type):
   941     def RemoveHighlight(self, infos, start, end, highlight_type):
   942         if self.VariablesPanel is not None and infos[0] == "var_inout":
   942         if self.VariablesPanel is not None and infos[0] == "var_inout":
   943             self.VariablesPanel.RemoveVariableHighlight(infos[1:], highlight_type)
   943             self.VariablesPanel.RemoveVariableHighlight(infos[1:], highlight_type)
   944         else:
   944         else:
   945             self.CodeEditor.RemoveHighlight(infos, start, end, highlight_type)
   945             self.CodeEditor.RemoveHighlight(start, end, highlight_type)
   946 
   946 
   947     def ClearHighlights(self, highlight_type=None):
   947     def ClearHighlights(self, highlight_type=None):
   948         if self.VariablesPanel is not None:
   948         if self.VariablesPanel is not None:
   949             self.VariablesPanel.ClearHighlights(highlight_type)
   949             self.VariablesPanel.ClearHighlights(highlight_type)
   950         else:
   950         else: