(stream, state)
| 158 | } |
| 159 | |
| 160 | function tokenSGMLComment(stream, state) { |
| 161 | var dashes = 0, ch; |
| 162 | while ((ch = stream.next()) != null) { |
| 163 | if (dashes >= 2 && ch == ">") { |
| 164 | state.tokenize = tokenBase; |
| 165 | break; |
| 166 | } |
| 167 | dashes = (ch == "-") ? dashes + 1 : 0; |
| 168 | } |
| 169 | return ret("comment", "comment"); |
| 170 | } |
| 171 | |
| 172 | function tokenString(quote) { |
| 173 | return function(stream, state) { |