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.LexerPerl</h1> |
9 <h1>eric7.QScintilla.Lexers.LexerPerl</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a Perl lexer with some additional methods. |
11 Module implementing a Perl lexer with some additional methods. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#LexerPerl">LexerPerl</a></td> |
22 <td><a href="#LexerPerl">LexerPerl</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="LexerPerl" ID="LexerPerl"></a> |
37 <a NAME="LexerPerl" ID="LexerPerl"></a> |
40 <h2>LexerPerl</h2> |
38 <h2>LexerPerl</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 Lexer, QsciLexerPerl |
44 Lexer, QsciLexerPerl |
47 <h3>Class Attributes</h3> |
45 <h3>Class Attributes</h3> |
48 |
46 <table> |
49 <table> |
47 <tr><td>None</td></tr> |
50 <tr><td>None</td></tr> |
48 </table> |
51 </table> |
49 |
52 <h3>Class Methods</h3> |
50 <h3>Class Methods</h3> |
53 |
51 <table> |
54 <table> |
52 <tr><td>None</td></tr> |
55 <tr><td>None</td></tr> |
53 </table> |
56 </table> |
54 |
57 <h3>Methods</h3> |
55 <h3>Methods</h3> |
58 |
56 <table> |
59 <table> |
|
60 |
|
61 <tr> |
57 <tr> |
62 <td><a href="#LexerPerl.__init__">LexerPerl</a></td> |
58 <td><a href="#LexerPerl.__init__">LexerPerl</a></td> |
63 <td>Constructor</td> |
59 <td>Constructor</td> |
64 </tr> |
60 </tr> |
65 <tr> |
61 <tr> |
81 <tr> |
77 <tr> |
82 <td><a href="#LexerPerl.isStringStyle">isStringStyle</a></td> |
78 <td><a href="#LexerPerl.isStringStyle">isStringStyle</a></td> |
83 <td>Public method to check, if a style is a string style.</td> |
79 <td>Public method to check, if a style is a string style.</td> |
84 </tr> |
80 </tr> |
85 </table> |
81 </table> |
|
82 |
86 <h3>Static Methods</h3> |
83 <h3>Static Methods</h3> |
87 |
84 <table> |
88 <table> |
85 <tr><td>None</td></tr> |
89 <tr><td>None</td></tr> |
86 </table> |
90 </table> |
87 |
91 |
88 |
92 <a NAME="LexerPerl.__init__" ID="LexerPerl.__init__"></a> |
89 <a NAME="LexerPerl.__init__" ID="LexerPerl.__init__"></a> |
93 <h4>LexerPerl (Constructor)</h4> |
90 <h4>LexerPerl (Constructor)</h4> |
94 <b>LexerPerl</b>(<i>parent=None</i>) |
91 <b>LexerPerl</b>(<i>parent=None</i>) |
95 |
|
96 <p> |
92 <p> |
97 Constructor |
93 Constructor |
98 </p> |
94 </p> |
|
95 |
99 <dl> |
96 <dl> |
100 |
97 |
101 <dt><i>parent</i> (QWidget)</dt> |
98 <dt><i>parent</i> (QWidget)</dt> |
102 <dd> |
99 <dd> |
103 parent widget of this lexer |
100 parent widget of this lexer |
104 </dd> |
101 </dd> |
105 </dl> |
102 </dl> |
106 <a NAME="LexerPerl.autoCompletionWordSeparators" ID="LexerPerl.autoCompletionWordSeparators"></a> |
103 <a NAME="LexerPerl.autoCompletionWordSeparators" ID="LexerPerl.autoCompletionWordSeparators"></a> |
107 <h4>LexerPerl.autoCompletionWordSeparators</h4> |
104 <h4>LexerPerl.autoCompletionWordSeparators</h4> |
108 <b>autoCompletionWordSeparators</b>(<i></i>) |
105 <b>autoCompletionWordSeparators</b>(<i></i>) |
109 |
|
110 <p> |
106 <p> |
111 Public method to return the list of separators for autocompletion. |
107 Public method to return the list of separators for autocompletion. |
112 </p> |
108 </p> |
|
109 |
113 <dl> |
110 <dl> |
114 <dt>Return:</dt> |
111 <dt>Return:</dt> |
115 <dd> |
112 <dd> |
116 list of separators |
113 list of separators |
117 </dd> |
114 </dd> |
123 </dd> |
120 </dd> |
124 </dl> |
121 </dl> |
125 <a NAME="LexerPerl.defaultKeywords" ID="LexerPerl.defaultKeywords"></a> |
122 <a NAME="LexerPerl.defaultKeywords" ID="LexerPerl.defaultKeywords"></a> |
126 <h4>LexerPerl.defaultKeywords</h4> |
123 <h4>LexerPerl.defaultKeywords</h4> |
127 <b>defaultKeywords</b>(<i>kwSet</i>) |
124 <b>defaultKeywords</b>(<i>kwSet</i>) |
128 |
|
129 <p> |
125 <p> |
130 Public method to get the default keywords. |
126 Public method to get the default keywords. |
131 </p> |
127 </p> |
|
128 |
132 <dl> |
129 <dl> |
133 |
130 |
134 <dt><i>kwSet</i> (int)</dt> |
131 <dt><i>kwSet</i> (int)</dt> |
135 <dd> |
132 <dd> |
136 number of the keyword set |
133 number of the keyword set |
149 </dd> |
146 </dd> |
150 </dl> |
147 </dl> |
151 <a NAME="LexerPerl.initProperties" ID="LexerPerl.initProperties"></a> |
148 <a NAME="LexerPerl.initProperties" ID="LexerPerl.initProperties"></a> |
152 <h4>LexerPerl.initProperties</h4> |
149 <h4>LexerPerl.initProperties</h4> |
153 <b>initProperties</b>(<i></i>) |
150 <b>initProperties</b>(<i></i>) |
154 |
|
155 <p> |
151 <p> |
156 Public slot to initialize the properties. |
152 Public slot to initialize the properties. |
157 </p> |
153 </p> |
|
154 |
158 <a NAME="LexerPerl.isCommentStyle" ID="LexerPerl.isCommentStyle"></a> |
155 <a NAME="LexerPerl.isCommentStyle" ID="LexerPerl.isCommentStyle"></a> |
159 <h4>LexerPerl.isCommentStyle</h4> |
156 <h4>LexerPerl.isCommentStyle</h4> |
160 <b>isCommentStyle</b>(<i>style</i>) |
157 <b>isCommentStyle</b>(<i>style</i>) |
161 |
|
162 <p> |
158 <p> |
163 Public method to check, if a style is a comment style. |
159 Public method to check, if a style is a comment style. |
164 </p> |
160 </p> |
|
161 |
165 <dl> |
162 <dl> |
166 |
163 |
167 <dt><i>style</i> (int)</dt> |
164 <dt><i>style</i> (int)</dt> |
168 <dd> |
165 <dd> |
169 style to check |
166 style to check |
182 </dd> |
179 </dd> |
183 </dl> |
180 </dl> |
184 <a NAME="LexerPerl.isStringStyle" ID="LexerPerl.isStringStyle"></a> |
181 <a NAME="LexerPerl.isStringStyle" ID="LexerPerl.isStringStyle"></a> |
185 <h4>LexerPerl.isStringStyle</h4> |
182 <h4>LexerPerl.isStringStyle</h4> |
186 <b>isStringStyle</b>(<i>style</i>) |
183 <b>isStringStyle</b>(<i>style</i>) |
187 |
|
188 <p> |
184 <p> |
189 Public method to check, if a style is a string style. |
185 Public method to check, if a style is a string style. |
190 </p> |
186 </p> |
|
187 |
191 <dl> |
188 <dl> |
192 |
189 |
193 <dt><i>style</i> (int)</dt> |
190 <dt><i>style</i> (int)</dt> |
194 <dd> |
191 <dd> |
195 style to check |
192 style to check |
211 <hr /> |
208 <hr /> |
212 <hr /> |
209 <hr /> |
213 <a NAME="createLexer" ID="createLexer"></a> |
210 <a NAME="createLexer" ID="createLexer"></a> |
214 <h2>createLexer</h2> |
211 <h2>createLexer</h2> |
215 <b>createLexer</b>(<i>variant="", parent=None</i>) |
212 <b>createLexer</b>(<i>variant="", parent=None</i>) |
216 |
|
217 <p> |
213 <p> |
218 Function to instantiate a lexer object. |
214 Function to instantiate a lexer object. |
219 </p> |
215 </p> |
|
216 |
220 <dl> |
217 <dl> |
221 |
218 |
222 <dt><i>variant</i> (str)</dt> |
219 <dt><i>variant</i> (str)</dt> |
223 <dd> |
220 <dd> |
224 name of the language variant |
221 name of the language variant |