mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
toml: deprecate input.auto_config() and toml.parse() (#13770)
This commit is contained in:
parent
3e41be1ff4
commit
156efec278
6 changed files with 50 additions and 22 deletions
|
@ -415,7 +415,7 @@ pub fn (c Checker) check_quoted(q ast.Quoted) ? {
|
|||
// \UXXXXXXXX - Unicode (U+XXXXXXXX)
|
||||
fn (c Checker) check_quoted_escapes(q ast.Quoted) ? {
|
||||
// Setup a scanner in stack memory for easier navigation.
|
||||
mut s := scanner.new_simple(q.text) ?
|
||||
mut s := scanner.new_simple_text(q.text) ?
|
||||
|
||||
// See https://toml.io/en/v1.0.0#string for more info on string types.
|
||||
is_basic := q.quote == `\"`
|
||||
|
@ -552,7 +552,7 @@ fn (c Checker) check_unicode_escape(esc_unicode string) ? {
|
|||
pub fn (c Checker) check_comment(comment ast.Comment) ? {
|
||||
lit := comment.text
|
||||
// Setup a scanner in stack memory for easier navigation.
|
||||
mut s := scanner.new_simple(lit) ?
|
||||
mut s := scanner.new_simple_text(lit) ?
|
||||
for {
|
||||
ch := s.next()
|
||||
if ch == scanner.end_of_text {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue