eric7/Documentation/Source/eric7.QScintilla.Lexers.LexerCPP.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.QScintilla.Lexers.LexerCPP</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.QScintilla.Lexers.LexerCPP</h1>
24
25 <p>
26 Module implementing a CPP lexer with some additional methods.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#LexerCPP">LexerCPP</a></td>
39 <td>Subclass to implement some additional lexer dependant methods.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="LexerCPP" ID="LexerCPP"></a>
50 <h2>LexerCPP</h2>
51
52 <p>
53 Subclass to implement some additional lexer dependant methods.
54 </p>
55 <h3>Derived from</h3>
56 SubstyledLexer, QsciLexerCPP
57 <h3>Class Attributes</h3>
58
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68
69 <table>
70
71 <tr>
72 <td><a href="#LexerCPP.__init__">LexerCPP</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#LexerCPP.autoCompletionWordSeparators">autoCompletionWordSeparators</a></td>
77 <td>Public method to return the list of separators for autocompletion.</td>
78 </tr>
79 <tr>
80 <td><a href="#LexerCPP.defaultKeywords">defaultKeywords</a></td>
81 <td>Public method to get the default keywords.</td>
82 </tr>
83 <tr>
84 <td><a href="#LexerCPP.initProperties">initProperties</a></td>
85 <td>Public slot to initialize the properties.</td>
86 </tr>
87 <tr>
88 <td><a href="#LexerCPP.isCommentStyle">isCommentStyle</a></td>
89 <td>Public method to check, if a style is a comment style.</td>
90 </tr>
91 <tr>
92 <td><a href="#LexerCPP.isStringStyle">isStringStyle</a></td>
93 <td>Public method to check, if a style is a string style.</td>
94 </tr>
95 <tr>
96 <td><a href="#LexerCPP.maximumKeywordSet">maximumKeywordSet</a></td>
97 <td>Public method to get the maximum keyword set.</td>
98 </tr>
99 </table>
100 <h3>Static Methods</h3>
101
102 <table>
103 <tr><td>None</td></tr>
104 </table>
105
106 <a NAME="LexerCPP.__init__" ID="LexerCPP.__init__"></a>
107 <h4>LexerCPP (Constructor)</h4>
108 <b>LexerCPP</b>(<i>parent=None, caseInsensitiveKeywords=False</i>)
109
110 <p>
111 Constructor
112 </p>
113 <dl>
114
115 <dt><i>parent</i></dt>
116 <dd>
117 parent widget of this lexer
118 </dd>
119 <dt><i>caseInsensitiveKeywords</i></dt>
120 <dd>
121 flag indicating keywords are case
122 insensitive (boolean)
123 </dd>
124 </dl>
125 <a NAME="LexerCPP.autoCompletionWordSeparators" ID="LexerCPP.autoCompletionWordSeparators"></a>
126 <h4>LexerCPP.autoCompletionWordSeparators</h4>
127 <b>autoCompletionWordSeparators</b>(<i></i>)
128
129 <p>
130 Public method to return the list of separators for autocompletion.
131 </p>
132 <dl>
133 <dt>Return:</dt>
134 <dd>
135 list of separators (list of strings)
136 </dd>
137 </dl>
138 <a NAME="LexerCPP.defaultKeywords" ID="LexerCPP.defaultKeywords"></a>
139 <h4>LexerCPP.defaultKeywords</h4>
140 <b>defaultKeywords</b>(<i>kwSet</i>)
141
142 <p>
143 Public method to get the default keywords.
144 </p>
145 <dl>
146
147 <dt><i>kwSet</i></dt>
148 <dd>
149 number of the keyword set (integer)
150 </dd>
151 </dl>
152 <dl>
153 <dt>Return:</dt>
154 <dd>
155 string giving the keywords (string) or None
156 </dd>
157 </dl>
158 <a NAME="LexerCPP.initProperties" ID="LexerCPP.initProperties"></a>
159 <h4>LexerCPP.initProperties</h4>
160 <b>initProperties</b>(<i></i>)
161
162 <p>
163 Public slot to initialize the properties.
164 </p>
165 <a NAME="LexerCPP.isCommentStyle" ID="LexerCPP.isCommentStyle"></a>
166 <h4>LexerCPP.isCommentStyle</h4>
167 <b>isCommentStyle</b>(<i>style</i>)
168
169 <p>
170 Public method to check, if a style is a comment style.
171 </p>
172 <dl>
173
174 <dt><i>style</i></dt>
175 <dd>
176 style to check (integer)
177 </dd>
178 </dl>
179 <dl>
180 <dt>Return:</dt>
181 <dd>
182 flag indicating a comment style (boolean)
183 </dd>
184 </dl>
185 <a NAME="LexerCPP.isStringStyle" ID="LexerCPP.isStringStyle"></a>
186 <h4>LexerCPP.isStringStyle</h4>
187 <b>isStringStyle</b>(<i>style</i>)
188
189 <p>
190 Public method to check, if a style is a string style.
191 </p>
192 <dl>
193
194 <dt><i>style</i></dt>
195 <dd>
196 style to check (integer)
197 </dd>
198 </dl>
199 <dl>
200 <dt>Return:</dt>
201 <dd>
202 flag indicating a string style (boolean)
203 </dd>
204 </dl>
205 <a NAME="LexerCPP.maximumKeywordSet" ID="LexerCPP.maximumKeywordSet"></a>
206 <h4>LexerCPP.maximumKeywordSet</h4>
207 <b>maximumKeywordSet</b>(<i></i>)
208
209 <p>
210 Public method to get the maximum keyword set.
211 </p>
212 <dl>
213 <dt>Return:</dt>
214 <dd>
215 maximum keyword set (integer)
216 </dd>
217 </dl>
218 <div align="right"><a href="#top">Up</a></div>
219 <hr />
220 </body></html>

eric ide

mercurial