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

string: update check if a char is a space

This commit is contained in:
Alexey
2020-02-20 22:14:54 +03:00
committed by GitHub
parent e4de1e1e89
commit c85ccad0a6
3 changed files with 7 additions and 7 deletions

View File

@ -258,7 +258,7 @@ fn (s mut Scanner) ident_number() string {
fn (s mut Scanner) skip_whitespace() {
// if s.is_vh { println('vh') return }
for s.pos < s.text.len && s.text[s.pos].is_white() {
for s.pos < s.text.len && s.text[s.pos].is_space() {
if is_nl(s.text[s.pos]) && s.is_vh {
return
}