mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
scanner: fix typo (#8345)
This commit is contained in:
parent
17921f4171
commit
cb885d30b4
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ fn (mut s Scanner) new_token(tok_kind token.Kind, lit string, len int) token.Tok
|
||||||
}
|
}
|
||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
fn (mut s Scanner) new_mulitline_token(tok_kind token.Kind, lit string, len int, start_line int) token.Token {
|
fn (mut s Scanner) new_multiline_token(tok_kind token.Kind, lit string, len int, start_line int) token.Token {
|
||||||
cidx := s.tidx
|
cidx := s.tidx
|
||||||
s.tidx++
|
s.tidx++
|
||||||
return token.Token{
|
return token.Token{
|
||||||
|
@ -983,7 +983,7 @@ fn (mut s Scanner) text_scan() token.Token {
|
||||||
if !comment.contains('\n') {
|
if !comment.contains('\n') {
|
||||||
comment = '\x01' + comment
|
comment = '\x01' + comment
|
||||||
}
|
}
|
||||||
return s.new_mulitline_token(.comment, comment, comment.len + 4,
|
return s.new_multiline_token(.comment, comment, comment.len + 4,
|
||||||
start_line)
|
start_line)
|
||||||
}
|
}
|
||||||
// Skip if not in fmt mode
|
// Skip if not in fmt mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue