aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-07 09:13:01 +0000
committerAleksey Kladov <[email protected]>2018-01-07 09:13:01 +0000
commitf797c81155e9b7371b24801efac3fcbd236fc9ab (patch)
tree27a2fd9e640962489e07d18b6225d3d30096bb39 /src/parser/event_parser/mod.rs
parent8671a892c5169fe608d0467270a2af7797df8c36 (diff)
Smart eof for blocks
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> {