diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/parser/event_parser/grammar.rs | 3 | ||||
-rw-r--r-- | src/parser/event_parser/mod.rs | 2 |
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 |
3 | Cargo.lock | 3 | Cargo.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 | ||
4 | use syntax_kinds::*; | 4 | use syntax_kinds::*; |
5 | 5 | ||
6 | pub fn parse_file(p: &mut Parser) { | 6 | pub 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 | ||
16 | pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { | 16 | pub(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 |