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