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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user