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