diff options
Diffstat (limited to 'src/lexer/mod.rs')
-rw-r--r-- | src/lexer/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index 7c4259763..bc5344b5f 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs | |||
@@ -187,6 +187,9 @@ fn scan_ident(c: char, ptr: &mut Ptr) -> SyntaxKind { | |||
187 | return if c == '_' { UNDERSCORE } else { IDENT }; | 187 | return if c == '_' { UNDERSCORE } else { IDENT }; |
188 | } | 188 | } |
189 | ptr.bump_while(is_ident_continue); | 189 | ptr.bump_while(is_ident_continue); |
190 | if let Some(kind) = ident_to_keyword(ptr.current_token_text()) { | ||
191 | return kind; | ||
192 | } | ||
190 | IDENT | 193 | IDENT |
191 | } | 194 | } |
192 | 195 | ||