(stream, state)
| 52 | } |
| 53 | |
| 54 | function tokenSGMLComment(stream, state) { |
| 55 | var dashes = 0, ch; |
| 56 | while ((ch = stream.next()) != null) { |
| 57 | if (dashes >= 2 && ch == ">") { |
| 58 | state.tokenize = tokenBase; |
| 59 | break; |
| 60 | } |
| 61 | dashes = (ch == "-") ? dashes + 1 : 0; |
| 62 | } |
| 63 | return ret("comment", "comment"); |
| 64 | } |
| 65 | |
| 66 | function tokenString(quote) { |
| 67 | return function(stream, state) { |