(l *Lexer)
| 188 | } |
| 189 | |
| 190 | func slash(l *Lexer) stateFn { |
| 191 | if l.accept("/") { |
| 192 | return singleLineComment |
| 193 | } |
| 194 | if l.accept("*") { |
| 195 | return multiLineComment |
| 196 | } |
| 197 | l.emit(Operator) |
| 198 | return root |
| 199 | } |
| 200 | |
| 201 | func singleLineComment(l *Lexer) stateFn { |
| 202 | for { |