OLD | NEW |
| (Empty) |
1 /* Generated by re2c 0.13.5 on Tue Feb 19 16:16:47 2013 */ | |
2 /* | |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | |
4 * | |
5 * Redistribution and use in source and binary forms, with or without | |
6 * modification, are permitted provided that the following conditions are | |
7 * met: | |
8 * | |
9 * * Redistributions of source code must retain the above copyright | |
10 * notice, this list of conditions and the following disclaimer. | |
11 * * Redistributions in binary form must reproduce the above | |
12 * copyright notice, this list of conditions and the following disclaimer | |
13 * in the documentation and/or other materials provided with the | |
14 * distribution. | |
15 * * Neither the name of Google Inc. nor the names of its | |
16 * contributors may be used to endorse or promote products derived from | |
17 * this software without specific prior written permission. | |
18 * | |
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
30 */ | |
31 | |
32 /* | |
33 * Generate js file as follows: | |
34 re2c -isc devtools/front_end/SourceJavaScriptTokenizer.re2js \ | |
35 | sed 's|^yy\([^:]*\)*\:|case \1:|' \ | |
36 | sed 's|[*]cursor[+][+]|this._charAt(cursor++)|' \ | |
37 | sed 's|[[*][+][+]cursor|this._charAt(++cursor)|' \ | |
38 | sed 's|[*]cursor|this._charAt(cursor)|' \ | |
39 | sed 's|yych = \*\([^;]*\)|yych = this._charAt\1|' \ | |
40 | sed 's|{ gotoCase = \([^; continue; };]*\)|{ gotoCase = \1; continue; }|' \ | |
41 | sed 's|yych <= \(0x[0-9a-fA-F]*\)|yych \<\= String.fromCharCode(\1)|' \ | |
42 | sed 's|unsigned\ int|var|' \ | |
43 | sed 's|var\ yych|case 1: case 1: var yych|' > devtools/front_end/SourceJavaS
criptTokenizer.js | |
44 */ | |
45 | |
46 /** | |
47 * @constructor | |
48 * @extends {WebInspector.SourceTokenizer} | |
49 */ | |
50 WebInspector.SourceJavaScriptTokenizer = function() | |
51 { | |
52 WebInspector.SourceTokenizer.call(this); | |
53 | |
54 this._lexConditions = { | |
55 DIV: 0, | |
56 NODIV: 1, | |
57 COMMENT: 2, | |
58 DSTRING: 3, | |
59 SSTRING: 4, | |
60 REGEX: 5 | |
61 }; | |
62 | |
63 this.case_DIV = 1000; | |
64 this.case_NODIV = 1001; | |
65 this.case_COMMENT = 1002; | |
66 this.case_DSTRING = 1003; | |
67 this.case_SSTRING = 1004; | |
68 this.case_REGEX = 1005; | |
69 | |
70 this.condition = this.createInitialCondition(); | |
71 } | |
72 | |
73 WebInspector.SourceJavaScriptTokenizer.Keywords = [ | |
74 "null", "true", "false", "break", "case", "catch", "const", "default", "
finally", "for", | |
75 "instanceof", "new", "var", "continue", "function", "return", "void", "d
elete", "if", | |
76 "this", "do", "while", "else", "in", "switch", "throw", "try", "typeof",
"debugger", | |
77 "class", "enum", "export", "extends", "import", "super", "get", "set", "
with" | |
78 ].keySet(); | |
79 | |
80 WebInspector.SourceJavaScriptTokenizer.GlobalObjectValueProperties = { | |
81 "NaN": "javascript-nan", | |
82 "undefined": "javascript-undef", | |
83 "Infinity": "javascript-inf" | |
84 }; | |
85 | |
86 WebInspector.SourceJavaScriptTokenizer.prototype = { | |
87 createInitialCondition: function() | |
88 { | |
89 return { lexCondition: this._lexConditions.NODIV }; | |
90 }, | |
91 | |
92 nextToken: function(cursor) | |
93 { | |
94 var cursorOnEnter = cursor; | |
95 var gotoCase = 1; | |
96 var YYMARKER; | |
97 while (1) { | |
98 switch (gotoCase) | |
99 // Following comment is replaced with generated state machine. | |
100 | |
101 { | |
102 case 1: var yych; | |
103 var yyaccept = 0; | |
104 if (this.getLexCondition() < 3) { | |
105 if (this.getLexCondition() < 1) { | |
106 { gotoCase = this.case_DIV; continue; }; | |
107 } else { | |
108 if (this.getLexCondition() < 2) { | |
109 { gotoCase = this.case_NODIV; continue; }; | |
110 } else { | |
111 { gotoCase = this.case_COMMENT; continue; }; | |
112 } | |
113 } | |
114 } else { | |
115 if (this.getLexCondition() < 4) { | |
116 { gotoCase = this.case_DSTRING; continue; }; | |
117 } else { | |
118 if (this.getLexCondition() < 5) { | |
119 { gotoCase = this.case_SSTRING; continue; }; | |
120 } else { | |
121 { gotoCase = this.case_REGEX; continue; }; | |
122 } | |
123 } | |
124 } | |
125 /* *********************************** */ | |
126 case this.case_COMMENT: | |
127 | |
128 yych = this._charAt(cursor); | |
129 if (yych <= '\f') { | |
130 if (yych == '\n') { gotoCase = 4; continue; }; | |
131 { gotoCase = 3; continue; }; | |
132 } else { | |
133 if (yych <= '\r') { gotoCase = 4; continue; }; | |
134 if (yych == '*') { gotoCase = 6; continue; }; | |
135 { gotoCase = 3; continue; }; | |
136 } | |
137 case 2: | |
138 { this.tokenType = "javascript-comment"; return cursor; } | |
139 case 3: | |
140 yyaccept = 0; | |
141 yych = this._charAt(YYMARKER = ++cursor); | |
142 { gotoCase = 12; continue; }; | |
143 case 4: | |
144 ++cursor; | |
145 { this.tokenType = null; return cursor; } | |
146 case 6: | |
147 yyaccept = 1; | |
148 yych = this._charAt(YYMARKER = ++cursor); | |
149 if (yych == '*') { gotoCase = 9; continue; }; | |
150 if (yych != '/') { gotoCase = 11; continue; }; | |
151 case 7: | |
152 ++cursor; | |
153 this.setLexCondition(this._lexConditions.NODIV); | |
154 { this.tokenType = "javascript-comment"; return cursor; } | |
155 case 9: | |
156 ++cursor; | |
157 yych = this._charAt(cursor); | |
158 if (yych == '*') { gotoCase = 9; continue; }; | |
159 if (yych == '/') { gotoCase = 7; continue; }; | |
160 case 11: | |
161 yyaccept = 0; | |
162 YYMARKER = ++cursor; | |
163 yych = this._charAt(cursor); | |
164 case 12: | |
165 if (yych <= '\f') { | |
166 if (yych == '\n') { gotoCase = 2; continue; }; | |
167 { gotoCase = 11; continue; }; | |
168 } else { | |
169 if (yych <= '\r') { gotoCase = 2; continue; }; | |
170 if (yych == '*') { gotoCase = 9; continue; }; | |
171 { gotoCase = 11; continue; }; | |
172 } | |
173 /* *********************************** */ | |
174 case this.case_DIV: | |
175 yych = this._charAt(cursor); | |
176 if (yych <= '9') { | |
177 if (yych <= '\'') { | |
178 if (yych <= '"') { | |
179 if (yych <= String.fromCharCode(0x1F)) { gotoCase = 15;
continue; }; | |
180 if (yych <= ' ') { gotoCase = 17; continue; }; | |
181 if (yych <= '!') { gotoCase = 19; continue; }; | |
182 { gotoCase = 21; continue; }; | |
183 } else { | |
184 if (yych <= '$') { | |
185 if (yych >= '$') { gotoCase = 22; continue; }; | |
186 } else { | |
187 if (yych <= '%') { gotoCase = 24; continue; }; | |
188 if (yych <= '&') { gotoCase = 25; continue; }; | |
189 { gotoCase = 26; continue; }; | |
190 } | |
191 } | |
192 } else { | |
193 if (yych <= ',') { | |
194 if (yych <= ')') { | |
195 if (yych <= '(') { gotoCase = 27; continue; }; | |
196 { gotoCase = 28; continue; }; | |
197 } else { | |
198 if (yych <= '*') { gotoCase = 30; continue; }; | |
199 if (yych <= '+') { gotoCase = 31; continue; }; | |
200 { gotoCase = 27; continue; }; | |
201 } | |
202 } else { | |
203 if (yych <= '.') { | |
204 if (yych <= '-') { gotoCase = 32; continue; }; | |
205 { gotoCase = 33; continue; }; | |
206 } else { | |
207 if (yych <= '/') { gotoCase = 34; continue; }; | |
208 if (yych <= '0') { gotoCase = 36; continue; }; | |
209 { gotoCase = 38; continue; }; | |
210 } | |
211 } | |
212 } | |
213 } else { | |
214 if (yych <= '\\') { | |
215 if (yych <= '>') { | |
216 if (yych <= ';') { gotoCase = 27; continue; }; | |
217 if (yych <= '<') { gotoCase = 39; continue; }; | |
218 if (yych <= '=') { gotoCase = 40; continue; }; | |
219 { gotoCase = 41; continue; }; | |
220 } else { | |
221 if (yych <= '@') { | |
222 if (yych <= '?') { gotoCase = 27; continue; }; | |
223 } else { | |
224 if (yych <= 'Z') { gotoCase = 22; continue; }; | |
225 if (yych <= '[') { gotoCase = 27; continue; }; | |
226 { gotoCase = 42; continue; }; | |
227 } | |
228 } | |
229 } else { | |
230 if (yych <= 'z') { | |
231 if (yych <= '^') { | |
232 if (yych <= ']') { gotoCase = 27; continue; }; | |
233 { gotoCase = 43; continue; }; | |
234 } else { | |
235 if (yych != '`') { gotoCase = 22; continue; }; | |
236 } | |
237 } else { | |
238 if (yych <= '|') { | |
239 if (yych <= '{') { gotoCase = 27; continue; }; | |
240 { gotoCase = 44; continue; }; | |
241 } else { | |
242 if (yych <= '~') { gotoCase = 27; continue; }; | |
243 if (yych >= 0x80) { gotoCase = 22; continue; }; | |
244 } | |
245 } | |
246 } | |
247 } | |
248 case 15: | |
249 ++cursor; | |
250 case 16: | |
251 { this.tokenType = null; return cursor; } | |
252 case 17: | |
253 ++cursor; | |
254 yych = this._charAt(cursor); | |
255 { gotoCase = 119; continue; }; | |
256 case 18: | |
257 {this.tokenType = "whitespace"; return cursor; } | |
258 case 19: | |
259 ++cursor; | |
260 if ((yych = this._charAt(cursor)) == '=') { gotoCase = 117; continue
; }; | |
261 case 20: | |
262 this.setLexCondition(this._lexConditions.NODIV); | |
263 { | |
264 var token = this._line.charAt(cursorOnEnter); | |
265 if (token === "{") | |
266 this.tokenType = "block-start"; | |
267 else if (token === "}") | |
268 this.tokenType = "block-end"; | |
269 else if (token === "(") | |
270 this.tokenType = "brace-start"; | |
271 else this.tokenType = null; | |
272 return cursor; | |
273 } | |
274 case 21: | |
275 yyaccept = 0; | |
276 yych = this._charAt(YYMARKER = ++cursor); | |
277 if (yych == '\n') { gotoCase = 16; continue; }; | |
278 if (yych == '\r') { gotoCase = 16; continue; }; | |
279 { gotoCase = 109; continue; }; | |
280 case 22: | |
281 yyaccept = 1; | |
282 yych = this._charAt(YYMARKER = ++cursor); | |
283 { gotoCase = 52; continue; }; | |
284 case 23: | |
285 { | |
286 var token = this._line.substring(cursorOnEnter, cursor); | |
287 if (WebInspector.SourceJavaScriptTokenizer.GlobalObjectValue
Properties.hasOwnProperty(token)) | |
288 this.tokenType = WebInspector.SourceJavaScriptTokenizer.
GlobalObjectValueProperties[token]; | |
289 else if (WebInspector.SourceJavaScriptTokenizer.Keywords[tok
en] === true && token !== "__proto__") | |
290 this.tokenType = "javascript-keyword"; | |
291 else | |
292 this.tokenType = "javascript-ident"; | |
293 return cursor; | |
294 } | |
295 case 24: | |
296 yych = this._charAt(++cursor); | |
297 if (yych == '=') { gotoCase = 45; continue; }; | |
298 { gotoCase = 20; continue; }; | |
299 case 25: | |
300 yych = this._charAt(++cursor); | |
301 if (yych == '&') { gotoCase = 45; continue; }; | |
302 if (yych == '=') { gotoCase = 45; continue; }; | |
303 { gotoCase = 20; continue; }; | |
304 case 26: | |
305 yyaccept = 0; | |
306 yych = this._charAt(YYMARKER = ++cursor); | |
307 if (yych == '\n') { gotoCase = 16; continue; }; | |
308 if (yych == '\r') { gotoCase = 16; continue; }; | |
309 { gotoCase = 98; continue; }; | |
310 case 27: | |
311 yych = this._charAt(++cursor); | |
312 { gotoCase = 20; continue; }; | |
313 case 28: | |
314 ++cursor; | |
315 { this.tokenType = "brace-end"; return cursor; } | |
316 case 30: | |
317 yych = this._charAt(++cursor); | |
318 if (yych == '=') { gotoCase = 45; continue; }; | |
319 { gotoCase = 20; continue; }; | |
320 case 31: | |
321 yych = this._charAt(++cursor); | |
322 if (yych == '+') { gotoCase = 45; continue; }; | |
323 if (yych == '=') { gotoCase = 45; continue; }; | |
324 { gotoCase = 20; continue; }; | |
325 case 32: | |
326 yych = this._charAt(++cursor); | |
327 if (yych == '-') { gotoCase = 45; continue; }; | |
328 if (yych == '=') { gotoCase = 45; continue; }; | |
329 { gotoCase = 20; continue; }; | |
330 case 33: | |
331 yych = this._charAt(++cursor); | |
332 if (yych <= '/') { gotoCase = 20; continue; }; | |
333 if (yych <= '9') { gotoCase = 91; continue; }; | |
334 { gotoCase = 20; continue; }; | |
335 case 34: | |
336 yyaccept = 2; | |
337 yych = this._charAt(YYMARKER = ++cursor); | |
338 if (yych <= '.') { | |
339 if (yych == '*') { gotoCase = 80; continue; }; | |
340 } else { | |
341 if (yych <= '/') { gotoCase = 82; continue; }; | |
342 if (yych == '=') { gotoCase = 79; continue; }; | |
343 } | |
344 case 35: | |
345 this.setLexCondition(this._lexConditions.NODIV); | |
346 { this.tokenType = null; return cursor; } | |
347 case 36: | |
348 yyaccept = 3; | |
349 yych = this._charAt(YYMARKER = ++cursor); | |
350 if (yych <= 'E') { | |
351 if (yych <= '/') { | |
352 if (yych == '.') { gotoCase = 65; continue; }; | |
353 } else { | |
354 if (yych <= '7') { gotoCase = 74; continue; }; | |
355 if (yych >= 'E') { gotoCase = 64; continue; }; | |
356 } | |
357 } else { | |
358 if (yych <= 'd') { | |
359 if (yych == 'X') { gotoCase = 76; continue; }; | |
360 } else { | |
361 if (yych <= 'e') { gotoCase = 64; continue; }; | |
362 if (yych == 'x') { gotoCase = 76; continue; }; | |
363 } | |
364 } | |
365 case 37: | |
366 { this.tokenType = "javascript-number"; return cursor; } | |
367 case 38: | |
368 yyaccept = 3; | |
369 yych = this._charAt(YYMARKER = ++cursor); | |
370 if (yych <= '9') { | |
371 if (yych == '.') { gotoCase = 65; continue; }; | |
372 if (yych <= '/') { gotoCase = 37; continue; }; | |
373 { gotoCase = 62; continue; }; | |
374 } else { | |
375 if (yych <= 'E') { | |
376 if (yych <= 'D') { gotoCase = 37; continue; }; | |
377 { gotoCase = 64; continue; }; | |
378 } else { | |
379 if (yych == 'e') { gotoCase = 64; continue; }; | |
380 { gotoCase = 37; continue; }; | |
381 } | |
382 } | |
383 case 39: | |
384 yych = this._charAt(++cursor); | |
385 if (yych <= ';') { gotoCase = 20; continue; }; | |
386 if (yych <= '<') { gotoCase = 61; continue; }; | |
387 if (yych <= '=') { gotoCase = 45; continue; }; | |
388 { gotoCase = 20; continue; }; | |
389 case 40: | |
390 yych = this._charAt(++cursor); | |
391 if (yych == '=') { gotoCase = 60; continue; }; | |
392 { gotoCase = 20; continue; }; | |
393 case 41: | |
394 yych = this._charAt(++cursor); | |
395 if (yych <= '<') { gotoCase = 20; continue; }; | |
396 if (yych <= '=') { gotoCase = 45; continue; }; | |
397 if (yych <= '>') { gotoCase = 58; continue; }; | |
398 { gotoCase = 20; continue; }; | |
399 case 42: | |
400 yyaccept = 0; | |
401 yych = this._charAt(YYMARKER = ++cursor); | |
402 if (yych == 'u') { gotoCase = 46; continue; }; | |
403 { gotoCase = 16; continue; }; | |
404 case 43: | |
405 yych = this._charAt(++cursor); | |
406 if (yych == '=') { gotoCase = 45; continue; }; | |
407 { gotoCase = 20; continue; }; | |
408 case 44: | |
409 yych = this._charAt(++cursor); | |
410 if (yych == '=') { gotoCase = 45; continue; }; | |
411 if (yych != '|') { gotoCase = 20; continue; }; | |
412 case 45: | |
413 yych = this._charAt(++cursor); | |
414 { gotoCase = 20; continue; }; | |
415 case 46: | |
416 yych = this._charAt(++cursor); | |
417 if (yych <= '@') { | |
418 if (yych <= '/') { gotoCase = 47; continue; }; | |
419 if (yych <= '9') { gotoCase = 48; continue; }; | |
420 } else { | |
421 if (yych <= 'F') { gotoCase = 48; continue; }; | |
422 if (yych <= '`') { gotoCase = 47; continue; }; | |
423 if (yych <= 'f') { gotoCase = 48; continue; }; | |
424 } | |
425 case 47: | |
426 cursor = YYMARKER; | |
427 if (yyaccept <= 1) { | |
428 if (yyaccept <= 0) { | |
429 { gotoCase = 16; continue; }; | |
430 } else { | |
431 { gotoCase = 23; continue; }; | |
432 } | |
433 } else { | |
434 if (yyaccept <= 2) { | |
435 { gotoCase = 35; continue; }; | |
436 } else { | |
437 { gotoCase = 37; continue; }; | |
438 } | |
439 } | |
440 case 48: | |
441 yych = this._charAt(++cursor); | |
442 if (yych <= '@') { | |
443 if (yych <= '/') { gotoCase = 47; continue; }; | |
444 if (yych >= ':') { gotoCase = 47; continue; }; | |
445 } else { | |
446 if (yych <= 'F') { gotoCase = 49; continue; }; | |
447 if (yych <= '`') { gotoCase = 47; continue; }; | |
448 if (yych >= 'g') { gotoCase = 47; continue; }; | |
449 } | |
450 case 49: | |
451 yych = this._charAt(++cursor); | |
452 if (yych <= '@') { | |
453 if (yych <= '/') { gotoCase = 47; continue; }; | |
454 if (yych >= ':') { gotoCase = 47; continue; }; | |
455 } else { | |
456 if (yych <= 'F') { gotoCase = 50; continue; }; | |
457 if (yych <= '`') { gotoCase = 47; continue; }; | |
458 if (yych >= 'g') { gotoCase = 47; continue; }; | |
459 } | |
460 case 50: | |
461 yych = this._charAt(++cursor); | |
462 if (yych <= '@') { | |
463 if (yych <= '/') { gotoCase = 47; continue; }; | |
464 if (yych >= ':') { gotoCase = 47; continue; }; | |
465 } else { | |
466 if (yych <= 'F') { gotoCase = 51; continue; }; | |
467 if (yych <= '`') { gotoCase = 47; continue; }; | |
468 if (yych >= 'g') { gotoCase = 47; continue; }; | |
469 } | |
470 case 51: | |
471 yyaccept = 1; | |
472 YYMARKER = ++cursor; | |
473 yych = this._charAt(cursor); | |
474 case 52: | |
475 if (yych <= '[') { | |
476 if (yych <= '/') { | |
477 if (yych == '$') { gotoCase = 51; continue; }; | |
478 { gotoCase = 23; continue; }; | |
479 } else { | |
480 if (yych <= '9') { gotoCase = 51; continue; }; | |
481 if (yych <= '@') { gotoCase = 23; continue; }; | |
482 if (yych <= 'Z') { gotoCase = 51; continue; }; | |
483 { gotoCase = 23; continue; }; | |
484 } | |
485 } else { | |
486 if (yych <= '_') { | |
487 if (yych <= '\\') { gotoCase = 53; continue; }; | |
488 if (yych <= '^') { gotoCase = 23; continue; }; | |
489 { gotoCase = 51; continue; }; | |
490 } else { | |
491 if (yych <= '`') { gotoCase = 23; continue; }; | |
492 if (yych <= 'z') { gotoCase = 51; continue; }; | |
493 if (yych <= String.fromCharCode(0x7F)) { gotoCase = 23; cont
inue; }; | |
494 { gotoCase = 51; continue; }; | |
495 } | |
496 } | |
497 case 53: | |
498 ++cursor; | |
499 yych = this._charAt(cursor); | |
500 if (yych != 'u') { gotoCase = 47; continue; }; | |
501 ++cursor; | |
502 yych = this._charAt(cursor); | |
503 if (yych <= '@') { | |
504 if (yych <= '/') { gotoCase = 47; continue; }; | |
505 if (yych >= ':') { gotoCase = 47; continue; }; | |
506 } else { | |
507 if (yych <= 'F') { gotoCase = 55; continue; }; | |
508 if (yych <= '`') { gotoCase = 47; continue; }; | |
509 if (yych >= 'g') { gotoCase = 47; continue; }; | |
510 } | |
511 case 55: | |
512 ++cursor; | |
513 yych = this._charAt(cursor); | |
514 if (yych <= '@') { | |
515 if (yych <= '/') { gotoCase = 47; continue; }; | |
516 if (yych >= ':') { gotoCase = 47; continue; }; | |
517 } else { | |
518 if (yych <= 'F') { gotoCase = 56; continue; }; | |
519 if (yych <= '`') { gotoCase = 47; continue; }; | |
520 if (yych >= 'g') { gotoCase = 47; continue; }; | |
521 } | |
522 case 56: | |
523 ++cursor; | |
524 yych = this._charAt(cursor); | |
525 if (yych <= '@') { | |
526 if (yych <= '/') { gotoCase = 47; continue; }; | |
527 if (yych >= ':') { gotoCase = 47; continue; }; | |
528 } else { | |
529 if (yych <= 'F') { gotoCase = 57; continue; }; | |
530 if (yych <= '`') { gotoCase = 47; continue; }; | |
531 if (yych >= 'g') { gotoCase = 47; continue; }; | |
532 } | |
533 case 57: | |
534 ++cursor; | |
535 yych = this._charAt(cursor); | |
536 if (yych <= '@') { | |
537 if (yych <= '/') { gotoCase = 47; continue; }; | |
538 if (yych <= '9') { gotoCase = 51; continue; }; | |
539 { gotoCase = 47; continue; }; | |
540 } else { | |
541 if (yych <= 'F') { gotoCase = 51; continue; }; | |
542 if (yych <= '`') { gotoCase = 47; continue; }; | |
543 if (yych <= 'f') { gotoCase = 51; continue; }; | |
544 { gotoCase = 47; continue; }; | |
545 } | |
546 case 58: | |
547 yych = this._charAt(++cursor); | |
548 if (yych <= '<') { gotoCase = 20; continue; }; | |
549 if (yych <= '=') { gotoCase = 45; continue; }; | |
550 if (yych >= '?') { gotoCase = 20; continue; }; | |
551 yych = this._charAt(++cursor); | |
552 if (yych == '=') { gotoCase = 45; continue; }; | |
553 { gotoCase = 20; continue; }; | |
554 case 60: | |
555 yych = this._charAt(++cursor); | |
556 if (yych == '=') { gotoCase = 45; continue; }; | |
557 { gotoCase = 20; continue; }; | |
558 case 61: | |
559 yych = this._charAt(++cursor); | |
560 if (yych == '=') { gotoCase = 45; continue; }; | |
561 { gotoCase = 20; continue; }; | |
562 case 62: | |
563 yyaccept = 3; | |
564 YYMARKER = ++cursor; | |
565 yych = this._charAt(cursor); | |
566 if (yych <= '9') { | |
567 if (yych == '.') { gotoCase = 65; continue; }; | |
568 if (yych <= '/') { gotoCase = 37; continue; }; | |
569 { gotoCase = 62; continue; }; | |
570 } else { | |
571 if (yych <= 'E') { | |
572 if (yych <= 'D') { gotoCase = 37; continue; }; | |
573 } else { | |
574 if (yych != 'e') { gotoCase = 37; continue; }; | |
575 } | |
576 } | |
577 case 64: | |
578 yych = this._charAt(++cursor); | |
579 if (yych <= ',') { | |
580 if (yych == '+') { gotoCase = 71; continue; }; | |
581 { gotoCase = 47; continue; }; | |
582 } else { | |
583 if (yych <= '-') { gotoCase = 71; continue; }; | |
584 if (yych <= '/') { gotoCase = 47; continue; }; | |
585 if (yych <= '9') { gotoCase = 72; continue; }; | |
586 { gotoCase = 47; continue; }; | |
587 } | |
588 case 65: | |
589 yyaccept = 3; | |
590 YYMARKER = ++cursor; | |
591 yych = this._charAt(cursor); | |
592 if (yych <= 'D') { | |
593 if (yych <= '/') { gotoCase = 37; continue; }; | |
594 if (yych <= '9') { gotoCase = 65; continue; }; | |
595 { gotoCase = 37; continue; }; | |
596 } else { | |
597 if (yych <= 'E') { gotoCase = 67; continue; }; | |
598 if (yych != 'e') { gotoCase = 37; continue; }; | |
599 } | |
600 case 67: | |
601 yych = this._charAt(++cursor); | |
602 if (yych <= ',') { | |
603 if (yych != '+') { gotoCase = 47; continue; }; | |
604 } else { | |
605 if (yych <= '-') { gotoCase = 68; continue; }; | |
606 if (yych <= '/') { gotoCase = 47; continue; }; | |
607 if (yych <= '9') { gotoCase = 69; continue; }; | |
608 { gotoCase = 47; continue; }; | |
609 } | |
610 case 68: | |
611 yych = this._charAt(++cursor); | |
612 if (yych <= '/') { gotoCase = 47; continue; }; | |
613 if (yych >= ':') { gotoCase = 47; continue; }; | |
614 case 69: | |
615 ++cursor; | |
616 yych = this._charAt(cursor); | |
617 if (yych <= '/') { gotoCase = 37; continue; }; | |
618 if (yych <= '9') { gotoCase = 69; continue; }; | |
619 { gotoCase = 37; continue; }; | |
620 case 71: | |
621 yych = this._charAt(++cursor); | |
622 if (yych <= '/') { gotoCase = 47; continue; }; | |
623 if (yych >= ':') { gotoCase = 47; continue; }; | |
624 case 72: | |
625 ++cursor; | |
626 yych = this._charAt(cursor); | |
627 if (yych <= '/') { gotoCase = 37; continue; }; | |
628 if (yych <= '9') { gotoCase = 72; continue; }; | |
629 { gotoCase = 37; continue; }; | |
630 case 74: | |
631 ++cursor; | |
632 yych = this._charAt(cursor); | |
633 if (yych <= '/') { gotoCase = 37; continue; }; | |
634 if (yych <= '7') { gotoCase = 74; continue; }; | |
635 { gotoCase = 37; continue; }; | |
636 case 76: | |
637 yych = this._charAt(++cursor); | |
638 if (yych <= '@') { | |
639 if (yych <= '/') { gotoCase = 47; continue; }; | |
640 if (yych >= ':') { gotoCase = 47; continue; }; | |
641 } else { | |
642 if (yych <= 'F') { gotoCase = 77; continue; }; | |
643 if (yych <= '`') { gotoCase = 47; continue; }; | |
644 if (yych >= 'g') { gotoCase = 47; continue; }; | |
645 } | |
646 case 77: | |
647 ++cursor; | |
648 yych = this._charAt(cursor); | |
649 if (yych <= '@') { | |
650 if (yych <= '/') { gotoCase = 37; continue; }; | |
651 if (yych <= '9') { gotoCase = 77; continue; }; | |
652 { gotoCase = 37; continue; }; | |
653 } else { | |
654 if (yych <= 'F') { gotoCase = 77; continue; }; | |
655 if (yych <= '`') { gotoCase = 37; continue; }; | |
656 if (yych <= 'f') { gotoCase = 77; continue; }; | |
657 { gotoCase = 37; continue; }; | |
658 } | |
659 case 79: | |
660 yych = this._charAt(++cursor); | |
661 { gotoCase = 35; continue; }; | |
662 case 80: | |
663 ++cursor; | |
664 yych = this._charAt(cursor); | |
665 if (yych <= '\f') { | |
666 if (yych == '\n') { gotoCase = 87; continue; }; | |
667 { gotoCase = 80; continue; }; | |
668 } else { | |
669 if (yych <= '\r') { gotoCase = 87; continue; }; | |
670 if (yych == '*') { gotoCase = 85; continue; }; | |
671 { gotoCase = 80; continue; }; | |
672 } | |
673 case 82: | |
674 ++cursor; | |
675 yych = this._charAt(cursor); | |
676 if (yych == '\n') { gotoCase = 84; continue; }; | |
677 if (yych != '\r') { gotoCase = 82; continue; }; | |
678 case 84: | |
679 { this.tokenType = "javascript-comment"; return cursor; } | |
680 case 85: | |
681 ++cursor; | |
682 yych = this._charAt(cursor); | |
683 if (yych == '*') { gotoCase = 85; continue; }; | |
684 if (yych == '/') { gotoCase = 89; continue; }; | |
685 { gotoCase = 80; continue; }; | |
686 case 87: | |
687 ++cursor; | |
688 this.setLexCondition(this._lexConditions.COMMENT); | |
689 { this.tokenType = "javascript-comment"; return cursor; } | |
690 case 89: | |
691 ++cursor; | |
692 { this.tokenType = "javascript-comment"; return cursor; } | |
693 case 91: | |
694 yyaccept = 3; | |
695 YYMARKER = ++cursor; | |
696 yych = this._charAt(cursor); | |
697 if (yych <= 'D') { | |
698 if (yych <= '/') { gotoCase = 37; continue; }; | |
699 if (yych <= '9') { gotoCase = 91; continue; }; | |
700 { gotoCase = 37; continue; }; | |
701 } else { | |
702 if (yych <= 'E') { gotoCase = 93; continue; }; | |
703 if (yych != 'e') { gotoCase = 37; continue; }; | |
704 } | |
705 case 93: | |
706 yych = this._charAt(++cursor); | |
707 if (yych <= ',') { | |
708 if (yych != '+') { gotoCase = 47; continue; }; | |
709 } else { | |
710 if (yych <= '-') { gotoCase = 94; continue; }; | |
711 if (yych <= '/') { gotoCase = 47; continue; }; | |
712 if (yych <= '9') { gotoCase = 95; continue; }; | |
713 { gotoCase = 47; continue; }; | |
714 } | |
715 case 94: | |
716 yych = this._charAt(++cursor); | |
717 if (yych <= '/') { gotoCase = 47; continue; }; | |
718 if (yych >= ':') { gotoCase = 47; continue; }; | |
719 case 95: | |
720 ++cursor; | |
721 yych = this._charAt(cursor); | |
722 if (yych <= '/') { gotoCase = 37; continue; }; | |
723 if (yych <= '9') { gotoCase = 95; continue; }; | |
724 { gotoCase = 37; continue; }; | |
725 case 97: | |
726 ++cursor; | |
727 yych = this._charAt(cursor); | |
728 case 98: | |
729 if (yych <= '\r') { | |
730 if (yych == '\n') { gotoCase = 47; continue; }; | |
731 if (yych <= '\f') { gotoCase = 97; continue; }; | |
732 { gotoCase = 47; continue; }; | |
733 } else { | |
734 if (yych <= '\'') { | |
735 if (yych <= '&') { gotoCase = 97; continue; }; | |
736 { gotoCase = 100; continue; }; | |
737 } else { | |
738 if (yych != '\\') { gotoCase = 97; continue; }; | |
739 } | |
740 } | |
741 ++cursor; | |
742 yych = this._charAt(cursor); | |
743 if (yych <= 'a') { | |
744 if (yych <= '!') { | |
745 if (yych <= '\n') { | |
746 if (yych <= '\t') { gotoCase = 47; continue; }; | |
747 { gotoCase = 103; continue; }; | |
748 } else { | |
749 if (yych == '\r') { gotoCase = 103; continue; }; | |
750 { gotoCase = 47; continue; }; | |
751 } | |
752 } else { | |
753 if (yych <= '\'') { | |
754 if (yych <= '"') { gotoCase = 97; continue; }; | |
755 if (yych <= '&') { gotoCase = 47; continue; }; | |
756 { gotoCase = 97; continue; }; | |
757 } else { | |
758 if (yych == '\\') { gotoCase = 97; continue; }; | |
759 { gotoCase = 47; continue; }; | |
760 } | |
761 } | |
762 } else { | |
763 if (yych <= 'q') { | |
764 if (yych <= 'f') { | |
765 if (yych <= 'b') { gotoCase = 97; continue; }; | |
766 if (yych <= 'e') { gotoCase = 47; continue; }; | |
767 { gotoCase = 97; continue; }; | |
768 } else { | |
769 if (yych == 'n') { gotoCase = 97; continue; }; | |
770 { gotoCase = 47; continue; }; | |
771 } | |
772 } else { | |
773 if (yych <= 't') { | |
774 if (yych == 's') { gotoCase = 47; continue; }; | |
775 { gotoCase = 97; continue; }; | |
776 } else { | |
777 if (yych <= 'u') { gotoCase = 102; continue; }; | |
778 if (yych <= 'v') { gotoCase = 97; continue; }; | |
779 { gotoCase = 47; continue; }; | |
780 } | |
781 } | |
782 } | |
783 case 100: | |
784 ++cursor; | |
785 { this.tokenType = "javascript-string"; return cursor; } | |
786 case 102: | |
787 ++cursor; | |
788 yych = this._charAt(cursor); | |
789 if (yych <= '@') { | |
790 if (yych <= '/') { gotoCase = 47; continue; }; | |
791 if (yych <= '9') { gotoCase = 105; continue; }; | |
792 { gotoCase = 47; continue; }; | |
793 } else { | |
794 if (yych <= 'F') { gotoCase = 105; continue; }; | |
795 if (yych <= '`') { gotoCase = 47; continue; }; | |
796 if (yych <= 'f') { gotoCase = 105; continue; }; | |
797 { gotoCase = 47; continue; }; | |
798 } | |
799 case 103: | |
800 ++cursor; | |
801 this.setLexCondition(this._lexConditions.SSTRING); | |
802 { this.tokenType = "javascript-string"; return cursor; } | |
803 case 105: | |
804 ++cursor; | |
805 yych = this._charAt(cursor); | |
806 if (yych <= '@') { | |
807 if (yych <= '/') { gotoCase = 47; continue; }; | |
808 if (yych >= ':') { gotoCase = 47; continue; }; | |
809 } else { | |
810 if (yych <= 'F') { gotoCase = 106; continue; }; | |
811 if (yych <= '`') { gotoCase = 47; continue; }; | |
812 if (yych >= 'g') { gotoCase = 47; continue; }; | |
813 } | |
814 case 106: | |
815 ++cursor; | |
816 yych = this._charAt(cursor); | |
817 if (yych <= '@') { | |
818 if (yych <= '/') { gotoCase = 47; continue; }; | |
819 if (yych >= ':') { gotoCase = 47; continue; }; | |
820 } else { | |
821 if (yych <= 'F') { gotoCase = 107; continue; }; | |
822 if (yych <= '`') { gotoCase = 47; continue; }; | |
823 if (yych >= 'g') { gotoCase = 47; continue; }; | |
824 } | |
825 case 107: | |
826 ++cursor; | |
827 yych = this._charAt(cursor); | |
828 if (yych <= '@') { | |
829 if (yych <= '/') { gotoCase = 47; continue; }; | |
830 if (yych <= '9') { gotoCase = 97; continue; }; | |
831 { gotoCase = 47; continue; }; | |
832 } else { | |
833 if (yych <= 'F') { gotoCase = 97; continue; }; | |
834 if (yych <= '`') { gotoCase = 47; continue; }; | |
835 if (yych <= 'f') { gotoCase = 97; continue; }; | |
836 { gotoCase = 47; continue; }; | |
837 } | |
838 case 108: | |
839 ++cursor; | |
840 yych = this._charAt(cursor); | |
841 case 109: | |
842 if (yych <= '\r') { | |
843 if (yych == '\n') { gotoCase = 47; continue; }; | |
844 if (yych <= '\f') { gotoCase = 108; continue; }; | |
845 { gotoCase = 47; continue; }; | |
846 } else { | |
847 if (yych <= '"') { | |
848 if (yych <= '!') { gotoCase = 108; continue; }; | |
849 { gotoCase = 100; continue; }; | |
850 } else { | |
851 if (yych != '\\') { gotoCase = 108; continue; }; | |
852 } | |
853 } | |
854 ++cursor; | |
855 yych = this._charAt(cursor); | |
856 if (yych <= 'a') { | |
857 if (yych <= '!') { | |
858 if (yych <= '\n') { | |
859 if (yych <= '\t') { gotoCase = 47; continue; }; | |
860 { gotoCase = 112; continue; }; | |
861 } else { | |
862 if (yych == '\r') { gotoCase = 112; continue; }; | |
863 { gotoCase = 47; continue; }; | |
864 } | |
865 } else { | |
866 if (yych <= '\'') { | |
867 if (yych <= '"') { gotoCase = 108; continue; }; | |
868 if (yych <= '&') { gotoCase = 47; continue; }; | |
869 { gotoCase = 108; continue; }; | |
870 } else { | |
871 if (yych == '\\') { gotoCase = 108; continue; }; | |
872 { gotoCase = 47; continue; }; | |
873 } | |
874 } | |
875 } else { | |
876 if (yych <= 'q') { | |
877 if (yych <= 'f') { | |
878 if (yych <= 'b') { gotoCase = 108; continue; }; | |
879 if (yych <= 'e') { gotoCase = 47; continue; }; | |
880 { gotoCase = 108; continue; }; | |
881 } else { | |
882 if (yych == 'n') { gotoCase = 108; continue; }; | |
883 { gotoCase = 47; continue; }; | |
884 } | |
885 } else { | |
886 if (yych <= 't') { | |
887 if (yych == 's') { gotoCase = 47; continue; }; | |
888 { gotoCase = 108; continue; }; | |
889 } else { | |
890 if (yych <= 'u') { gotoCase = 111; continue; }; | |
891 if (yych <= 'v') { gotoCase = 108; continue; }; | |
892 { gotoCase = 47; continue; }; | |
893 } | |
894 } | |
895 } | |
896 case 111: | |
897 ++cursor; | |
898 yych = this._charAt(cursor); | |
899 if (yych <= '@') { | |
900 if (yych <= '/') { gotoCase = 47; continue; }; | |
901 if (yych <= '9') { gotoCase = 114; continue; }; | |
902 { gotoCase = 47; continue; }; | |
903 } else { | |
904 if (yych <= 'F') { gotoCase = 114; continue; }; | |
905 if (yych <= '`') { gotoCase = 47; continue; }; | |
906 if (yych <= 'f') { gotoCase = 114; continue; }; | |
907 { gotoCase = 47; continue; }; | |
908 } | |
909 case 112: | |
910 ++cursor; | |
911 this.setLexCondition(this._lexConditions.DSTRING); | |
912 { this.tokenType = "javascript-string"; return cursor; } | |
913 case 114: | |
914 ++cursor; | |
915 yych = this._charAt(cursor); | |
916 if (yych <= '@') { | |
917 if (yych <= '/') { gotoCase = 47; continue; }; | |
918 if (yych >= ':') { gotoCase = 47; continue; }; | |
919 } else { | |
920 if (yych <= 'F') { gotoCase = 115; continue; }; | |
921 if (yych <= '`') { gotoCase = 47; continue; }; | |
922 if (yych >= 'g') { gotoCase = 47; continue; }; | |
923 } | |
924 case 115: | |
925 ++cursor; | |
926 yych = this._charAt(cursor); | |
927 if (yych <= '@') { | |
928 if (yych <= '/') { gotoCase = 47; continue; }; | |
929 if (yych >= ':') { gotoCase = 47; continue; }; | |
930 } else { | |
931 if (yych <= 'F') { gotoCase = 116; continue; }; | |
932 if (yych <= '`') { gotoCase = 47; continue; }; | |
933 if (yych >= 'g') { gotoCase = 47; continue; }; | |
934 } | |
935 case 116: | |
936 ++cursor; | |
937 yych = this._charAt(cursor); | |
938 if (yych <= '@') { | |
939 if (yych <= '/') { gotoCase = 47; continue; }; | |
940 if (yych <= '9') { gotoCase = 108; continue; }; | |
941 { gotoCase = 47; continue; }; | |
942 } else { | |
943 if (yych <= 'F') { gotoCase = 108; continue; }; | |
944 if (yych <= '`') { gotoCase = 47; continue; }; | |
945 if (yych <= 'f') { gotoCase = 108; continue; }; | |
946 { gotoCase = 47; continue; }; | |
947 } | |
948 case 117: | |
949 yych = this._charAt(++cursor); | |
950 if (yych == '=') { gotoCase = 45; continue; }; | |
951 { gotoCase = 20; continue; }; | |
952 case 118: | |
953 ++cursor; | |
954 yych = this._charAt(cursor); | |
955 case 119: | |
956 if (yych == ' ') { gotoCase = 118; continue; }; | |
957 { gotoCase = 18; continue; }; | |
958 /* *********************************** */ | |
959 case this.case_DSTRING: | |
960 yych = this._charAt(cursor); | |
961 if (yych <= '\r') { | |
962 if (yych == '\n') { gotoCase = 124; continue; }; | |
963 if (yych <= '\f') { gotoCase = 123; continue; }; | |
964 { gotoCase = 124; continue; }; | |
965 } else { | |
966 if (yych <= '"') { | |
967 if (yych <= '!') { gotoCase = 123; continue; }; | |
968 { gotoCase = 126; continue; }; | |
969 } else { | |
970 if (yych == '\\') { gotoCase = 128; continue; }; | |
971 { gotoCase = 123; continue; }; | |
972 } | |
973 } | |
974 case 122: | |
975 { this.tokenType = "javascript-string"; return cursor; } | |
976 case 123: | |
977 yyaccept = 0; | |
978 yych = this._charAt(YYMARKER = ++cursor); | |
979 { gotoCase = 130; continue; }; | |
980 case 124: | |
981 ++cursor; | |
982 case 125: | |
983 { this.tokenType = null; return cursor; } | |
984 case 126: | |
985 ++cursor; | |
986 case 127: | |
987 this.setLexCondition(this._lexConditions.NODIV); | |
988 { this.tokenType = "javascript-string"; return cursor; } | |
989 case 128: | |
990 yyaccept = 1; | |
991 yych = this._charAt(YYMARKER = ++cursor); | |
992 if (yych <= 'e') { | |
993 if (yych <= '\'') { | |
994 if (yych == '"') { gotoCase = 129; continue; }; | |
995 if (yych <= '&') { gotoCase = 125; continue; }; | |
996 } else { | |
997 if (yych <= '\\') { | |
998 if (yych <= '[') { gotoCase = 125; continue; }; | |
999 } else { | |
1000 if (yych != 'b') { gotoCase = 125; continue; }; | |
1001 } | |
1002 } | |
1003 } else { | |
1004 if (yych <= 'r') { | |
1005 if (yych <= 'm') { | |
1006 if (yych >= 'g') { gotoCase = 125; continue; }; | |
1007 } else { | |
1008 if (yych <= 'n') { gotoCase = 129; continue; }; | |
1009 if (yych <= 'q') { gotoCase = 125; continue; }; | |
1010 } | |
1011 } else { | |
1012 if (yych <= 't') { | |
1013 if (yych <= 's') { gotoCase = 125; continue; }; | |
1014 } else { | |
1015 if (yych <= 'u') { gotoCase = 131; continue; }; | |
1016 if (yych >= 'w') { gotoCase = 125; continue; }; | |
1017 } | |
1018 } | |
1019 } | |
1020 case 129: | |
1021 yyaccept = 0; | |
1022 YYMARKER = ++cursor; | |
1023 yych = this._charAt(cursor); | |
1024 case 130: | |
1025 if (yych <= '\r') { | |
1026 if (yych == '\n') { gotoCase = 122; continue; }; | |
1027 if (yych <= '\f') { gotoCase = 129; continue; }; | |
1028 { gotoCase = 122; continue; }; | |
1029 } else { | |
1030 if (yych <= '"') { | |
1031 if (yych <= '!') { gotoCase = 129; continue; }; | |
1032 { gotoCase = 137; continue; }; | |
1033 } else { | |
1034 if (yych == '\\') { gotoCase = 136; continue; }; | |
1035 { gotoCase = 129; continue; }; | |
1036 } | |
1037 } | |
1038 case 131: | |
1039 ++cursor; | |
1040 yych = this._charAt(cursor); | |
1041 if (yych <= '@') { | |
1042 if (yych <= '/') { gotoCase = 132; continue; }; | |
1043 if (yych <= '9') { gotoCase = 133; continue; }; | |
1044 } else { | |
1045 if (yych <= 'F') { gotoCase = 133; continue; }; | |
1046 if (yych <= '`') { gotoCase = 132; continue; }; | |
1047 if (yych <= 'f') { gotoCase = 133; continue; }; | |
1048 } | |
1049 case 132: | |
1050 cursor = YYMARKER; | |
1051 if (yyaccept <= 0) { | |
1052 { gotoCase = 122; continue; }; | |
1053 } else { | |
1054 { gotoCase = 125; continue; }; | |
1055 } | |
1056 case 133: | |
1057 ++cursor; | |
1058 yych = this._charAt(cursor); | |
1059 if (yych <= '@') { | |
1060 if (yych <= '/') { gotoCase = 132; continue; }; | |
1061 if (yych >= ':') { gotoCase = 132; continue; }; | |
1062 } else { | |
1063 if (yych <= 'F') { gotoCase = 134; continue; }; | |
1064 if (yych <= '`') { gotoCase = 132; continue; }; | |
1065 if (yych >= 'g') { gotoCase = 132; continue; }; | |
1066 } | |
1067 case 134: | |
1068 ++cursor; | |
1069 yych = this._charAt(cursor); | |
1070 if (yych <= '@') { | |
1071 if (yych <= '/') { gotoCase = 132; continue; }; | |
1072 if (yych >= ':') { gotoCase = 132; continue; }; | |
1073 } else { | |
1074 if (yych <= 'F') { gotoCase = 135; continue; }; | |
1075 if (yych <= '`') { gotoCase = 132; continue; }; | |
1076 if (yych >= 'g') { gotoCase = 132; continue; }; | |
1077 } | |
1078 case 135: | |
1079 ++cursor; | |
1080 yych = this._charAt(cursor); | |
1081 if (yych <= '@') { | |
1082 if (yych <= '/') { gotoCase = 132; continue; }; | |
1083 if (yych <= '9') { gotoCase = 129; continue; }; | |
1084 { gotoCase = 132; continue; }; | |
1085 } else { | |
1086 if (yych <= 'F') { gotoCase = 129; continue; }; | |
1087 if (yych <= '`') { gotoCase = 132; continue; }; | |
1088 if (yych <= 'f') { gotoCase = 129; continue; }; | |
1089 { gotoCase = 132; continue; }; | |
1090 } | |
1091 case 136: | |
1092 ++cursor; | |
1093 yych = this._charAt(cursor); | |
1094 if (yych <= 'e') { | |
1095 if (yych <= '\'') { | |
1096 if (yych == '"') { gotoCase = 129; continue; }; | |
1097 if (yych <= '&') { gotoCase = 132; continue; }; | |
1098 { gotoCase = 129; continue; }; | |
1099 } else { | |
1100 if (yych <= '\\') { | |
1101 if (yych <= '[') { gotoCase = 132; continue; }; | |
1102 { gotoCase = 129; continue; }; | |
1103 } else { | |
1104 if (yych == 'b') { gotoCase = 129; continue; }; | |
1105 { gotoCase = 132; continue; }; | |
1106 } | |
1107 } | |
1108 } else { | |
1109 if (yych <= 'r') { | |
1110 if (yych <= 'm') { | |
1111 if (yych <= 'f') { gotoCase = 129; continue; }; | |
1112 { gotoCase = 132; continue; }; | |
1113 } else { | |
1114 if (yych <= 'n') { gotoCase = 129; continue; }; | |
1115 if (yych <= 'q') { gotoCase = 132; continue; }; | |
1116 { gotoCase = 129; continue; }; | |
1117 } | |
1118 } else { | |
1119 if (yych <= 't') { | |
1120 if (yych <= 's') { gotoCase = 132; continue; }; | |
1121 { gotoCase = 129; continue; }; | |
1122 } else { | |
1123 if (yych <= 'u') { gotoCase = 131; continue; }; | |
1124 if (yych <= 'v') { gotoCase = 129; continue; }; | |
1125 { gotoCase = 132; continue; }; | |
1126 } | |
1127 } | |
1128 } | |
1129 case 137: | |
1130 ++cursor; | |
1131 yych = this._charAt(cursor); | |
1132 { gotoCase = 127; continue; }; | |
1133 /* *********************************** */ | |
1134 case this.case_NODIV: | |
1135 yych = this._charAt(cursor); | |
1136 if (yych <= '9') { | |
1137 if (yych <= '\'') { | |
1138 if (yych <= '"') { | |
1139 if (yych <= String.fromCharCode(0x1F)) { gotoCase = 140;
continue; }; | |
1140 if (yych <= ' ') { gotoCase = 142; continue; }; | |
1141 if (yych <= '!') { gotoCase = 144; continue; }; | |
1142 { gotoCase = 146; continue; }; | |
1143 } else { | |
1144 if (yych <= '$') { | |
1145 if (yych >= '$') { gotoCase = 147; continue; }; | |
1146 } else { | |
1147 if (yych <= '%') { gotoCase = 149; continue; }; | |
1148 if (yych <= '&') { gotoCase = 150; continue; }; | |
1149 { gotoCase = 151; continue; }; | |
1150 } | |
1151 } | |
1152 } else { | |
1153 if (yych <= ',') { | |
1154 if (yych <= ')') { | |
1155 if (yych <= '(') { gotoCase = 152; continue; }; | |
1156 { gotoCase = 153; continue; }; | |
1157 } else { | |
1158 if (yych <= '*') { gotoCase = 155; continue; }; | |
1159 if (yych <= '+') { gotoCase = 156; continue; }; | |
1160 { gotoCase = 152; continue; }; | |
1161 } | |
1162 } else { | |
1163 if (yych <= '.') { | |
1164 if (yych <= '-') { gotoCase = 157; continue; }; | |
1165 { gotoCase = 158; continue; }; | |
1166 } else { | |
1167 if (yych <= '/') { gotoCase = 159; continue; }; | |
1168 if (yych <= '0') { gotoCase = 160; continue; }; | |
1169 { gotoCase = 162; continue; }; | |
1170 } | |
1171 } | |
1172 } | |
1173 } else { | |
1174 if (yych <= '\\') { | |
1175 if (yych <= '>') { | |
1176 if (yych <= ';') { gotoCase = 152; continue; }; | |
1177 if (yych <= '<') { gotoCase = 163; continue; }; | |
1178 if (yych <= '=') { gotoCase = 164; continue; }; | |
1179 { gotoCase = 165; continue; }; | |
1180 } else { | |
1181 if (yych <= '@') { | |
1182 if (yych <= '?') { gotoCase = 152; continue; }; | |
1183 } else { | |
1184 if (yych <= 'Z') { gotoCase = 147; continue; }; | |
1185 if (yych <= '[') { gotoCase = 152; continue; }; | |
1186 { gotoCase = 166; continue; }; | |
1187 } | |
1188 } | |
1189 } else { | |
1190 if (yych <= 'z') { | |
1191 if (yych <= '^') { | |
1192 if (yych <= ']') { gotoCase = 152; continue; }; | |
1193 { gotoCase = 167; continue; }; | |
1194 } else { | |
1195 if (yych != '`') { gotoCase = 147; continue; }; | |
1196 } | |
1197 } else { | |
1198 if (yych <= '|') { | |
1199 if (yych <= '{') { gotoCase = 152; continue; }; | |
1200 { gotoCase = 168; continue; }; | |
1201 } else { | |
1202 if (yych <= '~') { gotoCase = 152; continue; }; | |
1203 if (yych >= 0x80) { gotoCase = 147; continue; }; | |
1204 } | |
1205 } | |
1206 } | |
1207 } | |
1208 case 140: | |
1209 ++cursor; | |
1210 case 141: | |
1211 { this.tokenType = null; return cursor; } | |
1212 case 142: | |
1213 ++cursor; | |
1214 yych = this._charAt(cursor); | |
1215 { gotoCase = 268; continue; }; | |
1216 case 143: | |
1217 {this.tokenType = "whitespace"; return cursor; } | |
1218 case 144: | |
1219 ++cursor; | |
1220 if ((yych = this._charAt(cursor)) == '=') { gotoCase = 266; continue
; }; | |
1221 case 145: | |
1222 { | |
1223 var token = this._line.charAt(cursorOnEnter); | |
1224 if (token === "{") | |
1225 this.tokenType = "block-start"; | |
1226 else if (token === "}") | |
1227 this.tokenType = "block-end"; | |
1228 else if (token === "(") | |
1229 this.tokenType = "brace-start"; | |
1230 else this.tokenType = null; | |
1231 return cursor; | |
1232 } | |
1233 case 146: | |
1234 yyaccept = 0; | |
1235 yych = this._charAt(YYMARKER = ++cursor); | |
1236 if (yych == '\n') { gotoCase = 141; continue; }; | |
1237 if (yych == '\r') { gotoCase = 141; continue; }; | |
1238 { gotoCase = 258; continue; }; | |
1239 case 147: | |
1240 yyaccept = 1; | |
1241 yych = this._charAt(YYMARKER = ++cursor); | |
1242 { gotoCase = 176; continue; }; | |
1243 case 148: | |
1244 this.setLexCondition(this._lexConditions.DIV); | |
1245 { | |
1246 var token = this._line.substring(cursorOnEnter, cursor); | |
1247 if (WebInspector.SourceJavaScriptTokenizer.GlobalObjectValue
Properties.hasOwnProperty(token)) | |
1248 this.tokenType = WebInspector.SourceJavaScriptTokenizer.
GlobalObjectValueProperties[token]; | |
1249 else if (WebInspector.SourceJavaScriptTokenizer.Keywords[tok
en] === true && token !== "__proto__") | |
1250 this.tokenType = "javascript-keyword"; | |
1251 else | |
1252 this.tokenType = "javascript-ident"; | |
1253 return cursor; | |
1254 } | |
1255 case 149: | |
1256 yych = this._charAt(++cursor); | |
1257 if (yych == '=') { gotoCase = 169; continue; }; | |
1258 { gotoCase = 145; continue; }; | |
1259 case 150: | |
1260 yych = this._charAt(++cursor); | |
1261 if (yych == '&') { gotoCase = 169; continue; }; | |
1262 if (yych == '=') { gotoCase = 169; continue; }; | |
1263 { gotoCase = 145; continue; }; | |
1264 case 151: | |
1265 yyaccept = 0; | |
1266 yych = this._charAt(YYMARKER = ++cursor); | |
1267 if (yych == '\n') { gotoCase = 141; continue; }; | |
1268 if (yych == '\r') { gotoCase = 141; continue; }; | |
1269 { gotoCase = 247; continue; }; | |
1270 case 152: | |
1271 yych = this._charAt(++cursor); | |
1272 { gotoCase = 145; continue; }; | |
1273 case 153: | |
1274 ++cursor; | |
1275 this.setLexCondition(this._lexConditions.DIV); | |
1276 { this.tokenType = "brace-end"; return cursor; } | |
1277 case 155: | |
1278 yych = this._charAt(++cursor); | |
1279 if (yych == '=') { gotoCase = 169; continue; }; | |
1280 { gotoCase = 145; continue; }; | |
1281 case 156: | |
1282 yych = this._charAt(++cursor); | |
1283 if (yych == '+') { gotoCase = 169; continue; }; | |
1284 if (yych == '=') { gotoCase = 169; continue; }; | |
1285 { gotoCase = 145; continue; }; | |
1286 case 157: | |
1287 yych = this._charAt(++cursor); | |
1288 if (yych == '-') { gotoCase = 169; continue; }; | |
1289 if (yych == '=') { gotoCase = 169; continue; }; | |
1290 { gotoCase = 145; continue; }; | |
1291 case 158: | |
1292 yych = this._charAt(++cursor); | |
1293 if (yych <= '/') { gotoCase = 145; continue; }; | |
1294 if (yych <= '9') { gotoCase = 240; continue; }; | |
1295 { gotoCase = 145; continue; }; | |
1296 case 159: | |
1297 yyaccept = 0; | |
1298 yych = this._charAt(YYMARKER = ++cursor); | |
1299 if (yych <= '*') { | |
1300 if (yych <= '\f') { | |
1301 if (yych == '\n') { gotoCase = 141; continue; }; | |
1302 { gotoCase = 203; continue; }; | |
1303 } else { | |
1304 if (yych <= '\r') { gotoCase = 141; continue; }; | |
1305 if (yych <= ')') { gotoCase = 203; continue; }; | |
1306 { gotoCase = 208; continue; }; | |
1307 } | |
1308 } else { | |
1309 if (yych <= 'Z') { | |
1310 if (yych == '/') { gotoCase = 210; continue; }; | |
1311 { gotoCase = 203; continue; }; | |
1312 } else { | |
1313 if (yych <= '[') { gotoCase = 206; continue; }; | |
1314 if (yych <= '\\') { gotoCase = 205; continue; }; | |
1315 if (yych <= ']') { gotoCase = 141; continue; }; | |
1316 { gotoCase = 203; continue; }; | |
1317 } | |
1318 } | |
1319 case 160: | |
1320 yyaccept = 2; | |
1321 yych = this._charAt(YYMARKER = ++cursor); | |
1322 if (yych <= 'E') { | |
1323 if (yych <= '/') { | |
1324 if (yych == '.') { gotoCase = 189; continue; }; | |
1325 } else { | |
1326 if (yych <= '7') { gotoCase = 198; continue; }; | |
1327 if (yych >= 'E') { gotoCase = 188; continue; }; | |
1328 } | |
1329 } else { | |
1330 if (yych <= 'd') { | |
1331 if (yych == 'X') { gotoCase = 200; continue; }; | |
1332 } else { | |
1333 if (yych <= 'e') { gotoCase = 188; continue; }; | |
1334 if (yych == 'x') { gotoCase = 200; continue; }; | |
1335 } | |
1336 } | |
1337 case 161: | |
1338 this.setLexCondition(this._lexConditions.DIV); | |
1339 { this.tokenType = "javascript-number"; return cursor; } | |
1340 case 162: | |
1341 yyaccept = 2; | |
1342 yych = this._charAt(YYMARKER = ++cursor); | |
1343 if (yych <= '9') { | |
1344 if (yych == '.') { gotoCase = 189; continue; }; | |
1345 if (yych <= '/') { gotoCase = 161; continue; }; | |
1346 { gotoCase = 186; continue; }; | |
1347 } else { | |
1348 if (yych <= 'E') { | |
1349 if (yych <= 'D') { gotoCase = 161; continue; }; | |
1350 { gotoCase = 188; continue; }; | |
1351 } else { | |
1352 if (yych == 'e') { gotoCase = 188; continue; }; | |
1353 { gotoCase = 161; continue; }; | |
1354 } | |
1355 } | |
1356 case 163: | |
1357 yych = this._charAt(++cursor); | |
1358 if (yych <= ';') { gotoCase = 145; continue; }; | |
1359 if (yych <= '<') { gotoCase = 185; continue; }; | |
1360 if (yych <= '=') { gotoCase = 169; continue; }; | |
1361 { gotoCase = 145; continue; }; | |
1362 case 164: | |
1363 yych = this._charAt(++cursor); | |
1364 if (yych == '=') { gotoCase = 184; continue; }; | |
1365 { gotoCase = 145; continue; }; | |
1366 case 165: | |
1367 yych = this._charAt(++cursor); | |
1368 if (yych <= '<') { gotoCase = 145; continue; }; | |
1369 if (yych <= '=') { gotoCase = 169; continue; }; | |
1370 if (yych <= '>') { gotoCase = 182; continue; }; | |
1371 { gotoCase = 145; continue; }; | |
1372 case 166: | |
1373 yyaccept = 0; | |
1374 yych = this._charAt(YYMARKER = ++cursor); | |
1375 if (yych == 'u') { gotoCase = 170; continue; }; | |
1376 { gotoCase = 141; continue; }; | |
1377 case 167: | |
1378 yych = this._charAt(++cursor); | |
1379 if (yych == '=') { gotoCase = 169; continue; }; | |
1380 { gotoCase = 145; continue; }; | |
1381 case 168: | |
1382 yych = this._charAt(++cursor); | |
1383 if (yych == '=') { gotoCase = 169; continue; }; | |
1384 if (yych != '|') { gotoCase = 145; continue; }; | |
1385 case 169: | |
1386 yych = this._charAt(++cursor); | |
1387 { gotoCase = 145; continue; }; | |
1388 case 170: | |
1389 yych = this._charAt(++cursor); | |
1390 if (yych <= '@') { | |
1391 if (yych <= '/') { gotoCase = 171; continue; }; | |
1392 if (yych <= '9') { gotoCase = 172; continue; }; | |
1393 } else { | |
1394 if (yych <= 'F') { gotoCase = 172; continue; }; | |
1395 if (yych <= '`') { gotoCase = 171; continue; }; | |
1396 if (yych <= 'f') { gotoCase = 172; continue; }; | |
1397 } | |
1398 case 171: | |
1399 cursor = YYMARKER; | |
1400 if (yyaccept <= 1) { | |
1401 if (yyaccept <= 0) { | |
1402 { gotoCase = 141; continue; }; | |
1403 } else { | |
1404 { gotoCase = 148; continue; }; | |
1405 } | |
1406 } else { | |
1407 if (yyaccept <= 2) { | |
1408 { gotoCase = 161; continue; }; | |
1409 } else { | |
1410 { gotoCase = 223; continue; }; | |
1411 } | |
1412 } | |
1413 case 172: | |
1414 yych = this._charAt(++cursor); | |
1415 if (yych <= '@') { | |
1416 if (yych <= '/') { gotoCase = 171; continue; }; | |
1417 if (yych >= ':') { gotoCase = 171; continue; }; | |
1418 } else { | |
1419 if (yych <= 'F') { gotoCase = 173; continue; }; | |
1420 if (yych <= '`') { gotoCase = 171; continue; }; | |
1421 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1422 } | |
1423 case 173: | |
1424 yych = this._charAt(++cursor); | |
1425 if (yych <= '@') { | |
1426 if (yych <= '/') { gotoCase = 171; continue; }; | |
1427 if (yych >= ':') { gotoCase = 171; continue; }; | |
1428 } else { | |
1429 if (yych <= 'F') { gotoCase = 174; continue; }; | |
1430 if (yych <= '`') { gotoCase = 171; continue; }; | |
1431 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1432 } | |
1433 case 174: | |
1434 yych = this._charAt(++cursor); | |
1435 if (yych <= '@') { | |
1436 if (yych <= '/') { gotoCase = 171; continue; }; | |
1437 if (yych >= ':') { gotoCase = 171; continue; }; | |
1438 } else { | |
1439 if (yych <= 'F') { gotoCase = 175; continue; }; | |
1440 if (yych <= '`') { gotoCase = 171; continue; }; | |
1441 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1442 } | |
1443 case 175: | |
1444 yyaccept = 1; | |
1445 YYMARKER = ++cursor; | |
1446 yych = this._charAt(cursor); | |
1447 case 176: | |
1448 if (yych <= '[') { | |
1449 if (yych <= '/') { | |
1450 if (yych == '$') { gotoCase = 175; continue; }; | |
1451 { gotoCase = 148; continue; }; | |
1452 } else { | |
1453 if (yych <= '9') { gotoCase = 175; continue; }; | |
1454 if (yych <= '@') { gotoCase = 148; continue; }; | |
1455 if (yych <= 'Z') { gotoCase = 175; continue; }; | |
1456 { gotoCase = 148; continue; }; | |
1457 } | |
1458 } else { | |
1459 if (yych <= '_') { | |
1460 if (yych <= '\\') { gotoCase = 177; continue; }; | |
1461 if (yych <= '^') { gotoCase = 148; continue; }; | |
1462 { gotoCase = 175; continue; }; | |
1463 } else { | |
1464 if (yych <= '`') { gotoCase = 148; continue; }; | |
1465 if (yych <= 'z') { gotoCase = 175; continue; }; | |
1466 if (yych <= String.fromCharCode(0x7F)) { gotoCase = 148; con
tinue; }; | |
1467 { gotoCase = 175; continue; }; | |
1468 } | |
1469 } | |
1470 case 177: | |
1471 ++cursor; | |
1472 yych = this._charAt(cursor); | |
1473 if (yych != 'u') { gotoCase = 171; continue; }; | |
1474 ++cursor; | |
1475 yych = this._charAt(cursor); | |
1476 if (yych <= '@') { | |
1477 if (yych <= '/') { gotoCase = 171; continue; }; | |
1478 if (yych >= ':') { gotoCase = 171; continue; }; | |
1479 } else { | |
1480 if (yych <= 'F') { gotoCase = 179; continue; }; | |
1481 if (yych <= '`') { gotoCase = 171; continue; }; | |
1482 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1483 } | |
1484 case 179: | |
1485 ++cursor; | |
1486 yych = this._charAt(cursor); | |
1487 if (yych <= '@') { | |
1488 if (yych <= '/') { gotoCase = 171; continue; }; | |
1489 if (yych >= ':') { gotoCase = 171; continue; }; | |
1490 } else { | |
1491 if (yych <= 'F') { gotoCase = 180; continue; }; | |
1492 if (yych <= '`') { gotoCase = 171; continue; }; | |
1493 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1494 } | |
1495 case 180: | |
1496 ++cursor; | |
1497 yych = this._charAt(cursor); | |
1498 if (yych <= '@') { | |
1499 if (yych <= '/') { gotoCase = 171; continue; }; | |
1500 if (yych >= ':') { gotoCase = 171; continue; }; | |
1501 } else { | |
1502 if (yych <= 'F') { gotoCase = 181; continue; }; | |
1503 if (yych <= '`') { gotoCase = 171; continue; }; | |
1504 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1505 } | |
1506 case 181: | |
1507 ++cursor; | |
1508 yych = this._charAt(cursor); | |
1509 if (yych <= '@') { | |
1510 if (yych <= '/') { gotoCase = 171; continue; }; | |
1511 if (yych <= '9') { gotoCase = 175; continue; }; | |
1512 { gotoCase = 171; continue; }; | |
1513 } else { | |
1514 if (yych <= 'F') { gotoCase = 175; continue; }; | |
1515 if (yych <= '`') { gotoCase = 171; continue; }; | |
1516 if (yych <= 'f') { gotoCase = 175; continue; }; | |
1517 { gotoCase = 171; continue; }; | |
1518 } | |
1519 case 182: | |
1520 yych = this._charAt(++cursor); | |
1521 if (yych <= '<') { gotoCase = 145; continue; }; | |
1522 if (yych <= '=') { gotoCase = 169; continue; }; | |
1523 if (yych >= '?') { gotoCase = 145; continue; }; | |
1524 yych = this._charAt(++cursor); | |
1525 if (yych == '=') { gotoCase = 169; continue; }; | |
1526 { gotoCase = 145; continue; }; | |
1527 case 184: | |
1528 yych = this._charAt(++cursor); | |
1529 if (yych == '=') { gotoCase = 169; continue; }; | |
1530 { gotoCase = 145; continue; }; | |
1531 case 185: | |
1532 yych = this._charAt(++cursor); | |
1533 if (yych == '=') { gotoCase = 169; continue; }; | |
1534 { gotoCase = 145; continue; }; | |
1535 case 186: | |
1536 yyaccept = 2; | |
1537 YYMARKER = ++cursor; | |
1538 yych = this._charAt(cursor); | |
1539 if (yych <= '9') { | |
1540 if (yych == '.') { gotoCase = 189; continue; }; | |
1541 if (yych <= '/') { gotoCase = 161; continue; }; | |
1542 { gotoCase = 186; continue; }; | |
1543 } else { | |
1544 if (yych <= 'E') { | |
1545 if (yych <= 'D') { gotoCase = 161; continue; }; | |
1546 } else { | |
1547 if (yych != 'e') { gotoCase = 161; continue; }; | |
1548 } | |
1549 } | |
1550 case 188: | |
1551 yych = this._charAt(++cursor); | |
1552 if (yych <= ',') { | |
1553 if (yych == '+') { gotoCase = 195; continue; }; | |
1554 { gotoCase = 171; continue; }; | |
1555 } else { | |
1556 if (yych <= '-') { gotoCase = 195; continue; }; | |
1557 if (yych <= '/') { gotoCase = 171; continue; }; | |
1558 if (yych <= '9') { gotoCase = 196; continue; }; | |
1559 { gotoCase = 171; continue; }; | |
1560 } | |
1561 case 189: | |
1562 yyaccept = 2; | |
1563 YYMARKER = ++cursor; | |
1564 yych = this._charAt(cursor); | |
1565 if (yych <= 'D') { | |
1566 if (yych <= '/') { gotoCase = 161; continue; }; | |
1567 if (yych <= '9') { gotoCase = 189; continue; }; | |
1568 { gotoCase = 161; continue; }; | |
1569 } else { | |
1570 if (yych <= 'E') { gotoCase = 191; continue; }; | |
1571 if (yych != 'e') { gotoCase = 161; continue; }; | |
1572 } | |
1573 case 191: | |
1574 yych = this._charAt(++cursor); | |
1575 if (yych <= ',') { | |
1576 if (yych != '+') { gotoCase = 171; continue; }; | |
1577 } else { | |
1578 if (yych <= '-') { gotoCase = 192; continue; }; | |
1579 if (yych <= '/') { gotoCase = 171; continue; }; | |
1580 if (yych <= '9') { gotoCase = 193; continue; }; | |
1581 { gotoCase = 171; continue; }; | |
1582 } | |
1583 case 192: | |
1584 yych = this._charAt(++cursor); | |
1585 if (yych <= '/') { gotoCase = 171; continue; }; | |
1586 if (yych >= ':') { gotoCase = 171; continue; }; | |
1587 case 193: | |
1588 ++cursor; | |
1589 yych = this._charAt(cursor); | |
1590 if (yych <= '/') { gotoCase = 161; continue; }; | |
1591 if (yych <= '9') { gotoCase = 193; continue; }; | |
1592 { gotoCase = 161; continue; }; | |
1593 case 195: | |
1594 yych = this._charAt(++cursor); | |
1595 if (yych <= '/') { gotoCase = 171; continue; }; | |
1596 if (yych >= ':') { gotoCase = 171; continue; }; | |
1597 case 196: | |
1598 ++cursor; | |
1599 yych = this._charAt(cursor); | |
1600 if (yych <= '/') { gotoCase = 161; continue; }; | |
1601 if (yych <= '9') { gotoCase = 196; continue; }; | |
1602 { gotoCase = 161; continue; }; | |
1603 case 198: | |
1604 ++cursor; | |
1605 yych = this._charAt(cursor); | |
1606 if (yych <= '/') { gotoCase = 161; continue; }; | |
1607 if (yych <= '7') { gotoCase = 198; continue; }; | |
1608 { gotoCase = 161; continue; }; | |
1609 case 200: | |
1610 yych = this._charAt(++cursor); | |
1611 if (yych <= '@') { | |
1612 if (yych <= '/') { gotoCase = 171; continue; }; | |
1613 if (yych >= ':') { gotoCase = 171; continue; }; | |
1614 } else { | |
1615 if (yych <= 'F') { gotoCase = 201; continue; }; | |
1616 if (yych <= '`') { gotoCase = 171; continue; }; | |
1617 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1618 } | |
1619 case 201: | |
1620 ++cursor; | |
1621 yych = this._charAt(cursor); | |
1622 if (yych <= '@') { | |
1623 if (yych <= '/') { gotoCase = 161; continue; }; | |
1624 if (yych <= '9') { gotoCase = 201; continue; }; | |
1625 { gotoCase = 161; continue; }; | |
1626 } else { | |
1627 if (yych <= 'F') { gotoCase = 201; continue; }; | |
1628 if (yych <= '`') { gotoCase = 161; continue; }; | |
1629 if (yych <= 'f') { gotoCase = 201; continue; }; | |
1630 { gotoCase = 161; continue; }; | |
1631 } | |
1632 case 203: | |
1633 ++cursor; | |
1634 yych = this._charAt(cursor); | |
1635 if (yych <= '.') { | |
1636 if (yych <= '\n') { | |
1637 if (yych <= '\t') { gotoCase = 203; continue; }; | |
1638 { gotoCase = 171; continue; }; | |
1639 } else { | |
1640 if (yych == '\r') { gotoCase = 171; continue; }; | |
1641 { gotoCase = 203; continue; }; | |
1642 } | |
1643 } else { | |
1644 if (yych <= '[') { | |
1645 if (yych <= '/') { gotoCase = 226; continue; }; | |
1646 if (yych <= 'Z') { gotoCase = 203; continue; }; | |
1647 { gotoCase = 234; continue; }; | |
1648 } else { | |
1649 if (yych <= '\\') { gotoCase = 233; continue; }; | |
1650 if (yych <= ']') { gotoCase = 171; continue; }; | |
1651 { gotoCase = 203; continue; }; | |
1652 } | |
1653 } | |
1654 case 205: | |
1655 yych = this._charAt(++cursor); | |
1656 if (yych == '\n') { gotoCase = 171; continue; }; | |
1657 if (yych == '\r') { gotoCase = 171; continue; }; | |
1658 { gotoCase = 203; continue; }; | |
1659 case 206: | |
1660 ++cursor; | |
1661 yych = this._charAt(cursor); | |
1662 if (yych <= '*') { | |
1663 if (yych <= '\f') { | |
1664 if (yych == '\n') { gotoCase = 171; continue; }; | |
1665 { gotoCase = 206; continue; }; | |
1666 } else { | |
1667 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1668 if (yych <= ')') { gotoCase = 206; continue; }; | |
1669 { gotoCase = 171; continue; }; | |
1670 } | |
1671 } else { | |
1672 if (yych <= '[') { | |
1673 if (yych == '/') { gotoCase = 171; continue; }; | |
1674 { gotoCase = 206; continue; }; | |
1675 } else { | |
1676 if (yych <= '\\') { gotoCase = 221; continue; }; | |
1677 if (yych <= ']') { gotoCase = 219; continue; }; | |
1678 { gotoCase = 206; continue; }; | |
1679 } | |
1680 } | |
1681 case 208: | |
1682 ++cursor; | |
1683 yych = this._charAt(cursor); | |
1684 if (yych <= '\f') { | |
1685 if (yych == '\n') { gotoCase = 215; continue; }; | |
1686 { gotoCase = 208; continue; }; | |
1687 } else { | |
1688 if (yych <= '\r') { gotoCase = 215; continue; }; | |
1689 if (yych == '*') { gotoCase = 213; continue; }; | |
1690 { gotoCase = 208; continue; }; | |
1691 } | |
1692 case 210: | |
1693 ++cursor; | |
1694 yych = this._charAt(cursor); | |
1695 if (yych == '\n') { gotoCase = 212; continue; }; | |
1696 if (yych != '\r') { gotoCase = 210; continue; }; | |
1697 case 212: | |
1698 { this.tokenType = "javascript-comment"; return cursor; } | |
1699 case 213: | |
1700 ++cursor; | |
1701 yych = this._charAt(cursor); | |
1702 if (yych == '*') { gotoCase = 213; continue; }; | |
1703 if (yych == '/') { gotoCase = 217; continue; }; | |
1704 { gotoCase = 208; continue; }; | |
1705 case 215: | |
1706 ++cursor; | |
1707 this.setLexCondition(this._lexConditions.COMMENT); | |
1708 { this.tokenType = "javascript-comment"; return cursor; } | |
1709 case 217: | |
1710 ++cursor; | |
1711 { this.tokenType = "javascript-comment"; return cursor; } | |
1712 case 219: | |
1713 ++cursor; | |
1714 yych = this._charAt(cursor); | |
1715 if (yych <= '*') { | |
1716 if (yych <= '\f') { | |
1717 if (yych == '\n') { gotoCase = 171; continue; }; | |
1718 { gotoCase = 219; continue; }; | |
1719 } else { | |
1720 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1721 if (yych <= ')') { gotoCase = 219; continue; }; | |
1722 { gotoCase = 203; continue; }; | |
1723 } | |
1724 } else { | |
1725 if (yych <= 'Z') { | |
1726 if (yych == '/') { gotoCase = 226; continue; }; | |
1727 { gotoCase = 219; continue; }; | |
1728 } else { | |
1729 if (yych <= '[') { gotoCase = 224; continue; }; | |
1730 if (yych <= '\\') { gotoCase = 222; continue; }; | |
1731 { gotoCase = 219; continue; }; | |
1732 } | |
1733 } | |
1734 case 221: | |
1735 ++cursor; | |
1736 yych = this._charAt(cursor); | |
1737 if (yych == '\n') { gotoCase = 171; continue; }; | |
1738 if (yych == '\r') { gotoCase = 171; continue; }; | |
1739 { gotoCase = 206; continue; }; | |
1740 case 222: | |
1741 yyaccept = 3; | |
1742 YYMARKER = ++cursor; | |
1743 yych = this._charAt(cursor); | |
1744 if (yych == '\n') { gotoCase = 223; continue; }; | |
1745 if (yych != '\r') { gotoCase = 219; continue; }; | |
1746 case 223: | |
1747 this.setLexCondition(this._lexConditions.REGEX); | |
1748 { this.tokenType = "javascript-regexp"; return cursor; } | |
1749 case 224: | |
1750 ++cursor; | |
1751 yych = this._charAt(cursor); | |
1752 if (yych <= '*') { | |
1753 if (yych <= '\f') { | |
1754 if (yych == '\n') { gotoCase = 171; continue; }; | |
1755 { gotoCase = 224; continue; }; | |
1756 } else { | |
1757 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1758 if (yych <= ')') { gotoCase = 224; continue; }; | |
1759 { gotoCase = 171; continue; }; | |
1760 } | |
1761 } else { | |
1762 if (yych <= '[') { | |
1763 if (yych == '/') { gotoCase = 171; continue; }; | |
1764 { gotoCase = 224; continue; }; | |
1765 } else { | |
1766 if (yych <= '\\') { gotoCase = 231; continue; }; | |
1767 if (yych <= ']') { gotoCase = 229; continue; }; | |
1768 { gotoCase = 224; continue; }; | |
1769 } | |
1770 } | |
1771 case 226: | |
1772 ++cursor; | |
1773 yych = this._charAt(cursor); | |
1774 if (yych <= 'h') { | |
1775 if (yych == 'g') { gotoCase = 226; continue; }; | |
1776 } else { | |
1777 if (yych <= 'i') { gotoCase = 226; continue; }; | |
1778 if (yych == 'm') { gotoCase = 226; continue; }; | |
1779 } | |
1780 { this.tokenType = "javascript-regexp"; return cursor; } | |
1781 case 229: | |
1782 ++cursor; | |
1783 yych = this._charAt(cursor); | |
1784 if (yych <= '*') { | |
1785 if (yych <= '\f') { | |
1786 if (yych == '\n') { gotoCase = 171; continue; }; | |
1787 { gotoCase = 229; continue; }; | |
1788 } else { | |
1789 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1790 if (yych <= ')') { gotoCase = 229; continue; }; | |
1791 { gotoCase = 203; continue; }; | |
1792 } | |
1793 } else { | |
1794 if (yych <= 'Z') { | |
1795 if (yych == '/') { gotoCase = 226; continue; }; | |
1796 { gotoCase = 229; continue; }; | |
1797 } else { | |
1798 if (yych <= '[') { gotoCase = 224; continue; }; | |
1799 if (yych <= '\\') { gotoCase = 232; continue; }; | |
1800 { gotoCase = 229; continue; }; | |
1801 } | |
1802 } | |
1803 case 231: | |
1804 ++cursor; | |
1805 yych = this._charAt(cursor); | |
1806 if (yych == '\n') { gotoCase = 171; continue; }; | |
1807 if (yych == '\r') { gotoCase = 171; continue; }; | |
1808 { gotoCase = 224; continue; }; | |
1809 case 232: | |
1810 yyaccept = 3; | |
1811 YYMARKER = ++cursor; | |
1812 yych = this._charAt(cursor); | |
1813 if (yych == '\n') { gotoCase = 223; continue; }; | |
1814 if (yych == '\r') { gotoCase = 223; continue; }; | |
1815 { gotoCase = 229; continue; }; | |
1816 case 233: | |
1817 yyaccept = 3; | |
1818 YYMARKER = ++cursor; | |
1819 yych = this._charAt(cursor); | |
1820 if (yych == '\n') { gotoCase = 223; continue; }; | |
1821 if (yych == '\r') { gotoCase = 223; continue; }; | |
1822 { gotoCase = 203; continue; }; | |
1823 case 234: | |
1824 ++cursor; | |
1825 yych = this._charAt(cursor); | |
1826 if (yych <= '*') { | |
1827 if (yych <= '\f') { | |
1828 if (yych == '\n') { gotoCase = 171; continue; }; | |
1829 { gotoCase = 234; continue; }; | |
1830 } else { | |
1831 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1832 if (yych <= ')') { gotoCase = 234; continue; }; | |
1833 { gotoCase = 171; continue; }; | |
1834 } | |
1835 } else { | |
1836 if (yych <= '[') { | |
1837 if (yych == '/') { gotoCase = 171; continue; }; | |
1838 { gotoCase = 234; continue; }; | |
1839 } else { | |
1840 if (yych <= '\\') { gotoCase = 238; continue; }; | |
1841 if (yych >= '^') { gotoCase = 234; continue; }; | |
1842 } | |
1843 } | |
1844 case 236: | |
1845 ++cursor; | |
1846 yych = this._charAt(cursor); | |
1847 if (yych <= '*') { | |
1848 if (yych <= '\f') { | |
1849 if (yych == '\n') { gotoCase = 171; continue; }; | |
1850 { gotoCase = 236; continue; }; | |
1851 } else { | |
1852 if (yych <= '\r') { gotoCase = 171; continue; }; | |
1853 if (yych <= ')') { gotoCase = 236; continue; }; | |
1854 { gotoCase = 203; continue; }; | |
1855 } | |
1856 } else { | |
1857 if (yych <= 'Z') { | |
1858 if (yych == '/') { gotoCase = 226; continue; }; | |
1859 { gotoCase = 236; continue; }; | |
1860 } else { | |
1861 if (yych <= '[') { gotoCase = 234; continue; }; | |
1862 if (yych <= '\\') { gotoCase = 239; continue; }; | |
1863 { gotoCase = 236; continue; }; | |
1864 } | |
1865 } | |
1866 case 238: | |
1867 ++cursor; | |
1868 yych = this._charAt(cursor); | |
1869 if (yych == '\n') { gotoCase = 171; continue; }; | |
1870 if (yych == '\r') { gotoCase = 171; continue; }; | |
1871 { gotoCase = 234; continue; }; | |
1872 case 239: | |
1873 yyaccept = 3; | |
1874 YYMARKER = ++cursor; | |
1875 yych = this._charAt(cursor); | |
1876 if (yych == '\n') { gotoCase = 223; continue; }; | |
1877 if (yych == '\r') { gotoCase = 223; continue; }; | |
1878 { gotoCase = 236; continue; }; | |
1879 case 240: | |
1880 yyaccept = 2; | |
1881 YYMARKER = ++cursor; | |
1882 yych = this._charAt(cursor); | |
1883 if (yych <= 'D') { | |
1884 if (yych <= '/') { gotoCase = 161; continue; }; | |
1885 if (yych <= '9') { gotoCase = 240; continue; }; | |
1886 { gotoCase = 161; continue; }; | |
1887 } else { | |
1888 if (yych <= 'E') { gotoCase = 242; continue; }; | |
1889 if (yych != 'e') { gotoCase = 161; continue; }; | |
1890 } | |
1891 case 242: | |
1892 yych = this._charAt(++cursor); | |
1893 if (yych <= ',') { | |
1894 if (yych != '+') { gotoCase = 171; continue; }; | |
1895 } else { | |
1896 if (yych <= '-') { gotoCase = 243; continue; }; | |
1897 if (yych <= '/') { gotoCase = 171; continue; }; | |
1898 if (yych <= '9') { gotoCase = 244; continue; }; | |
1899 { gotoCase = 171; continue; }; | |
1900 } | |
1901 case 243: | |
1902 yych = this._charAt(++cursor); | |
1903 if (yych <= '/') { gotoCase = 171; continue; }; | |
1904 if (yych >= ':') { gotoCase = 171; continue; }; | |
1905 case 244: | |
1906 ++cursor; | |
1907 yych = this._charAt(cursor); | |
1908 if (yych <= '/') { gotoCase = 161; continue; }; | |
1909 if (yych <= '9') { gotoCase = 244; continue; }; | |
1910 { gotoCase = 161; continue; }; | |
1911 case 246: | |
1912 ++cursor; | |
1913 yych = this._charAt(cursor); | |
1914 case 247: | |
1915 if (yych <= '\r') { | |
1916 if (yych == '\n') { gotoCase = 171; continue; }; | |
1917 if (yych <= '\f') { gotoCase = 246; continue; }; | |
1918 { gotoCase = 171; continue; }; | |
1919 } else { | |
1920 if (yych <= '\'') { | |
1921 if (yych <= '&') { gotoCase = 246; continue; }; | |
1922 { gotoCase = 249; continue; }; | |
1923 } else { | |
1924 if (yych != '\\') { gotoCase = 246; continue; }; | |
1925 } | |
1926 } | |
1927 ++cursor; | |
1928 yych = this._charAt(cursor); | |
1929 if (yych <= 'a') { | |
1930 if (yych <= '!') { | |
1931 if (yych <= '\n') { | |
1932 if (yych <= '\t') { gotoCase = 171; continue; }; | |
1933 { gotoCase = 252; continue; }; | |
1934 } else { | |
1935 if (yych == '\r') { gotoCase = 252; continue; }; | |
1936 { gotoCase = 171; continue; }; | |
1937 } | |
1938 } else { | |
1939 if (yych <= '\'') { | |
1940 if (yych <= '"') { gotoCase = 246; continue; }; | |
1941 if (yych <= '&') { gotoCase = 171; continue; }; | |
1942 { gotoCase = 246; continue; }; | |
1943 } else { | |
1944 if (yych == '\\') { gotoCase = 246; continue; }; | |
1945 { gotoCase = 171; continue; }; | |
1946 } | |
1947 } | |
1948 } else { | |
1949 if (yych <= 'q') { | |
1950 if (yych <= 'f') { | |
1951 if (yych <= 'b') { gotoCase = 246; continue; }; | |
1952 if (yych <= 'e') { gotoCase = 171; continue; }; | |
1953 { gotoCase = 246; continue; }; | |
1954 } else { | |
1955 if (yych == 'n') { gotoCase = 246; continue; }; | |
1956 { gotoCase = 171; continue; }; | |
1957 } | |
1958 } else { | |
1959 if (yych <= 't') { | |
1960 if (yych == 's') { gotoCase = 171; continue; }; | |
1961 { gotoCase = 246; continue; }; | |
1962 } else { | |
1963 if (yych <= 'u') { gotoCase = 251; continue; }; | |
1964 if (yych <= 'v') { gotoCase = 246; continue; }; | |
1965 { gotoCase = 171; continue; }; | |
1966 } | |
1967 } | |
1968 } | |
1969 case 249: | |
1970 ++cursor; | |
1971 { this.tokenType = "javascript-string"; return cursor; } | |
1972 case 251: | |
1973 ++cursor; | |
1974 yych = this._charAt(cursor); | |
1975 if (yych <= '@') { | |
1976 if (yych <= '/') { gotoCase = 171; continue; }; | |
1977 if (yych <= '9') { gotoCase = 254; continue; }; | |
1978 { gotoCase = 171; continue; }; | |
1979 } else { | |
1980 if (yych <= 'F') { gotoCase = 254; continue; }; | |
1981 if (yych <= '`') { gotoCase = 171; continue; }; | |
1982 if (yych <= 'f') { gotoCase = 254; continue; }; | |
1983 { gotoCase = 171; continue; }; | |
1984 } | |
1985 case 252: | |
1986 ++cursor; | |
1987 this.setLexCondition(this._lexConditions.SSTRING); | |
1988 { this.tokenType = "javascript-string"; return cursor; } | |
1989 case 254: | |
1990 ++cursor; | |
1991 yych = this._charAt(cursor); | |
1992 if (yych <= '@') { | |
1993 if (yych <= '/') { gotoCase = 171; continue; }; | |
1994 if (yych >= ':') { gotoCase = 171; continue; }; | |
1995 } else { | |
1996 if (yych <= 'F') { gotoCase = 255; continue; }; | |
1997 if (yych <= '`') { gotoCase = 171; continue; }; | |
1998 if (yych >= 'g') { gotoCase = 171; continue; }; | |
1999 } | |
2000 case 255: | |
2001 ++cursor; | |
2002 yych = this._charAt(cursor); | |
2003 if (yych <= '@') { | |
2004 if (yych <= '/') { gotoCase = 171; continue; }; | |
2005 if (yych >= ':') { gotoCase = 171; continue; }; | |
2006 } else { | |
2007 if (yych <= 'F') { gotoCase = 256; continue; }; | |
2008 if (yych <= '`') { gotoCase = 171; continue; }; | |
2009 if (yych >= 'g') { gotoCase = 171; continue; }; | |
2010 } | |
2011 case 256: | |
2012 ++cursor; | |
2013 yych = this._charAt(cursor); | |
2014 if (yych <= '@') { | |
2015 if (yych <= '/') { gotoCase = 171; continue; }; | |
2016 if (yych <= '9') { gotoCase = 246; continue; }; | |
2017 { gotoCase = 171; continue; }; | |
2018 } else { | |
2019 if (yych <= 'F') { gotoCase = 246; continue; }; | |
2020 if (yych <= '`') { gotoCase = 171; continue; }; | |
2021 if (yych <= 'f') { gotoCase = 246; continue; }; | |
2022 { gotoCase = 171; continue; }; | |
2023 } | |
2024 case 257: | |
2025 ++cursor; | |
2026 yych = this._charAt(cursor); | |
2027 case 258: | |
2028 if (yych <= '\r') { | |
2029 if (yych == '\n') { gotoCase = 171; continue; }; | |
2030 if (yych <= '\f') { gotoCase = 257; continue; }; | |
2031 { gotoCase = 171; continue; }; | |
2032 } else { | |
2033 if (yych <= '"') { | |
2034 if (yych <= '!') { gotoCase = 257; continue; }; | |
2035 { gotoCase = 249; continue; }; | |
2036 } else { | |
2037 if (yych != '\\') { gotoCase = 257; continue; }; | |
2038 } | |
2039 } | |
2040 ++cursor; | |
2041 yych = this._charAt(cursor); | |
2042 if (yych <= 'a') { | |
2043 if (yych <= '!') { | |
2044 if (yych <= '\n') { | |
2045 if (yych <= '\t') { gotoCase = 171; continue; }; | |
2046 { gotoCase = 261; continue; }; | |
2047 } else { | |
2048 if (yych == '\r') { gotoCase = 261; continue; }; | |
2049 { gotoCase = 171; continue; }; | |
2050 } | |
2051 } else { | |
2052 if (yych <= '\'') { | |
2053 if (yych <= '"') { gotoCase = 257; continue; }; | |
2054 if (yych <= '&') { gotoCase = 171; continue; }; | |
2055 { gotoCase = 257; continue; }; | |
2056 } else { | |
2057 if (yych == '\\') { gotoCase = 257; continue; }; | |
2058 { gotoCase = 171; continue; }; | |
2059 } | |
2060 } | |
2061 } else { | |
2062 if (yych <= 'q') { | |
2063 if (yych <= 'f') { | |
2064 if (yych <= 'b') { gotoCase = 257; continue; }; | |
2065 if (yych <= 'e') { gotoCase = 171; continue; }; | |
2066 { gotoCase = 257; continue; }; | |
2067 } else { | |
2068 if (yych == 'n') { gotoCase = 257; continue; }; | |
2069 { gotoCase = 171; continue; }; | |
2070 } | |
2071 } else { | |
2072 if (yych <= 't') { | |
2073 if (yych == 's') { gotoCase = 171; continue; }; | |
2074 { gotoCase = 257; continue; }; | |
2075 } else { | |
2076 if (yych <= 'u') { gotoCase = 260; continue; }; | |
2077 if (yych <= 'v') { gotoCase = 257; continue; }; | |
2078 { gotoCase = 171; continue; }; | |
2079 } | |
2080 } | |
2081 } | |
2082 case 260: | |
2083 ++cursor; | |
2084 yych = this._charAt(cursor); | |
2085 if (yych <= '@') { | |
2086 if (yych <= '/') { gotoCase = 171; continue; }; | |
2087 if (yych <= '9') { gotoCase = 263; continue; }; | |
2088 { gotoCase = 171; continue; }; | |
2089 } else { | |
2090 if (yych <= 'F') { gotoCase = 263; continue; }; | |
2091 if (yych <= '`') { gotoCase = 171; continue; }; | |
2092 if (yych <= 'f') { gotoCase = 263; continue; }; | |
2093 { gotoCase = 171; continue; }; | |
2094 } | |
2095 case 261: | |
2096 ++cursor; | |
2097 this.setLexCondition(this._lexConditions.DSTRING); | |
2098 { this.tokenType = "javascript-string"; return cursor; } | |
2099 case 263: | |
2100 ++cursor; | |
2101 yych = this._charAt(cursor); | |
2102 if (yych <= '@') { | |
2103 if (yych <= '/') { gotoCase = 171; continue; }; | |
2104 if (yych >= ':') { gotoCase = 171; continue; }; | |
2105 } else { | |
2106 if (yych <= 'F') { gotoCase = 264; continue; }; | |
2107 if (yych <= '`') { gotoCase = 171; continue; }; | |
2108 if (yych >= 'g') { gotoCase = 171; continue; }; | |
2109 } | |
2110 case 264: | |
2111 ++cursor; | |
2112 yych = this._charAt(cursor); | |
2113 if (yych <= '@') { | |
2114 if (yych <= '/') { gotoCase = 171; continue; }; | |
2115 if (yych >= ':') { gotoCase = 171; continue; }; | |
2116 } else { | |
2117 if (yych <= 'F') { gotoCase = 265; continue; }; | |
2118 if (yych <= '`') { gotoCase = 171; continue; }; | |
2119 if (yych >= 'g') { gotoCase = 171; continue; }; | |
2120 } | |
2121 case 265: | |
2122 ++cursor; | |
2123 yych = this._charAt(cursor); | |
2124 if (yych <= '@') { | |
2125 if (yych <= '/') { gotoCase = 171; continue; }; | |
2126 if (yych <= '9') { gotoCase = 257; continue; }; | |
2127 { gotoCase = 171; continue; }; | |
2128 } else { | |
2129 if (yych <= 'F') { gotoCase = 257; continue; }; | |
2130 if (yych <= '`') { gotoCase = 171; continue; }; | |
2131 if (yych <= 'f') { gotoCase = 257; continue; }; | |
2132 { gotoCase = 171; continue; }; | |
2133 } | |
2134 case 266: | |
2135 yych = this._charAt(++cursor); | |
2136 if (yych == '=') { gotoCase = 169; continue; }; | |
2137 { gotoCase = 145; continue; }; | |
2138 case 267: | |
2139 ++cursor; | |
2140 yych = this._charAt(cursor); | |
2141 case 268: | |
2142 if (yych == ' ') { gotoCase = 267; continue; }; | |
2143 { gotoCase = 143; continue; }; | |
2144 /* *********************************** */ | |
2145 case this.case_REGEX: | |
2146 yych = this._charAt(cursor); | |
2147 if (yych <= '.') { | |
2148 if (yych <= '\n') { | |
2149 if (yych <= '\t') { gotoCase = 272; continue; }; | |
2150 { gotoCase = 273; continue; }; | |
2151 } else { | |
2152 if (yych == '\r') { gotoCase = 273; continue; }; | |
2153 { gotoCase = 272; continue; }; | |
2154 } | |
2155 } else { | |
2156 if (yych <= '[') { | |
2157 if (yych <= '/') { gotoCase = 275; continue; }; | |
2158 if (yych <= 'Z') { gotoCase = 272; continue; }; | |
2159 { gotoCase = 277; continue; }; | |
2160 } else { | |
2161 if (yych <= '\\') { gotoCase = 278; continue; }; | |
2162 if (yych <= ']') { gotoCase = 273; continue; }; | |
2163 { gotoCase = 272; continue; }; | |
2164 } | |
2165 } | |
2166 case 271: | |
2167 { this.tokenType = "javascript-regexp"; return cursor; } | |
2168 case 272: | |
2169 yyaccept = 0; | |
2170 yych = this._charAt(YYMARKER = ++cursor); | |
2171 { gotoCase = 280; continue; }; | |
2172 case 273: | |
2173 ++cursor; | |
2174 case 274: | |
2175 { this.tokenType = null; return cursor; } | |
2176 case 275: | |
2177 ++cursor; | |
2178 yych = this._charAt(cursor); | |
2179 { gotoCase = 286; continue; }; | |
2180 case 276: | |
2181 this.setLexCondition(this._lexConditions.NODIV); | |
2182 { this.tokenType = "javascript-regexp"; return cursor; } | |
2183 case 277: | |
2184 yyaccept = 1; | |
2185 yych = this._charAt(YYMARKER = ++cursor); | |
2186 if (yych <= '\r') { | |
2187 if (yych == '\n') { gotoCase = 274; continue; }; | |
2188 if (yych <= '\f') { gotoCase = 284; continue; }; | |
2189 { gotoCase = 274; continue; }; | |
2190 } else { | |
2191 if (yych <= '*') { | |
2192 if (yych <= ')') { gotoCase = 284; continue; }; | |
2193 { gotoCase = 274; continue; }; | |
2194 } else { | |
2195 if (yych == '/') { gotoCase = 274; continue; }; | |
2196 { gotoCase = 284; continue; }; | |
2197 } | |
2198 } | |
2199 case 278: | |
2200 yych = this._charAt(++cursor); | |
2201 if (yych == '\n') { gotoCase = 274; continue; }; | |
2202 if (yych == '\r') { gotoCase = 274; continue; }; | |
2203 case 279: | |
2204 yyaccept = 0; | |
2205 YYMARKER = ++cursor; | |
2206 yych = this._charAt(cursor); | |
2207 case 280: | |
2208 if (yych <= '.') { | |
2209 if (yych <= '\n') { | |
2210 if (yych <= '\t') { gotoCase = 279; continue; }; | |
2211 { gotoCase = 271; continue; }; | |
2212 } else { | |
2213 if (yych == '\r') { gotoCase = 271; continue; }; | |
2214 { gotoCase = 279; continue; }; | |
2215 } | |
2216 } else { | |
2217 if (yych <= '[') { | |
2218 if (yych <= '/') { gotoCase = 285; continue; }; | |
2219 if (yych <= 'Z') { gotoCase = 279; continue; }; | |
2220 { gotoCase = 283; continue; }; | |
2221 } else { | |
2222 if (yych <= '\\') { gotoCase = 281; continue; }; | |
2223 if (yych <= ']') { gotoCase = 271; continue; }; | |
2224 { gotoCase = 279; continue; }; | |
2225 } | |
2226 } | |
2227 case 281: | |
2228 ++cursor; | |
2229 yych = this._charAt(cursor); | |
2230 if (yych == '\n') { gotoCase = 282; continue; }; | |
2231 if (yych != '\r') { gotoCase = 279; continue; }; | |
2232 case 282: | |
2233 cursor = YYMARKER; | |
2234 if (yyaccept <= 0) { | |
2235 { gotoCase = 271; continue; }; | |
2236 } else { | |
2237 { gotoCase = 274; continue; }; | |
2238 } | |
2239 case 283: | |
2240 ++cursor; | |
2241 yych = this._charAt(cursor); | |
2242 case 284: | |
2243 if (yych <= '*') { | |
2244 if (yych <= '\f') { | |
2245 if (yych == '\n') { gotoCase = 282; continue; }; | |
2246 { gotoCase = 283; continue; }; | |
2247 } else { | |
2248 if (yych <= '\r') { gotoCase = 282; continue; }; | |
2249 if (yych <= ')') { gotoCase = 283; continue; }; | |
2250 { gotoCase = 282; continue; }; | |
2251 } | |
2252 } else { | |
2253 if (yych <= '[') { | |
2254 if (yych == '/') { gotoCase = 282; continue; }; | |
2255 { gotoCase = 283; continue; }; | |
2256 } else { | |
2257 if (yych <= '\\') { gotoCase = 289; continue; }; | |
2258 if (yych <= ']') { gotoCase = 287; continue; }; | |
2259 { gotoCase = 283; continue; }; | |
2260 } | |
2261 } | |
2262 case 285: | |
2263 ++cursor; | |
2264 yych = this._charAt(cursor); | |
2265 case 286: | |
2266 if (yych <= 'h') { | |
2267 if (yych == 'g') { gotoCase = 285; continue; }; | |
2268 { gotoCase = 276; continue; }; | |
2269 } else { | |
2270 if (yych <= 'i') { gotoCase = 285; continue; }; | |
2271 if (yych == 'm') { gotoCase = 285; continue; }; | |
2272 { gotoCase = 276; continue; }; | |
2273 } | |
2274 case 287: | |
2275 yyaccept = 0; | |
2276 YYMARKER = ++cursor; | |
2277 yych = this._charAt(cursor); | |
2278 if (yych <= '*') { | |
2279 if (yych <= '\f') { | |
2280 if (yych == '\n') { gotoCase = 271; continue; }; | |
2281 { gotoCase = 287; continue; }; | |
2282 } else { | |
2283 if (yych <= '\r') { gotoCase = 271; continue; }; | |
2284 if (yych <= ')') { gotoCase = 287; continue; }; | |
2285 { gotoCase = 279; continue; }; | |
2286 } | |
2287 } else { | |
2288 if (yych <= 'Z') { | |
2289 if (yych == '/') { gotoCase = 285; continue; }; | |
2290 { gotoCase = 287; continue; }; | |
2291 } else { | |
2292 if (yych <= '[') { gotoCase = 283; continue; }; | |
2293 if (yych <= '\\') { gotoCase = 290; continue; }; | |
2294 { gotoCase = 287; continue; }; | |
2295 } | |
2296 } | |
2297 case 289: | |
2298 ++cursor; | |
2299 yych = this._charAt(cursor); | |
2300 if (yych == '\n') { gotoCase = 282; continue; }; | |
2301 if (yych == '\r') { gotoCase = 282; continue; }; | |
2302 { gotoCase = 283; continue; }; | |
2303 case 290: | |
2304 ++cursor; | |
2305 yych = this._charAt(cursor); | |
2306 if (yych == '\n') { gotoCase = 282; continue; }; | |
2307 if (yych == '\r') { gotoCase = 282; continue; }; | |
2308 { gotoCase = 287; continue; }; | |
2309 /* *********************************** */ | |
2310 case this.case_SSTRING: | |
2311 yych = this._charAt(cursor); | |
2312 if (yych <= '\r') { | |
2313 if (yych == '\n') { gotoCase = 295; continue; }; | |
2314 if (yych <= '\f') { gotoCase = 294; continue; }; | |
2315 { gotoCase = 295; continue; }; | |
2316 } else { | |
2317 if (yych <= '\'') { | |
2318 if (yych <= '&') { gotoCase = 294; continue; }; | |
2319 { gotoCase = 297; continue; }; | |
2320 } else { | |
2321 if (yych == '\\') { gotoCase = 299; continue; }; | |
2322 { gotoCase = 294; continue; }; | |
2323 } | |
2324 } | |
2325 case 293: | |
2326 { this.tokenType = "javascript-string"; return cursor; } | |
2327 case 294: | |
2328 yyaccept = 0; | |
2329 yych = this._charAt(YYMARKER = ++cursor); | |
2330 { gotoCase = 301; continue; }; | |
2331 case 295: | |
2332 ++cursor; | |
2333 case 296: | |
2334 { this.tokenType = null; return cursor; } | |
2335 case 297: | |
2336 ++cursor; | |
2337 case 298: | |
2338 this.setLexCondition(this._lexConditions.NODIV); | |
2339 { this.tokenType = "javascript-string"; return cursor; } | |
2340 case 299: | |
2341 yyaccept = 1; | |
2342 yych = this._charAt(YYMARKER = ++cursor); | |
2343 if (yych <= 'e') { | |
2344 if (yych <= '\'') { | |
2345 if (yych == '"') { gotoCase = 300; continue; }; | |
2346 if (yych <= '&') { gotoCase = 296; continue; }; | |
2347 } else { | |
2348 if (yych <= '\\') { | |
2349 if (yych <= '[') { gotoCase = 296; continue; }; | |
2350 } else { | |
2351 if (yych != 'b') { gotoCase = 296; continue; }; | |
2352 } | |
2353 } | |
2354 } else { | |
2355 if (yych <= 'r') { | |
2356 if (yych <= 'm') { | |
2357 if (yych >= 'g') { gotoCase = 296; continue; }; | |
2358 } else { | |
2359 if (yych <= 'n') { gotoCase = 300; continue; }; | |
2360 if (yych <= 'q') { gotoCase = 296; continue; }; | |
2361 } | |
2362 } else { | |
2363 if (yych <= 't') { | |
2364 if (yych <= 's') { gotoCase = 296; continue; }; | |
2365 } else { | |
2366 if (yych <= 'u') { gotoCase = 302; continue; }; | |
2367 if (yych >= 'w') { gotoCase = 296; continue; }; | |
2368 } | |
2369 } | |
2370 } | |
2371 case 300: | |
2372 yyaccept = 0; | |
2373 YYMARKER = ++cursor; | |
2374 yych = this._charAt(cursor); | |
2375 case 301: | |
2376 if (yych <= '\r') { | |
2377 if (yych == '\n') { gotoCase = 293; continue; }; | |
2378 if (yych <= '\f') { gotoCase = 300; continue; }; | |
2379 { gotoCase = 293; continue; }; | |
2380 } else { | |
2381 if (yych <= '\'') { | |
2382 if (yych <= '&') { gotoCase = 300; continue; }; | |
2383 { gotoCase = 308; continue; }; | |
2384 } else { | |
2385 if (yych == '\\') { gotoCase = 307; continue; }; | |
2386 { gotoCase = 300; continue; }; | |
2387 } | |
2388 } | |
2389 case 302: | |
2390 ++cursor; | |
2391 yych = this._charAt(cursor); | |
2392 if (yych <= '@') { | |
2393 if (yych <= '/') { gotoCase = 303; continue; }; | |
2394 if (yych <= '9') { gotoCase = 304; continue; }; | |
2395 } else { | |
2396 if (yych <= 'F') { gotoCase = 304; continue; }; | |
2397 if (yych <= '`') { gotoCase = 303; continue; }; | |
2398 if (yych <= 'f') { gotoCase = 304; continue; }; | |
2399 } | |
2400 case 303: | |
2401 cursor = YYMARKER; | |
2402 if (yyaccept <= 0) { | |
2403 { gotoCase = 293; continue; }; | |
2404 } else { | |
2405 { gotoCase = 296; continue; }; | |
2406 } | |
2407 case 304: | |
2408 ++cursor; | |
2409 yych = this._charAt(cursor); | |
2410 if (yych <= '@') { | |
2411 if (yych <= '/') { gotoCase = 303; continue; }; | |
2412 if (yych >= ':') { gotoCase = 303; continue; }; | |
2413 } else { | |
2414 if (yych <= 'F') { gotoCase = 305; continue; }; | |
2415 if (yych <= '`') { gotoCase = 303; continue; }; | |
2416 if (yych >= 'g') { gotoCase = 303; continue; }; | |
2417 } | |
2418 case 305: | |
2419 ++cursor; | |
2420 yych = this._charAt(cursor); | |
2421 if (yych <= '@') { | |
2422 if (yych <= '/') { gotoCase = 303; continue; }; | |
2423 if (yych >= ':') { gotoCase = 303; continue; }; | |
2424 } else { | |
2425 if (yych <= 'F') { gotoCase = 306; continue; }; | |
2426 if (yych <= '`') { gotoCase = 303; continue; }; | |
2427 if (yych >= 'g') { gotoCase = 303; continue; }; | |
2428 } | |
2429 case 306: | |
2430 ++cursor; | |
2431 yych = this._charAt(cursor); | |
2432 if (yych <= '@') { | |
2433 if (yych <= '/') { gotoCase = 303; continue; }; | |
2434 if (yych <= '9') { gotoCase = 300; continue; }; | |
2435 { gotoCase = 303; continue; }; | |
2436 } else { | |
2437 if (yych <= 'F') { gotoCase = 300; continue; }; | |
2438 if (yych <= '`') { gotoCase = 303; continue; }; | |
2439 if (yych <= 'f') { gotoCase = 300; continue; }; | |
2440 { gotoCase = 303; continue; }; | |
2441 } | |
2442 case 307: | |
2443 ++cursor; | |
2444 yych = this._charAt(cursor); | |
2445 if (yych <= 'e') { | |
2446 if (yych <= '\'') { | |
2447 if (yych == '"') { gotoCase = 300; continue; }; | |
2448 if (yych <= '&') { gotoCase = 303; continue; }; | |
2449 { gotoCase = 300; continue; }; | |
2450 } else { | |
2451 if (yych <= '\\') { | |
2452 if (yych <= '[') { gotoCase = 303; continue; }; | |
2453 { gotoCase = 300; continue; }; | |
2454 } else { | |
2455 if (yych == 'b') { gotoCase = 300; continue; }; | |
2456 { gotoCase = 303; continue; }; | |
2457 } | |
2458 } | |
2459 } else { | |
2460 if (yych <= 'r') { | |
2461 if (yych <= 'm') { | |
2462 if (yych <= 'f') { gotoCase = 300; continue; }; | |
2463 { gotoCase = 303; continue; }; | |
2464 } else { | |
2465 if (yych <= 'n') { gotoCase = 300; continue; }; | |
2466 if (yych <= 'q') { gotoCase = 303; continue; }; | |
2467 { gotoCase = 300; continue; }; | |
2468 } | |
2469 } else { | |
2470 if (yych <= 't') { | |
2471 if (yych <= 's') { gotoCase = 303; continue; }; | |
2472 { gotoCase = 300; continue; }; | |
2473 } else { | |
2474 if (yych <= 'u') { gotoCase = 302; continue; }; | |
2475 if (yych <= 'v') { gotoCase = 300; continue; }; | |
2476 { gotoCase = 303; continue; }; | |
2477 } | |
2478 } | |
2479 } | |
2480 case 308: | |
2481 ++cursor; | |
2482 yych = this._charAt(cursor); | |
2483 { gotoCase = 298; continue; }; | |
2484 } | |
2485 | |
2486 } | |
2487 }, | |
2488 | |
2489 __proto__: WebInspector.SourceTokenizer.prototype | |
2490 } | |
OLD | NEW |