22 def __init__(self, parent=None): |
22 def __init__(self, parent=None): |
23 """ |
23 """ |
24 Constructor |
24 Constructor |
25 |
25 |
26 @param parent parent widget of this lexer |
26 @param parent parent widget of this lexer |
|
27 @type QWidget |
27 """ |
28 """ |
28 QsciLexerPostScript.__init__(self, parent) |
29 QsciLexerPostScript.__init__(self, parent) |
29 Lexer.__init__(self) |
30 Lexer.__init__(self) |
30 |
31 |
31 self.commentString = "%" |
32 self.commentString = "%" |
49 |
50 |
50 def isCommentStyle(self, style): |
51 def isCommentStyle(self, style): |
51 """ |
52 """ |
52 Public method to check, if a style is a comment style. |
53 Public method to check, if a style is a comment style. |
53 |
54 |
54 @param style style to check (integer) |
55 @param style style to check |
55 @return flag indicating a comment style (boolean) |
56 @type int |
|
57 @return flag indicating a comment style |
|
58 @rtype bool |
56 """ |
59 """ |
57 return style in [QsciLexerPostScript.Comment] |
60 return style in [QsciLexerPostScript.Comment] |
58 |
61 |
59 def isStringStyle(self, style): # noqa: U100 |
62 def isStringStyle(self, style): # noqa: U100 |
60 """ |
63 """ |
61 Public method to check, if a style is a string style. |
64 Public method to check, if a style is a string style. |
62 |
65 |
63 @param style style to check (integer) |
66 @param style style to check |
64 @return flag indicating a string style (boolean) |
67 @type int |
|
68 @return flag indicating a string style |
|
69 @rtype bool |
65 """ |
70 """ |
66 return False |
71 return False |
67 |
72 |
68 def defaultKeywords(self, kwSet): |
73 def defaultKeywords(self, kwSet): |
69 """ |
74 """ |
70 Public method to get the default keywords. |
75 Public method to get the default keywords. |
71 |
76 |
72 @param kwSet number of the keyword set (integer) |
77 @param kwSet number of the keyword set |
73 @return string giving the keywords (string) or None |
78 @type int |
|
79 @return string giving the keywords or None |
|
80 @rtype str |
74 """ |
81 """ |
75 return QsciLexerPostScript.keywords(self, kwSet) |
82 return QsciLexerPostScript.keywords(self, kwSet) |
76 |
83 |
77 def maximumKeywordSet(self): |
84 def maximumKeywordSet(self): |
78 """ |
85 """ |
79 Public method to get the maximum keyword set. |
86 Public method to get the maximum keyword set. |
80 |
87 |
81 @return maximum keyword set (integer) |
88 @return maximum keyword set |
|
89 @rtype int |
82 """ |
90 """ |
83 return 5 |
91 return 5 |
84 |
92 |
85 |
93 |
86 def createLexer(variant="", parent=None): # noqa: U100 |
94 def createLexer(variant="", parent=None): # noqa: U100 |