(stream, state)
| 162 | } |
| 163 | |
| 164 | function tokenQuasi(stream, state) { |
| 165 | var escaped = false, next; |
| 166 | while ((next = stream.next()) != null) { |
| 167 | if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) { |
| 168 | state.tokenize = tokenBase; |
| 169 | break; |
| 170 | } |
| 171 | escaped = !escaped && next == "\\"; |
| 172 | } |
| 173 | return ret("quasi", "string-2", stream.current()); |
| 174 | } |
| 175 | |
| 176 | var brackets = "([{}])"; |
| 177 | // This is a crude lookahead trick to try and notice that we're |