aboutsummaryrefslogtreecommitdiff
path: root/src/parser/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parser.rs')
-rw-r--r--src/parser/parser.rs6
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 @@
1use super::Event; 1use super::Event;
2use super::input::{InputPosition, ParserInput}; 2use super::input::{InputPosition, ParserInput};
3use SyntaxKind::{self, EOF, TOMBSTONE, IDENT}; 3use SyntaxKind::{self, EOF, TOMBSTONE};
4 4
5pub(crate) struct Marker { 5pub(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 {