From f797c81155e9b7371b24801efac3fcbd236fc9ab Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 7 Jan 2018 12:13:01 +0300 Subject: Smart eof for blocks --- src/parser/event_parser/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/parser/event_parser/mod.rs') 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 { Token { kind: SyntaxKind, n_raw_tokens: u8, - } + }, + Error { + message: String, + }, } pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec { -- cgit v1.2.3