mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
toml: support checking and decoding quoted keys (#12552)
This commit is contained in:
parent
0779b5fd8e
commit
1be6aed16e
3 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue