(quote)
| 82 | } |
| 83 | |
| 84 | function tokenString(quote) { |
| 85 | return function(stream, state) { |
| 86 | var escaped = false, next, end = false; |
| 87 | while ((next = stream.next()) != null) { |
| 88 | if (next == quote && !escaped) {end = true; break;} |
| 89 | escaped = !escaped && next == "\\"; |
| 90 | } |
| 91 | if (end || !(escaped || quote == "`")) |
| 92 | state.tokenize = tokenBase; |
| 93 | return "string"; |
| 94 | }; |
| 95 | } |
| 96 | |
| 97 | function tokenComment(stream, state) { |
| 98 | var maybeEnd = false, ch; |