aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/event_parser/parser.rs')
-rw-r--r--src/parser/event_parser/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/event_parser/parser.rs b/src/parser/event_parser/parser.rs
index 2507af6bf..a15d0b633 100644
--- a/src/parser/event_parser/parser.rs
+++ b/src/parser/event_parser/parser.rs
@@ -164,12 +164,12 @@ impl<'t> Parser<'t> {
164 kind 164 kind
165 } 165 }
166 166
167 pub(crate) fn raw_lookahead(&self, n: usize) -> SyntaxKind { 167 pub(crate) fn nth(&self, n: usize) -> SyntaxKind {
168 self.tokens.get(self.pos + n).map(|t| t.kind).unwrap_or(EOF) 168 self.tokens.get(self.pos + n).map(|t| t.kind).unwrap_or(EOF)
169 } 169 }
170 170
171 pub(crate) fn current(&self) -> SyntaxKind { 171 pub(crate) fn current(&self) -> SyntaxKind {
172 self.raw_lookahead(0) 172 self.nth(0)
173 } 173 }
174 174
175 fn event(&mut self, event: Event) { 175 fn event(&mut self, event: Event) {