hcl/scanner: more comments
This commit is contained in:
parent
a6c7514d8d
commit
66b2aabe46
@ -529,6 +529,8 @@ func (s *Scanner) scanDigits(ch rune, base, n int) rune {
|
|||||||
for n > 0 && digitVal(ch) < base {
|
for n > 0 && digitVal(ch) < base {
|
||||||
ch = s.next()
|
ch = s.next()
|
||||||
if ch == eof {
|
if ch == eof {
|
||||||
|
// If we see an EOF, we halt any more scanning of digits
|
||||||
|
// immediately.
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user