(quote)
| 90 | } |
| 91 | } |
| 92 | function tokenString(quote) { |
| 93 | return function(stream, state) { |
| 94 | var escaped = false, next, end = false; |
| 95 | while ((next = stream.next()) != null) { |
| 96 | if (next == quote && !escaped) { |
| 97 | end = true; |
| 98 | break; |
| 99 | } |
| 100 | escaped = !escaped && next == "\\"; |
| 101 | } |
| 102 | if (end) state.tokenize = tokenBase; |
| 103 | return "string"; |
| 104 | }; |
| 105 | } |
| 106 | function tokenComment(stream, state) { |
| 107 | var maybeEnd = false, ch; |
| 108 | while (ch = stream.next()) { |