(stream, end)
| 42 | } |
| 43 | |
| 44 | function nextUntilUnescaped(stream, end) { |
| 45 | var escaped = false, next; |
| 46 | while ((next = stream.next()) != null) { |
| 47 | if (next == end && !escaped) |
| 48 | return false; |
| 49 | escaped = !escaped && next == "\\"; |
| 50 | } |
| 51 | return escaped; |
| 52 | } |
| 53 | |
| 54 | // Used as scratch variables to communicate multiple values without |
| 55 | // consing up tons of objects. |
no outgoing calls
no test coverage detected