aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/grammar/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/event_parser/grammar/mod.rs')
-rw-r--r--src/parser/event_parser/grammar/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/event_parser/grammar/mod.rs b/src/parser/event_parser/grammar/mod.rs
index d3b63c4c1..32e4db698 100644
--- a/src/parser/event_parser/grammar/mod.rs
+++ b/src/parser/event_parser/grammar/mod.rs
@@ -1,4 +1,4 @@
1use super::parser::Parser; 1use super::parser::{Parser, TokenSet};
2use {SyntaxKind}; 2use {SyntaxKind};
3use tree::EOF; 3use tree::EOF;
4use syntax_kinds::*; 4use syntax_kinds::*;
@@ -80,8 +80,8 @@ fn comma_list<F: Fn(&mut Parser) -> bool>(p: &mut Parser, end: SyntaxKind, f: F)
80 80
81 81
82impl<'p> Parser<'p> { 82impl<'p> Parser<'p> {
83 fn at(&self, kind: SyntaxKind) -> bool { 83 fn at<L: Lookahead>(&self, l: L) -> bool {
84 self.current() == kind 84 l.is_ahead(self)
85 } 85 }
86 86
87 pub(crate) fn expect(&mut self, kind: SyntaxKind) -> bool { 87 pub(crate) fn expect(&mut self, kind: SyntaxKind) -> bool {