(ret state)
| 161 | } |
| 162 | |
| 163 | func blockCommentStateBuilder(ret state) state { |
| 164 | return func(l *lexer) state { |
| 165 | l.pos += 2 |
| 166 | l.start = l.pos |
| 167 | |
| 168 | for { |
| 169 | if l.hasPrefix("*/") { |
| 170 | l.emit(TComment) |
| 171 | l.pos += 2 |
| 172 | break |
| 173 | } |
| 174 | l.next() |
| 175 | } |
| 176 | |
| 177 | return ret |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | func untilSemiStateBuilder(emit lexItemType, ret state) state { |
| 182 | return func(l *lexer) state { |
no test coverage detected