(stream, state)
| 172 | } |
| 173 | |
| 174 | function tokenComment(stream, state) { |
| 175 | var maybeEnd = false, ch; |
| 176 | while (ch = stream.next()) { |
| 177 | if (ch == "/" && maybeEnd) { |
| 178 | state.tokenize.pop(); |
| 179 | break; |
| 180 | } |
| 181 | maybeEnd = (ch == "*"); |
| 182 | } |
| 183 | return "comment"; |
| 184 | } |
| 185 | |
| 186 | function expectExpression(last) { |
| 187 | return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) || |