| 50178 | } while (ch); |
| 50179 | }, |
| 50180 | blockComment = function blockComment() { |
| 50181 | |
| 50182 | // Skip a block comment, assuming this is one. The current character should be |
| 50183 | // the * character in the /* pair that begins this block comment. |
| 50184 | // To finish the block comment, we look for an ending */ pair of characters, |
| 50185 | // but we also watch for the end of text before the comment is terminated. |
| 50186 | |
| 50187 | if (ch !== '*') { |
| 50188 | error("Not a block comment"); |
| 50189 | } |
| 50190 | |
| 50191 | do { |
| 50192 | next(); |
| 50193 | while (ch === '*') { |
| 50194 | next('*'); |
| 50195 | if (ch === '/') { |
| 50196 | next('/'); |
| 50197 | return; |
| 50198 | } |
| 50199 | } |
| 50200 | } while (ch); |
| 50201 | |
| 50202 | error("Unterminated block comment"); |
| 50203 | }, |
| 50204 | comment = function comment() { |
| 50205 | |
| 50206 | // Skip a comment, whether inline or block-level, assuming this is one. |