toml: support checking and decoding quoted keys (#12552)

This commit is contained in:
Larpon 2021-11-23 15:59:07 +01:00 committed by GitHub
parent 0779b5fd8e
commit 1be6aed16e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 7 deletions

View file

@ -366,7 +366,7 @@ fn (c Checker) check_time(t ast.Time) ? {
}
// check_quoted returns an error if `q` is not a valid quoted TOML string.
fn (c Checker) check_quoted(q ast.Quoted) ? {
pub fn (c Checker) check_quoted(q ast.Quoted) ? {
lit := q.text
quote := q.quote.ascii_str()
triple_quote := quote + quote + quote