15 lines
205 B
Go
15 lines
205 B
Go
|
package crushmap
|
||
|
|
||
|
func commentLineState(l *lex) stateFn {
|
||
|
loop:
|
||
|
for {
|
||
|
if r := l.lexPeek(); r == '\n' {
|
||
|
l.lexNext()
|
||
|
break loop
|
||
|
}
|
||
|
l.lexNext()
|
||
|
}
|
||
|
l.lexEmitTrim(itemComment)
|
||
|
return l.lexPop()
|
||
|
}
|