editors/TextViewer.py
changeset 1758 845ca626db09
parent 1747 6046ffa2280f
child 1763 bcc07ff2362c
equal deleted inserted replaced
1757:0de89da92ee0 1758:845ca626db09
   543                     if LineStartswith(self.Editor.GetLine(line_number - 1).strip(), self.BlockEndKeywords):
   543                     if LineStartswith(self.Editor.GetLine(line_number - 1).strip(), self.BlockEndKeywords):
   544                         level = self.Editor.GetFoldLevel(self.Editor.GetFoldParent(line_number - 1)) & wx.stc.STC_FOLDLEVELNUMBERMASK
   544                         level = self.Editor.GetFoldLevel(self.Editor.GetFoldParent(line_number - 1)) & wx.stc.STC_FOLDLEVELNUMBERMASK
   545                     else:
   545                     else:
   546                         level = self.Editor.GetFoldLevel(line_number - 1) & wx.stc.STC_FOLDLEVELNUMBERMASK
   546                         level = self.Editor.GetFoldLevel(line_number - 1) & wx.stc.STC_FOLDLEVELNUMBERMASK
   547                 if level != wx.stc.STC_FOLDLEVELBASE:
   547                 if level != wx.stc.STC_FOLDLEVELBASE:
   548                     level |=  wx.stc.STC_FOLDLEVELWHITEFLAG
   548                     level |= wx.stc.STC_FOLDLEVELWHITEFLAG
   549             elif LineStartswith(line, self.BlockStartKeywords):
   549             elif LineStartswith(line, self.BlockStartKeywords):
   550                 level |= wx.stc.STC_FOLDLEVELHEADERFLAG
   550                 level |= wx.stc.STC_FOLDLEVELHEADERFLAG
   551             elif LineStartswith(line, self.BlockEndKeywords):
   551             elif LineStartswith(line, self.BlockEndKeywords):
   552                 if LineStartswith(self.Editor.GetLine(line_number - 1).strip(), self.BlockEndKeywords):
   552                 if LineStartswith(self.Editor.GetLine(line_number - 1).strip(), self.BlockEndKeywords):
   553                     level = self.Editor.GetFoldLevel(self.Editor.GetFoldParent(line_number - 1)) & wx.stc.STC_FOLDLEVELNUMBERMASK
   553                     level = self.Editor.GetFoldLevel(self.Editor.GetFoldParent(line_number - 1)) & wx.stc.STC_FOLDLEVELNUMBERMASK