(quote)
| 202 | } |
| 203 | |
| 204 | function tokenString(quote) { |
| 205 | return function(stream, state) { |
| 206 | var escaped = false, next, end = false; |
| 207 | while ((next = stream.next()) != null) { |
| 208 | if (next == quote && !escaped) {end = true; break;} |
| 209 | escaped = !escaped && next == "\\"; |
| 210 | } |
| 211 | if (end || !(escaped || multiLineStrings)) |
| 212 | state.tokenize = tokenBase; |
| 213 | return "string"; |
| 214 | }; |
| 215 | } |
| 216 | |
| 217 | function tokenComment(stream, state) { |
| 218 | var maybeEnd = false, ch; |