eric6/Documentation/Source/eric6.QScintilla.Lexers.LexerPython.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.QScintilla.Lexers.LexerPython</h1> 23 <h1>eric6.QScintilla.Lexers.LexerPython</h1>
24
23 <p> 25 <p>
24 Module implementing a Python lexer with some additional methods. 26 Module implementing a Python lexer with some additional methods.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#LexerPython">LexerPython</a></td> 38 <td><a href="#LexerPython">LexerPython</a></td>
34 <td>Subclass to implement some additional lexer dependant methods.</td> 39 <td>Subclass to implement some additional lexer dependant methods.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
38 <table> 43
39 <tr><td>None</td></tr> 44 <table>
40 </table> 45 <tr><td>None</td></tr>
41 <hr /><hr /> 46 </table>
47 <hr />
48 <hr />
42 <a NAME="LexerPython" ID="LexerPython"></a> 49 <a NAME="LexerPython" ID="LexerPython"></a>
43 <h2>LexerPython</h2> 50 <h2>LexerPython</h2>
51
44 <p> 52 <p>
45 Subclass to implement some additional lexer dependant methods. 53 Subclass to implement some additional lexer dependant methods.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 SubstyledLexer, QsciLexerPython 56 SubstyledLexer, QsciLexerPython
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>None</td></tr> 60 <tr><td>None</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
58 <table> 68
69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#LexerPython.__init__">LexerPython</a></td> 72 <td><a href="#LexerPython.__init__">LexerPython</a></td>
61 <td>PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets</td> 73 <td>PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#LexerPython.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td> 76 <td><a href="#LexerPython.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td>
64 <td>Public method to return the list of separators for autocompletion.</td> 77 <td>Public method to return the list of separators for autocompletion.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#LexerPython.defaultKeywords">defaultKeywords</a></td> 80 <td><a href="#LexerPython.defaultKeywords">defaultKeywords</a></td>
67 <td>Public method to get the default keywords.</td> 81 <td>Public method to get the default keywords.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#LexerPython.getIndentationDifference">getIndentationDifference</a></td> 84 <td><a href="#LexerPython.getIndentationDifference">getIndentationDifference</a></td>
70 <td>Public method to determine the difference for the new indentation.</td> 85 <td>Public method to determine the difference for the new indentation.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#LexerPython.initProperties">initProperties</a></td> 88 <td><a href="#LexerPython.initProperties">initProperties</a></td>
73 <td>Public slot to initialize the properties.</td> 89 <td>Public slot to initialize the properties.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#LexerPython.isCommentStyle">isCommentStyle</a></td> 92 <td><a href="#LexerPython.isCommentStyle">isCommentStyle</a></td>
76 <td>Public method to check, if a style is a comment style.</td> 93 <td>Public method to check, if a style is a comment style.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#LexerPython.isStringStyle">isStringStyle</a></td> 96 <td><a href="#LexerPython.isStringStyle">isStringStyle</a></td>
79 <td>Public method to check, if a style is a string style.</td> 97 <td>Public method to check, if a style is a string style.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#LexerPython.language">language</a></td> 100 <td><a href="#LexerPython.language">language</a></td>
82 <td>Public method to get the lexer language.</td> 101 <td>Public method to get the lexer language.</td>
83 </tr><tr> 102 </tr>
103 <tr>
84 <td><a href="#LexerPython.maximumKeywordSet">maximumKeywordSet</a></td> 104 <td><a href="#LexerPython.maximumKeywordSet">maximumKeywordSet</a></td>
85 <td>Public method to get the maximum keyword set.</td> 105 <td>Public method to get the maximum keyword set.</td>
86 </tr> 106 </tr>
87 </table> 107 </table>
88 <h3>Static Methods</h3> 108 <h3>Static Methods</h3>
89 <table> 109
90 <tr><td>None</td></tr> 110 <table>
91 </table> 111 <tr><td>None</td></tr>
112 </table>
113
92 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a> 114 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a>
93 <h4>LexerPython (Constructor)</h4> 115 <h4>LexerPython (Constructor)</h4>
94 <b>LexerPython</b>(<i>variant="", parent=None</i>) 116 <b>LexerPython</b>(<i>variant="", parent=None</i>)
117
95 <p> 118 <p>
96 PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras 119 PyQt5 Qsci Qt QtCore QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras
97 QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL 120 QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL
98 QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects 121 QtPositioning QtPrintSupport QtQml QtQuick QtQuickWidgets QtRemoteObjects
99 QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine 122 QtSensors QtSerialPort QtSql QtSvg QtTest QtWebChannel QtWebEngine
100 QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras 123 QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras
101 QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets 124 QtX11Extras QtXml QtXmlPatterns sip QtWebKit QtWebKitWidgets
102 </p><a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a> 125 </p>
126 <a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a>
103 <h4>LexerPython.autoCompletionWordSeparators</h4> 127 <h4>LexerPython.autoCompletionWordSeparators</h4>
104 <b>autoCompletionWordSeparators</b>(<i></i>) 128 <b>autoCompletionWordSeparators</b>(<i></i>)
129
105 <p> 130 <p>
106 Public method to return the list of separators for autocompletion. 131 Public method to return the list of separators for autocompletion.
107 </p><dl> 132 </p>
133 <dl>
108 <dt>Returns:</dt> 134 <dt>Returns:</dt>
109 <dd> 135 <dd>
110 list of separators (list of strings) 136 list of separators (list of strings)
111 </dd> 137 </dd>
112 </dl><a NAME="LexerPython.defaultKeywords" ID="LexerPython.defaultKeywords"></a> 138 </dl>
139 <a NAME="LexerPython.defaultKeywords" ID="LexerPython.defaultKeywords"></a>
113 <h4>LexerPython.defaultKeywords</h4> 140 <h4>LexerPython.defaultKeywords</h4>
114 <b>defaultKeywords</b>(<i>kwSet</i>) 141 <b>defaultKeywords</b>(<i>kwSet</i>)
142
115 <p> 143 <p>
116 Public method to get the default keywords. 144 Public method to get the default keywords.
117 </p><dl> 145 </p>
146 <dl>
147
118 <dt><i>kwSet</i></dt> 148 <dt><i>kwSet</i></dt>
119 <dd> 149 <dd>
120 number of the keyword set (integer) 150 number of the keyword set (integer)
121 </dd> 151 </dd>
122 </dl><dl> 152 </dl>
153 <dl>
123 <dt>Returns:</dt> 154 <dt>Returns:</dt>
124 <dd> 155 <dd>
125 string giving the keywords (string) or None 156 string giving the keywords (string) or None
126 </dd> 157 </dd>
127 </dl><a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a> 158 </dl>
159 <a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a>
128 <h4>LexerPython.getIndentationDifference</h4> 160 <h4>LexerPython.getIndentationDifference</h4>
129 <b>getIndentationDifference</b>(<i>line, editor</i>) 161 <b>getIndentationDifference</b>(<i>line, editor</i>)
162
130 <p> 163 <p>
131 Public method to determine the difference for the new indentation. 164 Public method to determine the difference for the new indentation.
132 </p><dl> 165 </p>
166 <dl>
167
133 <dt><i>line</i></dt> 168 <dt><i>line</i></dt>
134 <dd> 169 <dd>
135 line to perform the calculation for (integer) 170 line to perform the calculation for (integer)
136 </dd><dt><i>editor</i></dt> 171 </dd>
172 <dt><i>editor</i></dt>
137 <dd> 173 <dd>
138 QScintilla editor 174 QScintilla editor
139 </dd> 175 </dd>
140 </dl><dl> 176 </dl>
177 <dl>
141 <dt>Returns:</dt> 178 <dt>Returns:</dt>
142 <dd> 179 <dd>
143 amount of difference in indentation (integer) 180 amount of difference in indentation (integer)
144 </dd> 181 </dd>
145 </dl><a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a> 182 </dl>
183 <a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a>
146 <h4>LexerPython.initProperties</h4> 184 <h4>LexerPython.initProperties</h4>
147 <b>initProperties</b>(<i></i>) 185 <b>initProperties</b>(<i></i>)
186
148 <p> 187 <p>
149 Public slot to initialize the properties. 188 Public slot to initialize the properties.
150 </p><a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a> 189 </p>
190 <a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a>
151 <h4>LexerPython.isCommentStyle</h4> 191 <h4>LexerPython.isCommentStyle</h4>
152 <b>isCommentStyle</b>(<i>style</i>) 192 <b>isCommentStyle</b>(<i>style</i>)
193
153 <p> 194 <p>
154 Public method to check, if a style is a comment style. 195 Public method to check, if a style is a comment style.
155 </p><dl> 196 </p>
197 <dl>
198
156 <dt><i>style</i></dt> 199 <dt><i>style</i></dt>
157 <dd> 200 <dd>
158 style to check (integer) 201 style to check (integer)
159 </dd> 202 </dd>
160 </dl><dl> 203 </dl>
204 <dl>
161 <dt>Returns:</dt> 205 <dt>Returns:</dt>
162 <dd> 206 <dd>
163 flag indicating a comment style (boolean) 207 flag indicating a comment style (boolean)
164 </dd> 208 </dd>
165 </dl><a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a> 209 </dl>
210 <a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a>
166 <h4>LexerPython.isStringStyle</h4> 211 <h4>LexerPython.isStringStyle</h4>
167 <b>isStringStyle</b>(<i>style</i>) 212 <b>isStringStyle</b>(<i>style</i>)
213
168 <p> 214 <p>
169 Public method to check, if a style is a string style. 215 Public method to check, if a style is a string style.
170 </p><dl> 216 </p>
217 <dl>
218
171 <dt><i>style</i></dt> 219 <dt><i>style</i></dt>
172 <dd> 220 <dd>
173 style to check (integer) 221 style to check (integer)
174 </dd> 222 </dd>
175 </dl><dl> 223 </dl>
224 <dl>
176 <dt>Returns:</dt> 225 <dt>Returns:</dt>
177 <dd> 226 <dd>
178 flag indicating a string style (boolean) 227 flag indicating a string style (boolean)
179 </dd> 228 </dd>
180 </dl><a NAME="LexerPython.language" ID="LexerPython.language"></a> 229 </dl>
230 <a NAME="LexerPython.language" ID="LexerPython.language"></a>
181 <h4>LexerPython.language</h4> 231 <h4>LexerPython.language</h4>
182 <b>language</b>(<i></i>) 232 <b>language</b>(<i></i>)
233
183 <p> 234 <p>
184 Public method to get the lexer language. 235 Public method to get the lexer language.
185 </p><dl> 236 </p>
237 <dl>
186 <dt>Returns:</dt> 238 <dt>Returns:</dt>
187 <dd> 239 <dd>
188 lexer language (string) 240 lexer language (string)
189 </dd> 241 </dd>
190 </dl><a NAME="LexerPython.maximumKeywordSet" ID="LexerPython.maximumKeywordSet"></a> 242 </dl>
243 <a NAME="LexerPython.maximumKeywordSet" ID="LexerPython.maximumKeywordSet"></a>
191 <h4>LexerPython.maximumKeywordSet</h4> 244 <h4>LexerPython.maximumKeywordSet</h4>
192 <b>maximumKeywordSet</b>(<i></i>) 245 <b>maximumKeywordSet</b>(<i></i>)
246
193 <p> 247 <p>
194 Public method to get the maximum keyword set. 248 Public method to get the maximum keyword set.
195 </p><dl> 249 </p>
250 <dl>
196 <dt>Returns:</dt> 251 <dt>Returns:</dt>
197 <dd> 252 <dd>
198 maximum keyword set (integer) 253 maximum keyword set (integer)
199 </dd> 254 </dd>
200 </dl> 255 </dl>

eric ide

mercurial