1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: fix indent error for line comment generated by vdoc (#18422)

This commit is contained in:
yuyi 2023-06-13 13:50:02 +08:00 committed by GitHub
parent f634f7b01f
commit 126fbe8e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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.
]

View File

@ -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

View File

@ -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