(quote)
| 73 | } |
| 74 | |
| 75 | function tokenString(quote) { |
| 76 | return function(stream, state) { |
| 77 | var escaped = false, next, end = false; |
| 78 | while ((next = stream.next()) != null) { |
| 79 | if (next == quote && !escaped) {end = true; break;} |
| 80 | escaped = !escaped && next == "\\"; |
| 81 | } |
| 82 | if (end || !(escaped || multiLineStrings)) |
| 83 | state.tokenize = null; |
| 84 | return "string"; |
| 85 | }; |
| 86 | } |
| 87 | |
| 88 | function tokenComment(stream, state) { |
| 89 | var maybeEnd = false, ch; |