aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--src/parser/event_parser/grammar.rs3
-rw-r--r--src/parser/event_parser/mod.rs2
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 6aa106405..bf22c2afd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
1/target/ 1/target/
2**/*.rs.bk 2**/*.rs.bk
3Cargo.lock 3Cargo.lock
4.vscode/*
diff --git a/src/parser/event_parser/grammar.rs b/src/parser/event_parser/grammar.rs
index dd09061aa..c3496cccd 100644
--- a/src/parser/event_parser/grammar.rs
+++ b/src/parser/event_parser/grammar.rs
@@ -3,7 +3,8 @@ use super::parser::Parser;
3 3
4use syntax_kinds::*; 4use syntax_kinds::*;
5 5
6pub fn parse_file(p: &mut Parser) { 6pub fn file(p: &mut Parser) {
7 p.start(FILE); 7 p.start(FILE);
8 //TODO: parse_shebang
8 p.finish(); 9 p.finish();
9} \ No newline at end of file 10} \ No newline at end of file
diff --git a/src/parser/event_parser/mod.rs b/src/parser/event_parser/mod.rs
index 14107720a..bdfd23974 100644
--- a/src/parser/event_parser/mod.rs
+++ b/src/parser/event_parser/mod.rs
@@ -15,6 +15,6 @@ pub(crate) enum Event {
15 15
16pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { 16pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> {
17 let mut parser = parser::Parser::new(text, raw_tokens); 17 let mut parser = parser::Parser::new(text, raw_tokens);
18 grammar::parse_file(&mut parser); 18 grammar::file(&mut parser);
19 parser.into_events() 19 parser.into_events()
20} \ No newline at end of file 20} \ No newline at end of file