|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.QScintilla.Lexers.LexerJavaScript</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.QScintilla.Lexers.LexerJavaScript</h1> |
|
23 <p> |
|
24 Module implementing a JavaScript lexer with some additional methods. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#LexerJavaScript">LexerJavaScript</a></td> |
|
34 <td>Subclass to implement some additional lexer dependant methods.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="LexerJavaScript" ID="LexerJavaScript"></a> |
|
43 <h2>LexerJavaScript</h2> |
|
44 <p> |
|
45 Subclass to implement some additional lexer dependant methods. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 Lexer, QsciLexerJavaScript |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#LexerJavaScript.__init__">LexerJavaScript</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LexerJavaScript.defaultKeywords">defaultKeywords</a></td> |
|
64 <td>Public method to get the default keywords.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#LexerJavaScript.initProperties">initProperties</a></td> |
|
67 <td>Public slot to initialize the properties.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#LexerJavaScript.isCommentStyle">isCommentStyle</a></td> |
|
70 <td>Public method to check, if a style is a comment style.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#LexerJavaScript.isStringStyle">isStringStyle</a></td> |
|
73 <td>Public method to check, if a style is a string style.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#LexerJavaScript.maximumKeywordSet">maximumKeywordSet</a></td> |
|
76 <td>Public method to get the maximum keyword set.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="LexerJavaScript.__init__" ID="LexerJavaScript.__init__"></a> |
|
84 <h4>LexerJavaScript (Constructor)</h4> |
|
85 <b>LexerJavaScript</b>(<i>parent=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>parent</i></dt> |
|
90 <dd> |
|
91 parent widget of this lexer |
|
92 </dd> |
|
93 </dl><a NAME="LexerJavaScript.defaultKeywords" ID="LexerJavaScript.defaultKeywords"></a> |
|
94 <h4>LexerJavaScript.defaultKeywords</h4> |
|
95 <b>defaultKeywords</b>(<i>kwSet</i>) |
|
96 <p> |
|
97 Public method to get the default keywords. |
|
98 </p><dl> |
|
99 <dt><i>kwSet</i></dt> |
|
100 <dd> |
|
101 number of the keyword set (integer) |
|
102 </dd> |
|
103 </dl><dl> |
|
104 <dt>Returns:</dt> |
|
105 <dd> |
|
106 string giving the keywords (string) or None |
|
107 </dd> |
|
108 </dl><a NAME="LexerJavaScript.initProperties" ID="LexerJavaScript.initProperties"></a> |
|
109 <h4>LexerJavaScript.initProperties</h4> |
|
110 <b>initProperties</b>(<i></i>) |
|
111 <p> |
|
112 Public slot to initialize the properties. |
|
113 </p><a NAME="LexerJavaScript.isCommentStyle" ID="LexerJavaScript.isCommentStyle"></a> |
|
114 <h4>LexerJavaScript.isCommentStyle</h4> |
|
115 <b>isCommentStyle</b>(<i>style</i>) |
|
116 <p> |
|
117 Public method to check, if a style is a comment style. |
|
118 </p><dl> |
|
119 <dt><i>style</i></dt> |
|
120 <dd> |
|
121 style to check (integer) |
|
122 </dd> |
|
123 </dl><dl> |
|
124 <dt>Returns:</dt> |
|
125 <dd> |
|
126 flag indicating a comment style (boolean) |
|
127 </dd> |
|
128 </dl><a NAME="LexerJavaScript.isStringStyle" ID="LexerJavaScript.isStringStyle"></a> |
|
129 <h4>LexerJavaScript.isStringStyle</h4> |
|
130 <b>isStringStyle</b>(<i>style</i>) |
|
131 <p> |
|
132 Public method to check, if a style is a string style. |
|
133 </p><dl> |
|
134 <dt><i>style</i></dt> |
|
135 <dd> |
|
136 style to check (integer) |
|
137 </dd> |
|
138 </dl><dl> |
|
139 <dt>Returns:</dt> |
|
140 <dd> |
|
141 flag indicating a string style (boolean) |
|
142 </dd> |
|
143 </dl><a NAME="LexerJavaScript.maximumKeywordSet" ID="LexerJavaScript.maximumKeywordSet"></a> |
|
144 <h4>LexerJavaScript.maximumKeywordSet</h4> |
|
145 <b>maximumKeywordSet</b>(<i></i>) |
|
146 <p> |
|
147 Public method to get the maximum keyword set. |
|
148 </p><dl> |
|
149 <dt>Returns:</dt> |
|
150 <dd> |
|
151 maximum keyword set (integer) |
|
152 </dd> |
|
153 </dl> |
|
154 <div align="right"><a href="#top">Up</a></div> |
|
155 <hr /> |
|
156 </body></html> |