hcl/scanner: more comments

This commit is contained in:
Mitchell Hashimoto 2016-06-21 13:39:12 -07:00
parent a6c7514d8d
commit 66b2aabe46
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

View File

@ -529,6 +529,8 @@ func (s *Scanner) scanDigits(ch rune, base, n int) rune {
for n > 0 && digitVal(ch) < base {
ch = s.next()
if ch == eof {
// If we see an EOF, we halt any more scanning of digits
// immediately.
break
}