diff options
Diffstat (limited to 'src/parser/parser.rs')
-rw-r--r-- | src/parser/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/parser.rs b/src/parser/parser.rs index 7e1b22ee5..53a116fb7 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use super::Event; | 1 | use super::Event; |
2 | use super::input::{InputPosition, ParserInput}; | 2 | use super::input::{InputPosition, ParserInput}; |
3 | use SyntaxKind::{self, EOF, TOMBSTONE, IDENT}; | 3 | use SyntaxKind::{self, EOF, TOMBSTONE}; |
4 | 4 | ||
5 | pub(crate) struct Marker { | 5 | pub(crate) struct Marker { |
6 | pos: u32, | 6 | pos: u32, |
@@ -161,8 +161,8 @@ impl<'t> Parser<'t> { | |||
161 | self.inp.kind(self.pos + n) | 161 | self.inp.kind(self.pos + n) |
162 | } | 162 | } |
163 | 163 | ||
164 | pub(crate) fn at_kw(&self, n: u32, t: &str) -> bool { | 164 | pub(crate) fn at_kw(&self, t: &str) -> bool { |
165 | self.nth(n) == IDENT && self.inp.text(self.pos + n) == t | 165 | self.inp.text(self.pos) == t |
166 | } | 166 | } |
167 | 167 | ||
168 | pub(crate) fn current(&self) -> SyntaxKind { | 168 | pub(crate) fn current(&self) -> SyntaxKind { |