(force_regexp)
| 521 | }; |
| 522 | |
| 523 | function next_token(force_regexp) { |
| 524 | if (force_regexp) |
| 525 | return read_regexp(); |
| 526 | skip_whitespace(); |
| 527 | start_token(); |
| 528 | var ch = peek(); |
| 529 | if (!ch) return token("eof"); |
| 530 | if (is_digit(ch)) return read_num(); |
| 531 | if (ch == '"' || ch == "'") return read_string(); |
| 532 | if (HOP(PUNC_CHARS, ch)) return token("punc", next()); |
| 533 | if (ch == ".") return handle_dot(); |
| 534 | if (ch == "/") return handle_slash(); |
| 535 | if (HOP(OPERATOR_CHARS, ch)) return read_operator(); |
| 536 | if (is_identifier_char(ch)) return read_word(); |
| 537 | parse_error("Unexpected character '" + ch + "'"); |
| 538 | }; |
| 539 | |
| 540 | next_token.context = function(nc) { |
| 541 | if (nc) S = nc; |
no test coverage detected
searching dependent graphs…