diff --git a/vlib/net/http/cookie_test.v b/vlib/net/http/cookie_test.v index 4100f9d81c..e3c0936f84 100644 --- a/vlib/net/http/cookie_test.v +++ b/vlib/net/http/cookie_test.v @@ -416,7 +416,7 @@ const ( value: ',' raw: 'special-8=","' }] - } + }, // TODO(bradfitz): users have reported seeing this in the // wild, but do browsers handle it? RFC 6265 just says "don't // do that" (section 3) and then never mentions header folding diff --git a/vlib/strconv/tables.v b/vlib/strconv/tables.v index 4f6d3ac001..1696747abd 100644 --- a/vlib/strconv/tables.v +++ b/vlib/strconv/tables.v @@ -24,7 +24,7 @@ const ( u64(1e14), u64(1e15), u64(1e16), - u64(1e17) + u64(1e17), // We only need to find the length of at most 17 digit numbers. ] diff --git a/vlib/v/fmt/tests/array_init_comment_ending_keep.vv b/vlib/v/fmt/tests/array_init_comment_ending_keep.vv index 7758d48761..d4f3dd1dd4 100644 --- a/vlib/v/fmt/tests/array_init_comment_ending_keep.vv +++ b/vlib/v/fmt/tests/array_init_comment_ending_keep.vv @@ -11,7 +11,7 @@ const ( value: ',' raw: 'special-8=","' }] - } + }, // (bradfitz): users have reported seeing this in the // wild, but do browsers handle it? RFC 6265 just says "don't // do that" (section 3) and then never mentions header folding diff --git a/vlib/v/scanner/scanner.v b/vlib/v/scanner/scanner.v index 872ec9a03a..f90649cedc 100644 --- a/vlib/v/scanner/scanner.v +++ b/vlib/v/scanner/scanner.v @@ -1053,7 +1053,7 @@ fn (mut s Scanner) text_scan() token.Token { // that are on a separate line comment = '\x01' + comment } - return s.new_token(.comment, comment, comment.len + 2) + return s.new_token(.comment, comment, s.line_comment.len + 2) } // Skip the comment (return the next token) continue