/src/qtbase/src/gui/text/qcssscanner.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /**************************************************************************** |
2 | | ** |
3 | | ** Copyright (C) 2018 The Qt Company Ltd. |
4 | | ** Contact: https://www.qt.io/licensing/ |
5 | | ** |
6 | | ** This file is part of the QtGui module of the Qt Toolkit. |
7 | | ** |
8 | | ** $QT_BEGIN_LICENSE:LGPL$ |
9 | | ** Commercial License Usage |
10 | | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | | ** accordance with the commercial license agreement provided with the |
12 | | ** Software or, alternatively, in accordance with the terms contained in |
13 | | ** a written agreement between you and The Qt Company. For licensing terms |
14 | | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | | ** information use the contact form at https://www.qt.io/contact-us. |
16 | | ** |
17 | | ** GNU Lesser General Public License Usage |
18 | | ** Alternatively, this file may be used under the terms of the GNU Lesser |
19 | | ** General Public License version 3 as published by the Free Software |
20 | | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
21 | | ** packaging of this file. Please review the following information to |
22 | | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
24 | | ** |
25 | | ** GNU General Public License Usage |
26 | | ** Alternatively, this file may be used under the terms of the GNU |
27 | | ** General Public License version 2.0 or (at your option) the GNU General |
28 | | ** Public license version 3 or any later version approved by the KDE Free |
29 | | ** Qt Foundation. The licenses are as published by the Free Software |
30 | | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
31 | | ** included in the packaging of this file. Please review the following |
32 | | ** information to ensure the GNU General Public License requirements will |
33 | | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
34 | | ** https://www.gnu.org/licenses/gpl-3.0.html. |
35 | | ** |
36 | | ** $QT_END_LICENSE$ |
37 | | ** |
38 | | ****************************************************************************/ |
39 | | |
40 | | // auto generated by qtbase/util/lexgen/. DO NOT EDIT. |
41 | | class QCssScanner_Generated |
42 | | { |
43 | | public: |
44 | | QCssScanner_Generated(const QString &inp); |
45 | | |
46 | 0 | inline QChar next() { |
47 | 0 | return (pos < input.length()) ? input.at(pos++) : QChar(); |
48 | 0 | } |
49 | | int handleCommentStart(); |
50 | | int lex(); |
51 | | |
52 | | QString input; |
53 | | int pos; |
54 | | int lexemStart; |
55 | | int lexemLength; |
56 | | }; |
57 | | |
58 | | QCssScanner_Generated::QCssScanner_Generated(const QString &inp) |
59 | 0 | { |
60 | 0 | input = inp; |
61 | 0 | pos = 0; |
62 | 0 | lexemStart = 0; |
63 | 0 | lexemLength = 0; |
64 | 0 | } |
65 | | |
66 | | |
67 | | int QCssScanner_Generated::lex() |
68 | 0 | { |
69 | 0 | lexemStart = pos; |
70 | 0 | lexemLength = 0; |
71 | 0 | int lastAcceptingPos = -1; |
72 | 0 | int token = -1; |
73 | 0 | QChar ch; |
74 | | |
75 | | // initial state |
76 | 0 | ch = next(); |
77 | 0 | if (ch.unicode() >= 9 && ch.unicode() <= 10) |
78 | 0 | goto state_4; |
79 | 0 | if (ch.unicode() >= 12 && ch.unicode() <= 13) |
80 | 0 | goto state_4; |
81 | 0 | if (ch.unicode() == 32) |
82 | 0 | goto state_4; |
83 | 0 | if (ch.unicode() == 33) { |
84 | 0 | token = QCss::EXCLAMATION_SYM; |
85 | 0 | goto found; |
86 | 0 | } |
87 | 0 | if (ch.unicode() == 34) |
88 | 0 | goto state_2; |
89 | 0 | if (ch.unicode() == 35) |
90 | 0 | goto state_1; |
91 | 0 | if (ch.unicode() == 36) |
92 | 0 | goto state_6; |
93 | 0 | if (ch.unicode() == 39) |
94 | 0 | goto state_5; |
95 | 0 | if (ch.unicode() == 40) { |
96 | 0 | token = QCss::LPAREN; |
97 | 0 | goto found; |
98 | 0 | } |
99 | 0 | if (ch.unicode() == 41) { |
100 | 0 | token = QCss::RPAREN; |
101 | 0 | goto found; |
102 | 0 | } |
103 | 0 | if (ch.unicode() == 42) |
104 | 0 | goto state_8; |
105 | 0 | if (ch.unicode() == 43) |
106 | 0 | goto state_7; |
107 | 0 | if (ch.unicode() == 44) |
108 | 0 | goto state_14; |
109 | 0 | if (ch.unicode() == 45) |
110 | 0 | goto state_13; |
111 | 0 | if (ch.unicode() == 46) |
112 | 0 | goto state_12; |
113 | 0 | if (ch.unicode() == 47) |
114 | 0 | goto state_11; |
115 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
116 | 0 | goto state_15; |
117 | 0 | if (ch.unicode() == 58) { |
118 | 0 | token = QCss::COLON; |
119 | 0 | goto found; |
120 | 0 | } |
121 | 0 | if (ch.unicode() == 59) { |
122 | 0 | token = QCss::SEMICOLON; |
123 | 0 | goto found; |
124 | 0 | } |
125 | 0 | if (ch.unicode() == 60) |
126 | 0 | goto state_20; |
127 | 0 | if (ch.unicode() == 61) { |
128 | 0 | token = QCss::EQUAL; |
129 | 0 | goto found; |
130 | 0 | } |
131 | 0 | if (ch.unicode() == 62) |
132 | 0 | goto state_18; |
133 | 0 | if (ch.unicode() == 64) |
134 | 0 | goto state_26; |
135 | 0 | if (ch.unicode() == 91) { |
136 | 0 | token = QCss::LBRACKET; |
137 | 0 | goto found; |
138 | 0 | } |
139 | 0 | if (ch.unicode() == 92) |
140 | 0 | goto state_30; |
141 | 0 | if (ch.unicode() == 93) { |
142 | 0 | token = QCss::RBRACKET; |
143 | 0 | goto found; |
144 | 0 | } |
145 | 0 | if (ch.unicode() == 94) |
146 | 0 | goto state_28; |
147 | 0 | if (ch.unicode() == 95) |
148 | 0 | goto state_21; |
149 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
150 | 0 | goto state_21; |
151 | 0 | if (ch.unicode() == 123) |
152 | 0 | goto state_22; |
153 | 0 | if (ch.unicode() == 124) |
154 | 0 | goto state_25; |
155 | 0 | if (ch.unicode() == 125) { |
156 | 0 | token = QCss::RBRACE; |
157 | 0 | goto found; |
158 | 0 | } |
159 | 0 | if (ch.unicode() == 126) |
160 | 0 | goto state_23; |
161 | 0 | goto out; |
162 | 0 | state_1: |
163 | 0 | ch = next(); |
164 | 0 | if (ch.unicode() == 45) |
165 | 0 | goto state_31; |
166 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
167 | 0 | goto state_31; |
168 | 0 | if (ch.unicode() == 92) |
169 | 0 | goto state_32; |
170 | 0 | if (ch.unicode() == 95) |
171 | 0 | goto state_31; |
172 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
173 | 0 | goto state_31; |
174 | 0 | goto out; |
175 | 0 | state_2: |
176 | 0 | lastAcceptingPos = pos; |
177 | 0 | token = QCss::INVALID; |
178 | 0 | ch = next(); |
179 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
180 | 0 | goto state_33; |
181 | 0 | if (ch.unicode() == 11) |
182 | 0 | goto state_33; |
183 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
184 | 0 | goto state_33; |
185 | 0 | if (ch.unicode() == 34) |
186 | 0 | goto state_34; |
187 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
188 | 0 | goto state_33; |
189 | 0 | if (ch.unicode() == 92) |
190 | 0 | goto state_35; |
191 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
192 | 0 | goto state_33; |
193 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
194 | 0 | goto state_33; |
195 | 0 | if (ch.unicode() >= 123) |
196 | 0 | goto state_33; |
197 | 0 | goto out; |
198 | 0 | state_4: |
199 | 0 | lastAcceptingPos = pos; |
200 | 0 | token = QCss::S; |
201 | 0 | ch = next(); |
202 | 0 | if (ch.unicode() >= 9 && ch.unicode() <= 10) |
203 | 0 | goto state_36; |
204 | 0 | if (ch.unicode() >= 12 && ch.unicode() <= 13) |
205 | 0 | goto state_36; |
206 | 0 | if (ch.unicode() == 32) |
207 | 0 | goto state_36; |
208 | 0 | if (ch.unicode() == 43) |
209 | 0 | goto state_7; |
210 | 0 | if (ch.unicode() == 44) |
211 | 0 | goto state_14; |
212 | 0 | if (ch.unicode() == 62) |
213 | 0 | goto state_18; |
214 | 0 | if (ch.unicode() == 123) |
215 | 0 | goto state_22; |
216 | 0 | if (ch.unicode() == 126) |
217 | 0 | goto state_37; |
218 | 0 | goto out; |
219 | 0 | state_5: |
220 | 0 | lastAcceptingPos = pos; |
221 | 0 | token = QCss::INVALID; |
222 | 0 | ch = next(); |
223 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
224 | 0 | goto state_38; |
225 | 0 | if (ch.unicode() == 11) |
226 | 0 | goto state_38; |
227 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
228 | 0 | goto state_38; |
229 | 0 | if (ch.unicode() == 39) |
230 | 0 | goto state_39; |
231 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
232 | 0 | goto state_38; |
233 | 0 | if (ch.unicode() == 92) |
234 | 0 | goto state_40; |
235 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
236 | 0 | goto state_38; |
237 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
238 | 0 | goto state_38; |
239 | 0 | if (ch.unicode() >= 123) |
240 | 0 | goto state_38; |
241 | 0 | goto out; |
242 | 0 | state_6: |
243 | 0 | ch = next(); |
244 | 0 | if (ch.unicode() == 61) { |
245 | 0 | token = QCss::ENDSWITH; |
246 | 0 | goto found; |
247 | 0 | } |
248 | 0 | goto out; |
249 | 0 | state_7: |
250 | 0 | lastAcceptingPos = pos; |
251 | 0 | token = QCss::PLUS; |
252 | 0 | goto out; |
253 | 0 | state_8: |
254 | 0 | lastAcceptingPos = pos; |
255 | 0 | token = QCss::STAR; |
256 | 0 | ch = next(); |
257 | 0 | if (ch.unicode() == 61) { |
258 | 0 | token = QCss::CONTAINS; |
259 | 0 | goto found; |
260 | 0 | } |
261 | 0 | goto out; |
262 | 0 | state_11: |
263 | 0 | lastAcceptingPos = pos; |
264 | 0 | token = QCss::SLASH; |
265 | 0 | ch = next(); |
266 | 0 | if (ch.unicode() == 42) { |
267 | 0 | token = handleCommentStart(); |
268 | 0 | goto found; |
269 | 0 | } |
270 | 0 | goto out; |
271 | 0 | state_12: |
272 | 0 | lastAcceptingPos = pos; |
273 | 0 | token = QCss::DOT; |
274 | 0 | ch = next(); |
275 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
276 | 0 | goto state_44; |
277 | 0 | goto out; |
278 | 0 | state_13: |
279 | 0 | lastAcceptingPos = pos; |
280 | 0 | token = QCss::MINUS; |
281 | 0 | ch = next(); |
282 | 0 | if (ch.unicode() == 45) |
283 | 0 | goto state_45; |
284 | 0 | if (ch.unicode() == 92) |
285 | 0 | goto state_30; |
286 | 0 | if (ch.unicode() == 95) |
287 | 0 | goto state_21; |
288 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
289 | 0 | goto state_21; |
290 | 0 | goto out; |
291 | 0 | state_14: |
292 | 0 | lastAcceptingPos = pos; |
293 | 0 | token = QCss::COMMA; |
294 | 0 | goto out; |
295 | 0 | state_15: |
296 | 0 | lastAcceptingPos = pos; |
297 | 0 | token = QCss::NUMBER; |
298 | 0 | ch = next(); |
299 | 0 | if (ch.unicode() == 37) |
300 | 0 | goto state_46; |
301 | 0 | if (ch.unicode() == 45) |
302 | 0 | goto state_48; |
303 | 0 | if (ch.unicode() == 46) |
304 | 0 | goto state_47; |
305 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
306 | 0 | goto state_49; |
307 | 0 | if (ch.unicode() == 92) |
308 | 0 | goto state_51; |
309 | 0 | if (ch.unicode() == 95) |
310 | 0 | goto state_50; |
311 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
312 | 0 | goto state_50; |
313 | 0 | goto out; |
314 | 0 | state_18: |
315 | 0 | lastAcceptingPos = pos; |
316 | 0 | token = QCss::GREATER; |
317 | 0 | goto out; |
318 | 0 | state_20: |
319 | 0 | ch = next(); |
320 | 0 | if (ch.unicode() == 33) |
321 | 0 | goto state_52; |
322 | 0 | goto out; |
323 | 0 | state_21: |
324 | 0 | lastAcceptingPos = pos; |
325 | 0 | token = QCss::IDENT; |
326 | 0 | ch = next(); |
327 | 0 | if (ch.unicode() == 40) |
328 | 0 | goto state_53; |
329 | 0 | if (ch.unicode() == 45) |
330 | 0 | goto state_54; |
331 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
332 | 0 | goto state_54; |
333 | 0 | if (ch.unicode() == 92) |
334 | 0 | goto state_55; |
335 | 0 | if (ch.unicode() == 95) |
336 | 0 | goto state_54; |
337 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
338 | 0 | goto state_54; |
339 | 0 | goto out; |
340 | 0 | state_22: |
341 | 0 | lastAcceptingPos = pos; |
342 | 0 | token = QCss::LBRACE; |
343 | 0 | goto out; |
344 | 0 | state_23: |
345 | 0 | lastAcceptingPos = pos; |
346 | 0 | token = QCss::TILDE; |
347 | 0 | ch = next(); |
348 | 0 | if (ch.unicode() == 61) { |
349 | 0 | token = QCss::INCLUDES; |
350 | 0 | goto found; |
351 | 0 | } |
352 | 0 | goto out; |
353 | 0 | state_25: |
354 | 0 | lastAcceptingPos = pos; |
355 | 0 | token = QCss::OR; |
356 | 0 | ch = next(); |
357 | 0 | if (ch.unicode() == 61) { |
358 | 0 | token = QCss::DASHMATCH; |
359 | 0 | goto found; |
360 | 0 | } |
361 | 0 | goto out; |
362 | 0 | state_26: |
363 | 0 | ch = next(); |
364 | 0 | if (ch.unicode() == 45) |
365 | 0 | goto state_58; |
366 | 0 | if (ch.unicode() == 92) |
367 | 0 | goto state_60; |
368 | 0 | if (ch.unicode() == 95) |
369 | 0 | goto state_59; |
370 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
371 | 0 | goto state_59; |
372 | 0 | goto out; |
373 | 0 | state_28: |
374 | 0 | ch = next(); |
375 | 0 | if (ch.unicode() == 61) { |
376 | 0 | token = QCss::BEGINSWITH; |
377 | 0 | goto found; |
378 | 0 | } |
379 | 0 | goto out; |
380 | 0 | state_30: |
381 | 0 | ch = next(); |
382 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
383 | 0 | goto state_62; |
384 | 0 | if (ch.unicode() == 11) |
385 | 0 | goto state_62; |
386 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
387 | 0 | goto state_62; |
388 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
389 | 0 | goto state_62; |
390 | 0 | if (ch.unicode() >= 103) |
391 | 0 | goto state_62; |
392 | 0 | goto out; |
393 | 0 | state_31: |
394 | 0 | lastAcceptingPos = pos; |
395 | 0 | token = QCss::HASH; |
396 | 0 | ch = next(); |
397 | 0 | if (ch.unicode() == 45) |
398 | 0 | goto state_63; |
399 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
400 | 0 | goto state_63; |
401 | 0 | if (ch.unicode() == 92) |
402 | 0 | goto state_64; |
403 | 0 | if (ch.unicode() == 95) |
404 | 0 | goto state_63; |
405 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
406 | 0 | goto state_63; |
407 | 0 | goto out; |
408 | 0 | state_32: |
409 | 0 | ch = next(); |
410 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
411 | 0 | goto state_65; |
412 | 0 | if (ch.unicode() == 11) |
413 | 0 | goto state_65; |
414 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
415 | 0 | goto state_65; |
416 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
417 | 0 | goto state_65; |
418 | 0 | if (ch.unicode() >= 103) |
419 | 0 | goto state_65; |
420 | 0 | goto out; |
421 | 0 | state_33: |
422 | 0 | lastAcceptingPos = pos; |
423 | 0 | token = QCss::INVALID; |
424 | 0 | ch = next(); |
425 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
426 | 0 | goto state_33; |
427 | 0 | if (ch.unicode() == 11) |
428 | 0 | goto state_33; |
429 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
430 | 0 | goto state_33; |
431 | 0 | if (ch.unicode() == 34) |
432 | 0 | goto state_34; |
433 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
434 | 0 | goto state_33; |
435 | 0 | if (ch.unicode() == 92) |
436 | 0 | goto state_35; |
437 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
438 | 0 | goto state_33; |
439 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
440 | 0 | goto state_33; |
441 | 0 | if (ch.unicode() >= 123) |
442 | 0 | goto state_33; |
443 | 0 | goto out; |
444 | 0 | state_34: |
445 | 0 | lastAcceptingPos = pos; |
446 | 0 | token = QCss::STRING; |
447 | 0 | goto out; |
448 | 0 | state_35: |
449 | 0 | ch = next(); |
450 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
451 | 0 | goto state_66; |
452 | 0 | if (ch.unicode() == 10) |
453 | 0 | goto state_67; |
454 | 0 | if (ch.unicode() == 11) |
455 | 0 | goto state_66; |
456 | 0 | if (ch.unicode() == 12) |
457 | 0 | goto state_69; |
458 | 0 | if (ch.unicode() == 13) |
459 | 0 | goto state_68; |
460 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
461 | 0 | goto state_66; |
462 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
463 | 0 | goto state_66; |
464 | 0 | if (ch.unicode() >= 103) |
465 | 0 | goto state_66; |
466 | 0 | goto out; |
467 | 0 | state_36: |
468 | 0 | lastAcceptingPos = pos; |
469 | 0 | token = QCss::S; |
470 | 0 | ch = next(); |
471 | 0 | if (ch.unicode() >= 9 && ch.unicode() <= 10) |
472 | 0 | goto state_36; |
473 | 0 | if (ch.unicode() >= 12 && ch.unicode() <= 13) |
474 | 0 | goto state_36; |
475 | 0 | if (ch.unicode() == 32) |
476 | 0 | goto state_36; |
477 | 0 | if (ch.unicode() == 43) |
478 | 0 | goto state_7; |
479 | 0 | if (ch.unicode() == 44) |
480 | 0 | goto state_14; |
481 | 0 | if (ch.unicode() == 62) |
482 | 0 | goto state_18; |
483 | 0 | if (ch.unicode() == 123) |
484 | 0 | goto state_22; |
485 | 0 | if (ch.unicode() == 126) |
486 | 0 | goto state_37; |
487 | 0 | goto out; |
488 | 0 | state_37: |
489 | 0 | lastAcceptingPos = pos; |
490 | 0 | token = QCss::TILDE; |
491 | 0 | goto out; |
492 | 0 | state_38: |
493 | 0 | lastAcceptingPos = pos; |
494 | 0 | token = QCss::INVALID; |
495 | 0 | ch = next(); |
496 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
497 | 0 | goto state_38; |
498 | 0 | if (ch.unicode() == 11) |
499 | 0 | goto state_38; |
500 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
501 | 0 | goto state_38; |
502 | 0 | if (ch.unicode() == 39) |
503 | 0 | goto state_39; |
504 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
505 | 0 | goto state_38; |
506 | 0 | if (ch.unicode() == 92) |
507 | 0 | goto state_40; |
508 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
509 | 0 | goto state_38; |
510 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
511 | 0 | goto state_38; |
512 | 0 | if (ch.unicode() >= 123) |
513 | 0 | goto state_38; |
514 | 0 | goto out; |
515 | 0 | state_39: |
516 | 0 | lastAcceptingPos = pos; |
517 | 0 | token = QCss::STRING; |
518 | 0 | goto out; |
519 | 0 | state_40: |
520 | 0 | ch = next(); |
521 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
522 | 0 | goto state_70; |
523 | 0 | if (ch.unicode() == 10) |
524 | 0 | goto state_71; |
525 | 0 | if (ch.unicode() == 11) |
526 | 0 | goto state_70; |
527 | 0 | if (ch.unicode() == 12) |
528 | 0 | goto state_73; |
529 | 0 | if (ch.unicode() == 13) |
530 | 0 | goto state_72; |
531 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
532 | 0 | goto state_70; |
533 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
534 | 0 | goto state_70; |
535 | 0 | if (ch.unicode() >= 103) |
536 | 0 | goto state_70; |
537 | 0 | goto out; |
538 | 0 | state_44: |
539 | 0 | lastAcceptingPos = pos; |
540 | 0 | token = QCss::NUMBER; |
541 | 0 | ch = next(); |
542 | 0 | if (ch.unicode() == 37) |
543 | 0 | goto state_46; |
544 | 0 | if (ch.unicode() == 45) |
545 | 0 | goto state_48; |
546 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
547 | 0 | goto state_74; |
548 | 0 | if (ch.unicode() == 92) |
549 | 0 | goto state_51; |
550 | 0 | if (ch.unicode() == 95) |
551 | 0 | goto state_50; |
552 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
553 | 0 | goto state_50; |
554 | 0 | goto out; |
555 | 0 | state_45: |
556 | 0 | ch = next(); |
557 | 0 | if (ch.unicode() == 62) { |
558 | 0 | token = QCss::CDC; |
559 | 0 | goto found; |
560 | 0 | } |
561 | 0 | goto out; |
562 | 0 | state_46: |
563 | 0 | lastAcceptingPos = pos; |
564 | 0 | token = QCss::PERCENTAGE; |
565 | 0 | goto out; |
566 | 0 | state_47: |
567 | 0 | ch = next(); |
568 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
569 | 0 | goto state_44; |
570 | 0 | goto out; |
571 | 0 | state_48: |
572 | 0 | ch = next(); |
573 | 0 | if (ch.unicode() == 92) |
574 | 0 | goto state_51; |
575 | 0 | if (ch.unicode() == 95) |
576 | 0 | goto state_50; |
577 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
578 | 0 | goto state_50; |
579 | 0 | goto out; |
580 | 0 | state_49: |
581 | 0 | lastAcceptingPos = pos; |
582 | 0 | token = QCss::NUMBER; |
583 | 0 | ch = next(); |
584 | 0 | if (ch.unicode() == 37) |
585 | 0 | goto state_46; |
586 | 0 | if (ch.unicode() == 45) |
587 | 0 | goto state_48; |
588 | 0 | if (ch.unicode() == 46) |
589 | 0 | goto state_47; |
590 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
591 | 0 | goto state_49; |
592 | 0 | if (ch.unicode() == 92) |
593 | 0 | goto state_51; |
594 | 0 | if (ch.unicode() == 95) |
595 | 0 | goto state_50; |
596 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
597 | 0 | goto state_50; |
598 | 0 | goto out; |
599 | 0 | state_50: |
600 | 0 | lastAcceptingPos = pos; |
601 | 0 | token = QCss::LENGTH; |
602 | 0 | ch = next(); |
603 | 0 | if (ch.unicode() == 45) |
604 | 0 | goto state_76; |
605 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
606 | 0 | goto state_76; |
607 | 0 | if (ch.unicode() == 92) |
608 | 0 | goto state_77; |
609 | 0 | if (ch.unicode() == 95) |
610 | 0 | goto state_76; |
611 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
612 | 0 | goto state_76; |
613 | 0 | goto out; |
614 | 0 | state_51: |
615 | 0 | ch = next(); |
616 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
617 | 0 | goto state_78; |
618 | 0 | if (ch.unicode() == 11) |
619 | 0 | goto state_78; |
620 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
621 | 0 | goto state_78; |
622 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
623 | 0 | goto state_78; |
624 | 0 | if (ch.unicode() >= 103) |
625 | 0 | goto state_78; |
626 | 0 | goto out; |
627 | 0 | state_52: |
628 | 0 | ch = next(); |
629 | 0 | if (ch.unicode() == 45) |
630 | 0 | goto state_79; |
631 | 0 | goto out; |
632 | 0 | state_53: |
633 | 0 | lastAcceptingPos = pos; |
634 | 0 | token = QCss::FUNCTION; |
635 | 0 | goto out; |
636 | 0 | state_54: |
637 | 0 | lastAcceptingPos = pos; |
638 | 0 | token = QCss::IDENT; |
639 | 0 | ch = next(); |
640 | 0 | if (ch.unicode() == 40) |
641 | 0 | goto state_53; |
642 | 0 | if (ch.unicode() == 45) |
643 | 0 | goto state_54; |
644 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
645 | 0 | goto state_54; |
646 | 0 | if (ch.unicode() == 92) |
647 | 0 | goto state_55; |
648 | 0 | if (ch.unicode() == 95) |
649 | 0 | goto state_54; |
650 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
651 | 0 | goto state_54; |
652 | 0 | goto out; |
653 | 0 | state_55: |
654 | 0 | ch = next(); |
655 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
656 | 0 | goto state_80; |
657 | 0 | if (ch.unicode() == 11) |
658 | 0 | goto state_80; |
659 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
660 | 0 | goto state_80; |
661 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
662 | 0 | goto state_80; |
663 | 0 | if (ch.unicode() >= 103) |
664 | 0 | goto state_80; |
665 | 0 | goto out; |
666 | 0 | state_58: |
667 | 0 | ch = next(); |
668 | 0 | if (ch.unicode() == 92) |
669 | 0 | goto state_60; |
670 | 0 | if (ch.unicode() == 95) |
671 | 0 | goto state_59; |
672 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
673 | 0 | goto state_59; |
674 | 0 | goto out; |
675 | 0 | state_59: |
676 | 0 | lastAcceptingPos = pos; |
677 | 0 | token = QCss::ATKEYWORD_SYM; |
678 | 0 | ch = next(); |
679 | 0 | if (ch.unicode() == 45) |
680 | 0 | goto state_81; |
681 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
682 | 0 | goto state_81; |
683 | 0 | if (ch.unicode() == 92) |
684 | 0 | goto state_82; |
685 | 0 | if (ch.unicode() == 95) |
686 | 0 | goto state_81; |
687 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
688 | 0 | goto state_81; |
689 | 0 | goto out; |
690 | 0 | state_60: |
691 | 0 | ch = next(); |
692 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
693 | 0 | goto state_83; |
694 | 0 | if (ch.unicode() == 11) |
695 | 0 | goto state_83; |
696 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
697 | 0 | goto state_83; |
698 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
699 | 0 | goto state_83; |
700 | 0 | if (ch.unicode() >= 103) |
701 | 0 | goto state_83; |
702 | 0 | goto out; |
703 | 0 | state_62: |
704 | 0 | lastAcceptingPos = pos; |
705 | 0 | token = QCss::IDENT; |
706 | 0 | ch = next(); |
707 | 0 | if (ch.unicode() == 40) |
708 | 0 | goto state_53; |
709 | 0 | if (ch.unicode() == 45) |
710 | 0 | goto state_54; |
711 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
712 | 0 | goto state_54; |
713 | 0 | if (ch.unicode() == 92) |
714 | 0 | goto state_55; |
715 | 0 | if (ch.unicode() == 95) |
716 | 0 | goto state_54; |
717 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
718 | 0 | goto state_54; |
719 | 0 | goto out; |
720 | 0 | state_63: |
721 | 0 | lastAcceptingPos = pos; |
722 | 0 | token = QCss::HASH; |
723 | 0 | ch = next(); |
724 | 0 | if (ch.unicode() == 45) |
725 | 0 | goto state_63; |
726 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
727 | 0 | goto state_63; |
728 | 0 | if (ch.unicode() == 92) |
729 | 0 | goto state_64; |
730 | 0 | if (ch.unicode() == 95) |
731 | 0 | goto state_63; |
732 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
733 | 0 | goto state_63; |
734 | 0 | goto out; |
735 | 0 | state_64: |
736 | 0 | ch = next(); |
737 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
738 | 0 | goto state_84; |
739 | 0 | if (ch.unicode() == 11) |
740 | 0 | goto state_84; |
741 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
742 | 0 | goto state_84; |
743 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
744 | 0 | goto state_84; |
745 | 0 | if (ch.unicode() >= 103) |
746 | 0 | goto state_84; |
747 | 0 | goto out; |
748 | 0 | state_65: |
749 | 0 | lastAcceptingPos = pos; |
750 | 0 | token = QCss::HASH; |
751 | 0 | ch = next(); |
752 | 0 | if (ch.unicode() == 45) |
753 | 0 | goto state_63; |
754 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
755 | 0 | goto state_63; |
756 | 0 | if (ch.unicode() == 92) |
757 | 0 | goto state_64; |
758 | 0 | if (ch.unicode() == 95) |
759 | 0 | goto state_63; |
760 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
761 | 0 | goto state_63; |
762 | 0 | goto out; |
763 | 0 | state_66: |
764 | 0 | lastAcceptingPos = pos; |
765 | 0 | token = QCss::INVALID; |
766 | 0 | ch = next(); |
767 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
768 | 0 | goto state_33; |
769 | 0 | if (ch.unicode() == 11) |
770 | 0 | goto state_33; |
771 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
772 | 0 | goto state_33; |
773 | 0 | if (ch.unicode() == 34) |
774 | 0 | goto state_34; |
775 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
776 | 0 | goto state_33; |
777 | 0 | if (ch.unicode() == 92) |
778 | 0 | goto state_35; |
779 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
780 | 0 | goto state_33; |
781 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
782 | 0 | goto state_33; |
783 | 0 | if (ch.unicode() >= 123) |
784 | 0 | goto state_33; |
785 | 0 | goto out; |
786 | 0 | state_67: |
787 | 0 | lastAcceptingPos = pos; |
788 | 0 | token = QCss::INVALID; |
789 | 0 | ch = next(); |
790 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
791 | 0 | goto state_33; |
792 | 0 | if (ch.unicode() == 11) |
793 | 0 | goto state_33; |
794 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
795 | 0 | goto state_33; |
796 | 0 | if (ch.unicode() == 34) |
797 | 0 | goto state_34; |
798 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
799 | 0 | goto state_33; |
800 | 0 | if (ch.unicode() == 92) |
801 | 0 | goto state_35; |
802 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
803 | 0 | goto state_33; |
804 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
805 | 0 | goto state_33; |
806 | 0 | if (ch.unicode() >= 123) |
807 | 0 | goto state_33; |
808 | 0 | goto out; |
809 | 0 | state_68: |
810 | 0 | lastAcceptingPos = pos; |
811 | 0 | token = QCss::INVALID; |
812 | 0 | ch = next(); |
813 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
814 | 0 | goto state_33; |
815 | 0 | if (ch.unicode() == 10) |
816 | 0 | goto state_85; |
817 | 0 | if (ch.unicode() == 11) |
818 | 0 | goto state_33; |
819 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
820 | 0 | goto state_33; |
821 | 0 | if (ch.unicode() == 34) |
822 | 0 | goto state_34; |
823 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
824 | 0 | goto state_33; |
825 | 0 | if (ch.unicode() == 92) |
826 | 0 | goto state_35; |
827 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
828 | 0 | goto state_33; |
829 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
830 | 0 | goto state_33; |
831 | 0 | if (ch.unicode() >= 123) |
832 | 0 | goto state_33; |
833 | 0 | goto out; |
834 | 0 | state_69: |
835 | 0 | lastAcceptingPos = pos; |
836 | 0 | token = QCss::INVALID; |
837 | 0 | ch = next(); |
838 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
839 | 0 | goto state_33; |
840 | 0 | if (ch.unicode() == 11) |
841 | 0 | goto state_33; |
842 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
843 | 0 | goto state_33; |
844 | 0 | if (ch.unicode() == 34) |
845 | 0 | goto state_34; |
846 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
847 | 0 | goto state_33; |
848 | 0 | if (ch.unicode() == 92) |
849 | 0 | goto state_35; |
850 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
851 | 0 | goto state_33; |
852 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
853 | 0 | goto state_33; |
854 | 0 | if (ch.unicode() >= 123) |
855 | 0 | goto state_33; |
856 | 0 | goto out; |
857 | 0 | state_70: |
858 | 0 | lastAcceptingPos = pos; |
859 | 0 | token = QCss::INVALID; |
860 | 0 | ch = next(); |
861 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
862 | 0 | goto state_38; |
863 | 0 | if (ch.unicode() == 11) |
864 | 0 | goto state_38; |
865 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
866 | 0 | goto state_38; |
867 | 0 | if (ch.unicode() == 39) |
868 | 0 | goto state_39; |
869 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
870 | 0 | goto state_38; |
871 | 0 | if (ch.unicode() == 92) |
872 | 0 | goto state_40; |
873 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
874 | 0 | goto state_38; |
875 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
876 | 0 | goto state_38; |
877 | 0 | if (ch.unicode() >= 123) |
878 | 0 | goto state_38; |
879 | 0 | goto out; |
880 | 0 | state_71: |
881 | 0 | lastAcceptingPos = pos; |
882 | 0 | token = QCss::INVALID; |
883 | 0 | ch = next(); |
884 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
885 | 0 | goto state_38; |
886 | 0 | if (ch.unicode() == 11) |
887 | 0 | goto state_38; |
888 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
889 | 0 | goto state_38; |
890 | 0 | if (ch.unicode() == 39) |
891 | 0 | goto state_39; |
892 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
893 | 0 | goto state_38; |
894 | 0 | if (ch.unicode() == 92) |
895 | 0 | goto state_40; |
896 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
897 | 0 | goto state_38; |
898 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
899 | 0 | goto state_38; |
900 | 0 | if (ch.unicode() >= 123) |
901 | 0 | goto state_38; |
902 | 0 | goto out; |
903 | 0 | state_72: |
904 | 0 | lastAcceptingPos = pos; |
905 | 0 | token = QCss::INVALID; |
906 | 0 | ch = next(); |
907 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
908 | 0 | goto state_38; |
909 | 0 | if (ch.unicode() == 10) |
910 | 0 | goto state_86; |
911 | 0 | if (ch.unicode() == 11) |
912 | 0 | goto state_38; |
913 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
914 | 0 | goto state_38; |
915 | 0 | if (ch.unicode() == 39) |
916 | 0 | goto state_39; |
917 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
918 | 0 | goto state_38; |
919 | 0 | if (ch.unicode() == 92) |
920 | 0 | goto state_40; |
921 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
922 | 0 | goto state_38; |
923 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
924 | 0 | goto state_38; |
925 | 0 | if (ch.unicode() >= 123) |
926 | 0 | goto state_38; |
927 | 0 | goto out; |
928 | 0 | state_73: |
929 | 0 | lastAcceptingPos = pos; |
930 | 0 | token = QCss::INVALID; |
931 | 0 | ch = next(); |
932 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
933 | 0 | goto state_38; |
934 | 0 | if (ch.unicode() == 11) |
935 | 0 | goto state_38; |
936 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
937 | 0 | goto state_38; |
938 | 0 | if (ch.unicode() == 39) |
939 | 0 | goto state_39; |
940 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
941 | 0 | goto state_38; |
942 | 0 | if (ch.unicode() == 92) |
943 | 0 | goto state_40; |
944 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
945 | 0 | goto state_38; |
946 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
947 | 0 | goto state_38; |
948 | 0 | if (ch.unicode() >= 123) |
949 | 0 | goto state_38; |
950 | 0 | goto out; |
951 | 0 | state_74: |
952 | 0 | lastAcceptingPos = pos; |
953 | 0 | token = QCss::NUMBER; |
954 | 0 | ch = next(); |
955 | 0 | if (ch.unicode() == 37) |
956 | 0 | goto state_46; |
957 | 0 | if (ch.unicode() == 45) |
958 | 0 | goto state_48; |
959 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
960 | 0 | goto state_74; |
961 | 0 | if (ch.unicode() == 92) |
962 | 0 | goto state_51; |
963 | 0 | if (ch.unicode() == 95) |
964 | 0 | goto state_50; |
965 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
966 | 0 | goto state_50; |
967 | 0 | goto out; |
968 | 0 | state_76: |
969 | 0 | lastAcceptingPos = pos; |
970 | 0 | token = QCss::LENGTH; |
971 | 0 | ch = next(); |
972 | 0 | if (ch.unicode() == 45) |
973 | 0 | goto state_76; |
974 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
975 | 0 | goto state_76; |
976 | 0 | if (ch.unicode() == 92) |
977 | 0 | goto state_77; |
978 | 0 | if (ch.unicode() == 95) |
979 | 0 | goto state_76; |
980 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
981 | 0 | goto state_76; |
982 | 0 | goto out; |
983 | 0 | state_77: |
984 | 0 | ch = next(); |
985 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
986 | 0 | goto state_87; |
987 | 0 | if (ch.unicode() == 11) |
988 | 0 | goto state_87; |
989 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
990 | 0 | goto state_87; |
991 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
992 | 0 | goto state_87; |
993 | 0 | if (ch.unicode() >= 103) |
994 | 0 | goto state_87; |
995 | 0 | goto out; |
996 | 0 | state_78: |
997 | 0 | lastAcceptingPos = pos; |
998 | 0 | token = QCss::LENGTH; |
999 | 0 | ch = next(); |
1000 | 0 | if (ch.unicode() == 45) |
1001 | 0 | goto state_76; |
1002 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1003 | 0 | goto state_76; |
1004 | 0 | if (ch.unicode() == 92) |
1005 | 0 | goto state_77; |
1006 | 0 | if (ch.unicode() == 95) |
1007 | 0 | goto state_76; |
1008 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1009 | 0 | goto state_76; |
1010 | 0 | goto out; |
1011 | 0 | state_79: |
1012 | 0 | ch = next(); |
1013 | 0 | if (ch.unicode() == 45) { |
1014 | 0 | token = QCss::CDO; |
1015 | 0 | goto found; |
1016 | 0 | } |
1017 | 0 | goto out; |
1018 | 0 | state_80: |
1019 | 0 | lastAcceptingPos = pos; |
1020 | 0 | token = QCss::IDENT; |
1021 | 0 | ch = next(); |
1022 | 0 | if (ch.unicode() == 40) |
1023 | 0 | goto state_53; |
1024 | 0 | if (ch.unicode() == 45) |
1025 | 0 | goto state_54; |
1026 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1027 | 0 | goto state_54; |
1028 | 0 | if (ch.unicode() == 92) |
1029 | 0 | goto state_55; |
1030 | 0 | if (ch.unicode() == 95) |
1031 | 0 | goto state_54; |
1032 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1033 | 0 | goto state_54; |
1034 | 0 | goto out; |
1035 | 0 | state_81: |
1036 | 0 | lastAcceptingPos = pos; |
1037 | 0 | token = QCss::ATKEYWORD_SYM; |
1038 | 0 | ch = next(); |
1039 | 0 | if (ch.unicode() == 45) |
1040 | 0 | goto state_81; |
1041 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1042 | 0 | goto state_81; |
1043 | 0 | if (ch.unicode() == 92) |
1044 | 0 | goto state_82; |
1045 | 0 | if (ch.unicode() == 95) |
1046 | 0 | goto state_81; |
1047 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1048 | 0 | goto state_81; |
1049 | 0 | goto out; |
1050 | 0 | state_82: |
1051 | 0 | ch = next(); |
1052 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
1053 | 0 | goto state_89; |
1054 | 0 | if (ch.unicode() == 11) |
1055 | 0 | goto state_89; |
1056 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 47) |
1057 | 0 | goto state_89; |
1058 | 0 | if (ch.unicode() >= 58 && ch.unicode() <= 96) |
1059 | 0 | goto state_89; |
1060 | 0 | if (ch.unicode() >= 103) |
1061 | 0 | goto state_89; |
1062 | 0 | goto out; |
1063 | 0 | state_83: |
1064 | 0 | lastAcceptingPos = pos; |
1065 | 0 | token = QCss::ATKEYWORD_SYM; |
1066 | 0 | ch = next(); |
1067 | 0 | if (ch.unicode() == 45) |
1068 | 0 | goto state_81; |
1069 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1070 | 0 | goto state_81; |
1071 | 0 | if (ch.unicode() == 92) |
1072 | 0 | goto state_82; |
1073 | 0 | if (ch.unicode() == 95) |
1074 | 0 | goto state_81; |
1075 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1076 | 0 | goto state_81; |
1077 | 0 | goto out; |
1078 | 0 | state_84: |
1079 | 0 | lastAcceptingPos = pos; |
1080 | 0 | token = QCss::HASH; |
1081 | 0 | ch = next(); |
1082 | 0 | if (ch.unicode() == 45) |
1083 | 0 | goto state_63; |
1084 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1085 | 0 | goto state_63; |
1086 | 0 | if (ch.unicode() == 92) |
1087 | 0 | goto state_64; |
1088 | 0 | if (ch.unicode() == 95) |
1089 | 0 | goto state_63; |
1090 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1091 | 0 | goto state_63; |
1092 | 0 | goto out; |
1093 | 0 | state_85: |
1094 | 0 | lastAcceptingPos = pos; |
1095 | 0 | token = QCss::INVALID; |
1096 | 0 | ch = next(); |
1097 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
1098 | 0 | goto state_33; |
1099 | 0 | if (ch.unicode() == 11) |
1100 | 0 | goto state_33; |
1101 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 33) |
1102 | 0 | goto state_33; |
1103 | 0 | if (ch.unicode() == 34) |
1104 | 0 | goto state_34; |
1105 | 0 | if (ch.unicode() >= 35 && ch.unicode() <= 91) |
1106 | 0 | goto state_33; |
1107 | 0 | if (ch.unicode() == 92) |
1108 | 0 | goto state_35; |
1109 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
1110 | 0 | goto state_33; |
1111 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1112 | 0 | goto state_33; |
1113 | 0 | if (ch.unicode() >= 123) |
1114 | 0 | goto state_33; |
1115 | 0 | goto out; |
1116 | 0 | state_86: |
1117 | 0 | lastAcceptingPos = pos; |
1118 | 0 | token = QCss::INVALID; |
1119 | 0 | ch = next(); |
1120 | 0 | if (ch.unicode() >= 1 && ch.unicode() <= 9) |
1121 | 0 | goto state_38; |
1122 | 0 | if (ch.unicode() == 11) |
1123 | 0 | goto state_38; |
1124 | 0 | if (ch.unicode() >= 14 && ch.unicode() <= 38) |
1125 | 0 | goto state_38; |
1126 | 0 | if (ch.unicode() == 39) |
1127 | 0 | goto state_39; |
1128 | 0 | if (ch.unicode() >= 40 && ch.unicode() <= 91) |
1129 | 0 | goto state_38; |
1130 | 0 | if (ch.unicode() == 92) |
1131 | 0 | goto state_40; |
1132 | 0 | if (ch.unicode() >= 93 && ch.unicode() <= 96) |
1133 | 0 | goto state_38; |
1134 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1135 | 0 | goto state_38; |
1136 | 0 | if (ch.unicode() >= 123) |
1137 | 0 | goto state_38; |
1138 | 0 | goto out; |
1139 | 0 | state_87: |
1140 | 0 | lastAcceptingPos = pos; |
1141 | 0 | token = QCss::LENGTH; |
1142 | 0 | ch = next(); |
1143 | 0 | if (ch.unicode() == 45) |
1144 | 0 | goto state_76; |
1145 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1146 | 0 | goto state_76; |
1147 | 0 | if (ch.unicode() == 92) |
1148 | 0 | goto state_77; |
1149 | 0 | if (ch.unicode() == 95) |
1150 | 0 | goto state_76; |
1151 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1152 | 0 | goto state_76; |
1153 | 0 | goto out; |
1154 | 0 | state_89: |
1155 | 0 | lastAcceptingPos = pos; |
1156 | 0 | token = QCss::ATKEYWORD_SYM; |
1157 | 0 | ch = next(); |
1158 | 0 | if (ch.unicode() == 45) |
1159 | 0 | goto state_81; |
1160 | 0 | if (ch.unicode() >= 48 && ch.unicode() <= 57) |
1161 | 0 | goto state_81; |
1162 | 0 | if (ch.unicode() == 92) |
1163 | 0 | goto state_82; |
1164 | 0 | if (ch.unicode() == 95) |
1165 | 0 | goto state_81; |
1166 | 0 | if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256) |
1167 | 0 | goto state_81; |
1168 | 0 | goto out; |
1169 | 0 | found: |
1170 | 0 | lastAcceptingPos = pos; |
1171 | |
|
1172 | 0 | out: |
1173 | 0 | if (lastAcceptingPos != -1) { |
1174 | 0 | lexemLength = lastAcceptingPos - lexemStart; |
1175 | 0 | pos = lastAcceptingPos; |
1176 | 0 | } |
1177 | 0 | return token; |
1178 | 0 | } |