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