()
| 1445 | var js_types = "|void|var|"; |
| 1446 | |
| 1447 | function parse_identifier() { |
| 1448 | can_regex = 1; |
| 1449 | |
| 1450 | while (i < n && is_word(str[i])) |
| 1451 | i++; |
| 1452 | |
| 1453 | var w = '|' + str.substring(start, i) + '|'; |
| 1454 | |
| 1455 | if (js_keywords.indexOf(w) >= 0) { |
| 1456 | style = 'keyword'; |
| 1457 | if (js_no_regex.indexOf(w) >= 0) |
| 1458 | can_regex = 0; |
| 1459 | return; |
| 1460 | } |
| 1461 | |
| 1462 | var i1 = i; |
| 1463 | while (i1 < n && str[i1] == ' ') |
| 1464 | i1++; |
| 1465 | |
| 1466 | if (i1 < n && str[i1] == '(') { |
| 1467 | style = 'function'; |
| 1468 | return; |
| 1469 | } |
| 1470 | |
| 1471 | if (js_types.indexOf(w) >= 0) { |
| 1472 | style = 'type'; |
| 1473 | return; |
| 1474 | } |
| 1475 | |
| 1476 | style = 'identifier'; |
| 1477 | can_regex = 0; |
| 1478 | } |
| 1479 | |
| 1480 | function set_style(from, to) { |
| 1481 | while (r.length < from) |
no test coverage detected