func lexSinglelineComment(t *Tokeniser) stateFunc {
	for r, w := t.currentRune(); !isEndOfLine(r) && r != eof; r, w = t.currentRune() {
		t.advance(w)
	}
	if t.IgnoreComment {
		t.ignore()
	} else {
		t.emit(COMMENT)
	}
	return lexCode
}
// lexSinglelineComment scans a single line comment ('//') and emits a comment token
lexSinglelineComment scans a single line comment ('//') and emits a comment token
// lexSinglelineComment scans a single line comment ( ' // ' ) and emits a comment token
func lexSinglelineComment(t *Tokeniser) stateFunc {
	for r, w := t.currentRune(); !isEndOfLine(r) && r != eof; r, w = t.currentRune() {
		t.advance(w)
	}
	if t.IgnoreComment {
		t.ignore()
	} else {
		t.emit(COMMENT)
	}
	return lexCode
}
func lexSinglelineComment ( t * Tokeniser ) stateFunc { for r , w := t . currentRune ( ) ; ! isEndOfLine ( r ) && r != eof ; r , w = t . currentRune ( ) { t . advance ( w ) } if t . IgnoreComment { t . ignore ( ) } else { t . emit ( COMMENT ) } return lexCode }
lexSinglelineComment scans a single line comment ('//') and emits a comment token
lexSinglelineComment scans a single line comment ( ' // ' ) and emits a comment token