(stream, state)
| 107 | } |
| 108 | |
| 109 | function tokenSGMLComment(stream, state) { |
| 110 | var dashes = 0, ch; |
| 111 | while ((ch = stream.next()) != null) { |
| 112 | if (dashes >= 2 && ch == ">") { |
| 113 | state.tokenize = tokenBase; |
| 114 | break; |
| 115 | } |
| 116 | dashes = (ch == "-") ? dashes + 1 : 0; |
| 117 | } |
| 118 | return ret("comment", "comment"); |
| 119 | } |
| 120 | |
| 121 | function tokenString(quote) { |
| 122 | return function(stream, state) { |