Пример #1
0
 def getNonCodeStyles(self, stc):
     """Return a list of styling integers that indicate characters that are
     outside the normal code flow.
     
     Character styles that are outside code flow are strings, comments,
     preprocessor statements, and stuff that should be ignored when
     indenting.
     """
     styles = []
     styles.extend(stc.getStringStyles())
     styles.extend(stc.getCommentStyles())
     #self.dprint(styles)
     return styles
Пример #2
0
 def getNonCodeStyles(self, stc):
     """Return a list of styling integers that indicate characters that are
     outside the normal code flow.
     
     Character styles that are outside code flow are strings, comments,
     preprocessor statements, and stuff that should be ignored when
     indenting.
     """
     styles = []
     styles.extend(stc.getStringStyles())
     styles.extend(stc.getCommentStyles())
     # add preprocessor styles for C-like modes -- everything that uses the
     # C syntax highlighter should also use the STC_C_PREPROCESSOR token
     styles.append(wx.stc.STC_C_PREPROCESSOR)
     #self.dprint(styles)
     return styles