src/eric7/Documentation/Source/eric7.QScintilla.Lexers.LexerPython.html

branch
eric7
changeset 10479
856476537696
parent 10431
64157aeb0312
child 10692
9becf9ca115c
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.QScintilla.Lexers.LexerPython</h1> 9 <h1>eric7.QScintilla.Lexers.LexerPython</h1>
10
11 <p> 10 <p>
12 Module implementing a Python lexer with some additional methods. 11 Module implementing a Python lexer with some additional methods.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#LexerPython">LexerPython</a></td> 22 <td><a href="#LexerPython">LexerPython</a></td>
25 <td>Subclass to implement some additional lexer dependant methods.</td> 23 <td>Subclass to implement some additional lexer dependant methods.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table>
31
32 <tr> 29 <tr>
33 <td><a href="#createLexer">createLexer</a></td> 30 <td><a href="#createLexer">createLexer</a></td>
34 <td>Function to instantiate a lexer object.</td> 31 <td>Function to instantiate a lexer object.</td>
35 </tr> 32 </tr>
36 </table> 33 </table>
34
37 <hr /> 35 <hr />
38 <hr /> 36 <hr />
39 <a NAME="LexerPython" ID="LexerPython"></a> 37 <a NAME="LexerPython" ID="LexerPython"></a>
40 <h2>LexerPython</h2> 38 <h2>LexerPython</h2>
41
42 <p> 39 <p>
43 Subclass to implement some additional lexer dependant methods. 40 Subclass to implement some additional lexer dependant methods.
44 </p> 41 </p>
42
45 <h3>Derived from</h3> 43 <h3>Derived from</h3>
46 SubstyledLexer, QsciLexerPython 44 SubstyledLexer, QsciLexerPython
47 <h3>Class Attributes</h3> 45 <h3>Class Attributes</h3>
48
49 <table> 46 <table>
50 <tr><td>None</td></tr> 47 <tr><td>None</td></tr>
51 </table> 48 </table>
49
52 <h3>Class Methods</h3> 50 <h3>Class Methods</h3>
53
54 <table> 51 <table>
55 <tr><td>None</td></tr> 52 <tr><td>None</td></tr>
56 </table> 53 </table>
54
57 <h3>Methods</h3> 55 <h3>Methods</h3>
58 56 <table>
59 <table>
60
61 <tr> 57 <tr>
62 <td><a href="#LexerPython.__init__">LexerPython</a></td> 58 <td><a href="#LexerPython.__init__">LexerPython</a></td>
63 <td>PyQt5 PyQt6 Qsci Qt Qt3DAnimation Qt3DCore Qt3DExtras Qt3DInput Qt3DLogic Qt3DRender QtBluetooth QtChart QtCharts QtCore QtDataVisualization QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtOpenGLWidgets QtPdf QtPdfWidgets QtPositioning QtPrintSupport QtPurchasing QtQml QtQuick QtQuick3D QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtSvgWidgets QtTest QtTextToSpeech QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineQuick QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml QtXmlPatterns sip</td> 59 <td>PyQt5 PyQt6 Qsci Qt Qt3DAnimation Qt3DCore Qt3DExtras Qt3DInput Qt3DLogic Qt3DRender QtBluetooth QtChart QtCharts QtCore QtDataVisualization QtDBus QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtOpenGLWidgets QtPdf QtPdfWidgets QtPositioning QtPrintSupport QtPurchasing QtQml QtQuick QtQuick3D QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtSvgWidgets QtTest QtTextToSpeech QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineQuick QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml QtXmlPatterns sip</td>
64 </tr> 60 </tr>
65 <tr> 61 <tr>
93 <tr> 89 <tr>
94 <td><a href="#LexerPython.maximumKeywordSet">maximumKeywordSet</a></td> 90 <td><a href="#LexerPython.maximumKeywordSet">maximumKeywordSet</a></td>
95 <td>Public method to get the maximum keyword set.</td> 91 <td>Public method to get the maximum keyword set.</td>
96 </tr> 92 </tr>
97 </table> 93 </table>
94
98 <h3>Static Methods</h3> 95 <h3>Static Methods</h3>
99
100 <table> 96 <table>
101 <tr><td>None</td></tr> 97 <tr><td>None</td></tr>
102 </table> 98 </table>
99
103 100
104 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a> 101 <a NAME="LexerPython.__init__" ID="LexerPython.__init__"></a>
105 <h4>LexerPython (Constructor)</h4> 102 <h4>LexerPython (Constructor)</h4>
106 <b>LexerPython</b>(<i>variant="", parent=None</i>) 103 <b>LexerPython</b>(<i>variant="", parent=None</i>)
107
108 <p> 104 <p>
109 PyQt5 PyQt6 Qsci Qt Qt3DAnimation Qt3DCore Qt3DExtras Qt3DInput Qt3DLogic 105 PyQt5 PyQt6 Qsci Qt Qt3DAnimation Qt3DCore Qt3DExtras Qt3DInput Qt3DLogic
110 Qt3DRender QtBluetooth QtChart QtCharts QtCore QtDataVisualization QtDBus 106 Qt3DRender QtBluetooth QtChart QtCharts QtCore QtDataVisualization QtDBus
111 QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia 107 QtDesigner QtGui QtHelp QtLocation QtMacExtras QtMultimedia
112 QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtOpenGLWidgets 108 QtMultimediaWidgets QtNetwork QtNetworkAuth QtNfc QtOpenGL QtOpenGLWidgets
114 QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtSvgWidgets 110 QtQuickWidgets QtRemoteObjects QtSensors QtSerialPort QtSql QtSvg QtSvgWidgets
115 QtTest QtTextToSpeech QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineQuick 111 QtTest QtTextToSpeech QtWebChannel QtWebEngine QtWebEngineCore QtWebEngineQuick
116 QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml 112 QtWebEngineWidgets QtWebSockets QtWidgets QtWinExtras QtX11Extras QtXml
117 QtXmlPatterns sip 113 QtXmlPatterns sip
118 </p> 114 </p>
115
119 <a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a> 116 <a NAME="LexerPython.autoCompletionWordSeparators" ID="LexerPython.autoCompletionWordSeparators"></a>
120 <h4>LexerPython.autoCompletionWordSeparators</h4> 117 <h4>LexerPython.autoCompletionWordSeparators</h4>
121 <b>autoCompletionWordSeparators</b>(<i></i>) 118 <b>autoCompletionWordSeparators</b>(<i></i>)
122
123 <p> 119 <p>
124 Public method to return the list of separators for autocompletion. 120 Public method to return the list of separators for autocompletion.
125 </p> 121 </p>
122
126 <dl> 123 <dl>
127 <dt>Return:</dt> 124 <dt>Return:</dt>
128 <dd> 125 <dd>
129 list of separators 126 list of separators
130 </dd> 127 </dd>
136 </dd> 133 </dd>
137 </dl> 134 </dl>
138 <a NAME="LexerPython.defaultKeywords" ID="LexerPython.defaultKeywords"></a> 135 <a NAME="LexerPython.defaultKeywords" ID="LexerPython.defaultKeywords"></a>
139 <h4>LexerPython.defaultKeywords</h4> 136 <h4>LexerPython.defaultKeywords</h4>
140 <b>defaultKeywords</b>(<i>kwSet</i>) 137 <b>defaultKeywords</b>(<i>kwSet</i>)
141
142 <p> 138 <p>
143 Public method to get the default keywords. 139 Public method to get the default keywords.
144 </p> 140 </p>
141
145 <dl> 142 <dl>
146 143
147 <dt><i>kwSet</i> (int)</dt> 144 <dt><i>kwSet</i> (int)</dt>
148 <dd> 145 <dd>
149 number of the keyword set 146 number of the keyword set
162 </dd> 159 </dd>
163 </dl> 160 </dl>
164 <a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a> 161 <a NAME="LexerPython.getIndentationDifference" ID="LexerPython.getIndentationDifference"></a>
165 <h4>LexerPython.getIndentationDifference</h4> 162 <h4>LexerPython.getIndentationDifference</h4>
166 <b>getIndentationDifference</b>(<i>line, editor</i>) 163 <b>getIndentationDifference</b>(<i>line, editor</i>)
167
168 <p> 164 <p>
169 Public method to determine the difference for the new indentation. 165 Public method to determine the difference for the new indentation.
170 </p> 166 </p>
167
171 <dl> 168 <dl>
172 169
173 <dt><i>line</i> (int)</dt> 170 <dt><i>line</i> (int)</dt>
174 <dd> 171 <dd>
175 line to perform the calculation for 172 line to perform the calculation for
192 </dd> 189 </dd>
193 </dl> 190 </dl>
194 <a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a> 191 <a NAME="LexerPython.initProperties" ID="LexerPython.initProperties"></a>
195 <h4>LexerPython.initProperties</h4> 192 <h4>LexerPython.initProperties</h4>
196 <b>initProperties</b>(<i></i>) 193 <b>initProperties</b>(<i></i>)
197
198 <p> 194 <p>
199 Public slot to initialize the properties. 195 Public slot to initialize the properties.
200 </p> 196 </p>
197
201 <a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a> 198 <a NAME="LexerPython.isCommentStyle" ID="LexerPython.isCommentStyle"></a>
202 <h4>LexerPython.isCommentStyle</h4> 199 <h4>LexerPython.isCommentStyle</h4>
203 <b>isCommentStyle</b>(<i>style</i>) 200 <b>isCommentStyle</b>(<i>style</i>)
204
205 <p> 201 <p>
206 Public method to check, if a style is a comment style. 202 Public method to check, if a style is a comment style.
207 </p> 203 </p>
204
208 <dl> 205 <dl>
209 206
210 <dt><i>style</i> (int)</dt> 207 <dt><i>style</i> (int)</dt>
211 <dd> 208 <dd>
212 style to check 209 style to check
225 </dd> 222 </dd>
226 </dl> 223 </dl>
227 <a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a> 224 <a NAME="LexerPython.isStringStyle" ID="LexerPython.isStringStyle"></a>
228 <h4>LexerPython.isStringStyle</h4> 225 <h4>LexerPython.isStringStyle</h4>
229 <b>isStringStyle</b>(<i>style</i>) 226 <b>isStringStyle</b>(<i>style</i>)
230
231 <p> 227 <p>
232 Public method to check, if a style is a string style. 228 Public method to check, if a style is a string style.
233 </p> 229 </p>
230
234 <dl> 231 <dl>
235 232
236 <dt><i>style</i> (int)</dt> 233 <dt><i>style</i> (int)</dt>
237 <dd> 234 <dd>
238 style to check 235 style to check
251 </dd> 248 </dd>
252 </dl> 249 </dl>
253 <a NAME="LexerPython.language" ID="LexerPython.language"></a> 250 <a NAME="LexerPython.language" ID="LexerPython.language"></a>
254 <h4>LexerPython.language</h4> 251 <h4>LexerPython.language</h4>
255 <b>language</b>(<i></i>) 252 <b>language</b>(<i></i>)
256
257 <p> 253 <p>
258 Public method to get the lexer language. 254 Public method to get the lexer language.
259 </p> 255 </p>
256
260 <dl> 257 <dl>
261 <dt>Return:</dt> 258 <dt>Return:</dt>
262 <dd> 259 <dd>
263 lexer language 260 lexer language
264 </dd> 261 </dd>
270 </dd> 267 </dd>
271 </dl> 268 </dl>
272 <a NAME="LexerPython.maximumKeywordSet" ID="LexerPython.maximumKeywordSet"></a> 269 <a NAME="LexerPython.maximumKeywordSet" ID="LexerPython.maximumKeywordSet"></a>
273 <h4>LexerPython.maximumKeywordSet</h4> 270 <h4>LexerPython.maximumKeywordSet</h4>
274 <b>maximumKeywordSet</b>(<i></i>) 271 <b>maximumKeywordSet</b>(<i></i>)
275
276 <p> 272 <p>
277 Public method to get the maximum keyword set. 273 Public method to get the maximum keyword set.
278 </p> 274 </p>
275
279 <dl> 276 <dl>
280 <dt>Return:</dt> 277 <dt>Return:</dt>
281 <dd> 278 <dd>
282 maximum keyword set 279 maximum keyword set
283 </dd> 280 </dd>
292 <hr /> 289 <hr />
293 <hr /> 290 <hr />
294 <a NAME="createLexer" ID="createLexer"></a> 291 <a NAME="createLexer" ID="createLexer"></a>
295 <h2>createLexer</h2> 292 <h2>createLexer</h2>
296 <b>createLexer</b>(<i>variant="", parent=None</i>) 293 <b>createLexer</b>(<i>variant="", parent=None</i>)
297
298 <p> 294 <p>
299 Function to instantiate a lexer object. 295 Function to instantiate a lexer object.
300 </p> 296 </p>
297
301 <dl> 298 <dl>
302 299
303 <dt><i>variant</i> (str)</dt> 300 <dt><i>variant</i> (str)</dt>
304 <dd> 301 <dd>
305 name of the language variant 302 name of the language variant

eric ide

mercurial