mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: minor optimization in text_scan()
(#7172)
This commit is contained in:
parent
14887304d8
commit
f377710c0b
@ -532,8 +532,9 @@ fn (mut s Scanner) text_scan() token.Token {
|
||||
// }
|
||||
if s.is_started {
|
||||
s.pos++
|
||||
} else {
|
||||
s.is_started = true
|
||||
}
|
||||
s.is_started = true
|
||||
if s.pos >= s.text.len {
|
||||
return s.end_of_file()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user