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

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

eric ide

mercurial