commenting works.... that was easy
This commit is contained in:
parent
17e070553b
commit
81cebfd8dc
8
parse.go
8
parse.go
@ -84,7 +84,13 @@ var UintChars = CharSet{
|
|||||||
//Looks at (but doesn't consume) the first byte in the buffer
|
//Looks at (but doesn't consume) the first byte in the buffer
|
||||||
func FirstByte(rbuf *bufio.Reader) (byte,error) {
|
func FirstByte(rbuf *bufio.Reader) (byte,error) {
|
||||||
b,err := rbuf.Peek(1)
|
b,err := rbuf.Peek(1)
|
||||||
if err != nil { return 0,err }
|
if err != nil {
|
||||||
|
return 0,err
|
||||||
|
} else if b[0] == ';' {
|
||||||
|
rbuf.ReadLine()
|
||||||
|
return FirstByte(rbuf)
|
||||||
|
}
|
||||||
|
|
||||||
return b[0],err
|
return b[0],err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user