From db2c656da853b23eabec43b14d7229029675321b Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Sun, 12 Apr 2020 13:30:26 +0800 Subject: [PATCH] scanner: `!in` token --- vlib/v/scanner/scanner.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/scanner/scanner.v b/vlib/v/scanner/scanner.v index fe297191ad..e47a0ca808 100644 --- a/vlib/v/scanner/scanner.v +++ b/vlib/v/scanner/scanner.v @@ -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) }