equal
deleted
inserted
replaced
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 |