aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/event_parser/mod.rs')
-rw-r--r--src/parser/event_parser/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parser/event_parser/mod.rs b/src/parser/event_parser/mod.rs
index 3c3654b6b..87b317c84 100644
--- a/src/parser/event_parser/mod.rs
+++ b/src/parser/event_parser/mod.rs
@@ -10,7 +10,10 @@ pub(crate) enum Event {
10 Token { 10 Token {
11 kind: SyntaxKind, 11 kind: SyntaxKind,
12 n_raw_tokens: u8, 12 n_raw_tokens: u8,
13 } 13 },
14 Error {
15 message: String,
16 },
14} 17}
15 18
16pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { 19pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> {