(stream, state)
| 121 | } |
| 122 | |
| 123 | function tokenComment(stream, state) { |
| 124 | var maybeEnd = false, ch; |
| 125 | while (ch = stream.next()) { |
| 126 | if (ch == "/" && maybeEnd) { |
| 127 | state.tokenize.pop(); |
| 128 | break; |
| 129 | } |
| 130 | maybeEnd = (ch == "*"); |
| 131 | } |
| 132 | return "comment"; |
| 133 | } |
| 134 | |
| 135 | function expectExpression(last) { |
| 136 | return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) || |