52 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
52 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
53 self.setFoldComments(Preferences.getEditor("TexFoldComment")) |
53 self.setFoldComments(Preferences.getEditor("TexFoldComment")) |
54 self.setProcessComments(Preferences.getEditor("TexProcessComments")) |
54 self.setProcessComments(Preferences.getEditor("TexProcessComments")) |
55 self.setProcessIf(Preferences.getEditor("TexProcessIf")) |
55 self.setProcessIf(Preferences.getEditor("TexProcessIf")) |
56 |
56 |
57 def isCommentStyle(self, style): # noqa: U100 |
57 def isCommentStyle(self, _style): |
58 """ |
58 """ |
59 Public method to check, if a style is a comment style. |
59 Public method to check, if a style is a comment style. |
60 |
60 |
61 @param style style to check |
61 @param _style style to check (unused) |
62 @type int |
62 @type int |
63 @return flag indicating a comment style |
63 @return flag indicating a comment style |
64 @rtype bool |
64 @rtype bool |
65 """ |
65 """ |
66 return False |
66 return False |
224 |
224 |
225 def createLexer(variant="", parent=None): # noqa: U100 |
225 def createLexer(variant="", parent=None): # noqa: U100 |
226 """ |
226 """ |
227 Function to instantiate a lexer object. |
227 Function to instantiate a lexer object. |
228 |
228 |
229 @param variant name of the language variant |
229 @param variant name of the language variant (unused) |
230 @type str |
230 @type str |
231 @param parent parent widget of this lexer |
231 @param parent parent widget of this lexer |
232 @type QObject |
232 @type QObject |
233 @return instantiated lexer object |
233 @return instantiated lexer object |
234 @rtype LexerTeX |
234 @rtype LexerTeX |