toml: add value decoding (#12521)

This commit is contained in:
Larpon 2021-11-20 18:48:44 +01:00 committed by GitHub
parent 4b9e8e243c
commit f1dd0e3355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 206 additions and 64 deletions

View file

@ -400,7 +400,7 @@ fn (c Checker) check_quoted_escapes(q ast.Quoted) ? {
is_basic := q.quote == `\"`
for {
ch := s.next()
if ch == -1 {
if ch == scanner.end_of_text {
break
}
ch_byte := byte(ch)