scanner: fix typo (#8345)
parent
17921f4171
commit
cb885d30b4
|
@ -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…
Reference in New Issue