parent
81e8dc0046
commit
b1f8529bbb
8
zscan.go
8
zscan.go
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
// Only used when debugging the parser itself.
|
||||
var _DEBUG = true
|
||||
var _DEBUG = false
|
||||
|
||||
// Tokinize a RFC 1035 zone file. The tokenizer will normalize it:
|
||||
// * Add ownernames if they are left blank;
|
||||
|
@ -303,9 +303,6 @@ func zlexer(r io.Reader, c chan lex) {
|
|||
if err == io.EOF {
|
||||
stop = true
|
||||
}
|
||||
if err == nil && n < MaxMsgSize {
|
||||
stop = true
|
||||
}
|
||||
l.column = 0
|
||||
l.line = 1 // Yeah, start at one
|
||||
for {
|
||||
|
@ -462,6 +459,7 @@ func zlexer(r io.Reader, c chan lex) {
|
|||
brace++
|
||||
case ')':
|
||||
if commt {
|
||||
p++
|
||||
break
|
||||
}
|
||||
if escape {
|
||||
|
@ -512,7 +510,7 @@ func zlexer(r io.Reader, c chan lex) {
|
|||
n = n1 + n2/// JAJAJA
|
||||
// println("****Wat heb ik", string(buf[:q]), "Q", "n:", n)
|
||||
// println("****Wat heb ik", string(buf[:q+10]), "Q")
|
||||
println("wat is n nu", n)
|
||||
// println("wat is n nu", n)
|
||||
}
|
||||
}
|
||||
// It this need anymore???
|
||||
|
|
Loading…
Reference in New Issue