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:
parent
f634f7b01f
commit
126fbe8e33
@ -416,7 +416,7 @@ const (
|
|||||||
value: ','
|
value: ','
|
||||||
raw: 'special-8=","'
|
raw: 'special-8=","'
|
||||||
}]
|
}]
|
||||||
}
|
},
|
||||||
// TODO(bradfitz): users have reported seeing this in the
|
// TODO(bradfitz): users have reported seeing this in the
|
||||||
// wild, but do browsers handle it? RFC 6265 just says "don't
|
// wild, but do browsers handle it? RFC 6265 just says "don't
|
||||||
// do that" (section 3) and then never mentions header folding
|
// do that" (section 3) and then never mentions header folding
|
||||||
|
@ -24,7 +24,7 @@ const (
|
|||||||
u64(1e14),
|
u64(1e14),
|
||||||
u64(1e15),
|
u64(1e15),
|
||||||
u64(1e16),
|
u64(1e16),
|
||||||
u64(1e17)
|
u64(1e17),
|
||||||
// We only need to find the length of at most 17 digit numbers.
|
// We only need to find the length of at most 17 digit numbers.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ const (
|
|||||||
value: ','
|
value: ','
|
||||||
raw: 'special-8=","'
|
raw: 'special-8=","'
|
||||||
}]
|
}]
|
||||||
}
|
},
|
||||||
// (bradfitz): users have reported seeing this in the
|
// (bradfitz): users have reported seeing this in the
|
||||||
// wild, but do browsers handle it? RFC 6265 just says "don't
|
// wild, but do browsers handle it? RFC 6265 just says "don't
|
||||||
// do that" (section 3) and then never mentions header folding
|
// do that" (section 3) and then never mentions header folding
|
||||||
|
@ -1053,7 +1053,7 @@ fn (mut s Scanner) text_scan() token.Token {
|
|||||||
// that are on a separate line
|
// that are on a separate line
|
||||||
comment = '\x01' + comment
|
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)
|
// Skip the comment (return the next token)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user