aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-08 13:44:00 +0100
committerAleksey Kladov <[email protected]>2018-10-08 13:44:00 +0100
commit86a7ac2d31e97c42a9da8d8fd539b5a0de0fa795 (patch)
tree17d16374b28e3221cfb793340b32aabe2f4fd1dd /crates/ra_syntax/src/lib.rs
parent3c12d38a32f5c87e87d9dbced774453216086bab (diff)
Simplify event processing
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r--crates/ra_syntax/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs
index 738664afd..703469629 100644
--- a/crates/ra_syntax/src/lib.rs
+++ b/crates/ra_syntax/src/lib.rs
@@ -74,7 +74,8 @@ impl File {
74 } 74 }
75 pub fn parse(text: &str) -> File { 75 pub fn parse(text: &str) -> File {
76 let tokens = tokenize(&text); 76 let tokens = tokenize(&text);
77 let (green, errors) = parser_impl::parse_with::<yellow::GreenBuilder>( 77 let (green, errors) = parser_impl::parse_with(
78 yellow::GreenBuilder::new(),
78 text, &tokens, grammar::root, 79 text, &tokens, grammar::root,
79 ); 80 );
80 File::new(green, errors) 81 File::new(green, errors)