mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: ignore CRLF just like LF in line comments, support VTEST_HIDE_OK=1 in tests.
This commit is contained in:
@@ -345,7 +345,7 @@ fn (mut s Scanner) ignore_line() ?string {
|
||||
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'skipping "${byte(c).ascii_str()} / $c"')
|
||||
if s.at_crlf() {
|
||||
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'letting `\\r\\n` slip through')
|
||||
return s.text[start..s.pos + 1]
|
||||
break
|
||||
}
|
||||
}
|
||||
return s.text[start..s.pos]
|
||||
|
Reference in New Issue
Block a user