()
| 399 | }; |
| 400 | |
| 401 | function read_string() { |
| 402 | return with_eof_error("Unterminated string constant", function(){ |
| 403 | var quote = next(), ret = ""; |
| 404 | for (;;) { |
| 405 | var ch = next(true); |
| 406 | if (ch == "\\") ch = read_escaped_char(); |
| 407 | else if (ch == quote) break; |
| 408 | ret += ch; |
| 409 | } |
| 410 | return token("string", ret); |
| 411 | }); |
| 412 | }; |
| 413 | |
| 414 | function read_line_comment() { |
| 415 | next(); |
no test coverage detected
searching dependent graphs…