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.LexerJavaScript</h1> |
9 <h1>eric7.QScintilla.Lexers.LexerJavaScript</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a JavaScript lexer with some additional methods. |
11 Module implementing a JavaScript 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="#LexerJavaScript">LexerJavaScript</a></td> |
22 <td><a href="#LexerJavaScript">LexerJavaScript</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="LexerJavaScript" ID="LexerJavaScript"></a> |
37 <a NAME="LexerJavaScript" ID="LexerJavaScript"></a> |
40 <h2>LexerJavaScript</h2> |
38 <h2>LexerJavaScript</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, QsciLexerJavaScript |
44 Lexer, QsciLexerJavaScript |
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="#LexerJavaScript.__init__">LexerJavaScript</a></td> |
58 <td><a href="#LexerJavaScript.__init__">LexerJavaScript</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="#LexerJavaScript.maximumKeywordSet">maximumKeywordSet</a></td> |
78 <td><a href="#LexerJavaScript.maximumKeywordSet">maximumKeywordSet</a></td> |
83 <td>Public method to get the maximum keyword set.</td> |
79 <td>Public method to get the maximum keyword set.</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="LexerJavaScript.__init__" ID="LexerJavaScript.__init__"></a> |
89 <a NAME="LexerJavaScript.__init__" ID="LexerJavaScript.__init__"></a> |
93 <h4>LexerJavaScript (Constructor)</h4> |
90 <h4>LexerJavaScript (Constructor)</h4> |
94 <b>LexerJavaScript</b>(<i>parent=None</i>) |
91 <b>LexerJavaScript</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="LexerJavaScript.defaultKeywords" ID="LexerJavaScript.defaultKeywords"></a> |
103 <a NAME="LexerJavaScript.defaultKeywords" ID="LexerJavaScript.defaultKeywords"></a> |
107 <h4>LexerJavaScript.defaultKeywords</h4> |
104 <h4>LexerJavaScript.defaultKeywords</h4> |
108 <b>defaultKeywords</b>(<i>kwSet</i>) |
105 <b>defaultKeywords</b>(<i>kwSet</i>) |
109 |
|
110 <p> |
106 <p> |
111 Public method to get the default keywords. |
107 Public method to get the default keywords. |
112 </p> |
108 </p> |
|
109 |
113 <dl> |
110 <dl> |
114 |
111 |
115 <dt><i>kwSet</i> (int)</dt> |
112 <dt><i>kwSet</i> (int)</dt> |
116 <dd> |
113 <dd> |
117 number of the keyword set |
114 number of the keyword set |
130 </dd> |
127 </dd> |
131 </dl> |
128 </dl> |
132 <a NAME="LexerJavaScript.initProperties" ID="LexerJavaScript.initProperties"></a> |
129 <a NAME="LexerJavaScript.initProperties" ID="LexerJavaScript.initProperties"></a> |
133 <h4>LexerJavaScript.initProperties</h4> |
130 <h4>LexerJavaScript.initProperties</h4> |
134 <b>initProperties</b>(<i></i>) |
131 <b>initProperties</b>(<i></i>) |
135 |
|
136 <p> |
132 <p> |
137 Public slot to initialize the properties. |
133 Public slot to initialize the properties. |
138 </p> |
134 </p> |
|
135 |
139 <a NAME="LexerJavaScript.isCommentStyle" ID="LexerJavaScript.isCommentStyle"></a> |
136 <a NAME="LexerJavaScript.isCommentStyle" ID="LexerJavaScript.isCommentStyle"></a> |
140 <h4>LexerJavaScript.isCommentStyle</h4> |
137 <h4>LexerJavaScript.isCommentStyle</h4> |
141 <b>isCommentStyle</b>(<i>style</i>) |
138 <b>isCommentStyle</b>(<i>style</i>) |
142 |
|
143 <p> |
139 <p> |
144 Public method to check, if a style is a comment style. |
140 Public method to check, if a style is a comment style. |
145 </p> |
141 </p> |
|
142 |
146 <dl> |
143 <dl> |
147 |
144 |
148 <dt><i>style</i> (int)</dt> |
145 <dt><i>style</i> (int)</dt> |
149 <dd> |
146 <dd> |
150 style to check |
147 style to check |
163 </dd> |
160 </dd> |
164 </dl> |
161 </dl> |
165 <a NAME="LexerJavaScript.isStringStyle" ID="LexerJavaScript.isStringStyle"></a> |
162 <a NAME="LexerJavaScript.isStringStyle" ID="LexerJavaScript.isStringStyle"></a> |
166 <h4>LexerJavaScript.isStringStyle</h4> |
163 <h4>LexerJavaScript.isStringStyle</h4> |
167 <b>isStringStyle</b>(<i>style</i>) |
164 <b>isStringStyle</b>(<i>style</i>) |
168 |
|
169 <p> |
165 <p> |
170 Public method to check, if a style is a string style. |
166 Public method to check, if a style is a string style. |
171 </p> |
167 </p> |
|
168 |
172 <dl> |
169 <dl> |
173 |
170 |
174 <dt><i>style</i> (int)</dt> |
171 <dt><i>style</i> (int)</dt> |
175 <dd> |
172 <dd> |
176 style to check |
173 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 |