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

scanner: !in token

This commit is contained in:
Ned Palacios 2020-04-12 13:30:26 +08:00 committed by GitHub
parent c3e78b8c8f
commit db2c656da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,7 +720,7 @@ pub fn (s mut Scanner) scan() token.Token {
s.pos++
return s.new_token(.ne, '', 2)
}
else if nextc == `i` && s.text[s.pos+2] == `n` && !s.text[s.pos+3].is_letter() {
else if nextc == `i` && s.text[s.pos+2] == `n` && s.text[s.pos+3].is_space() {
s.pos += 2
return s.new_token(.not_in, '', 3)
}