aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/mod.rs')
-rw-r--r--src/parser/grammar/mod.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/parser/grammar/mod.rs b/src/parser/grammar/mod.rs
index 23216452f..085e62d56 100644
--- a/src/parser/grammar/mod.rs
+++ b/src/parser/grammar/mod.rs
@@ -21,11 +21,6 @@
21//! After adding a new inline-test, run `cargo collect-tests` to extract 21//! After adding a new inline-test, run `cargo collect-tests` to extract
22//! it as a standalone text-fixture into `tests/data/parser/inline`, and 22//! it as a standalone text-fixture into `tests/data/parser/inline`, and
23//! run `cargo test` once to create the "gold" value. 23//! run `cargo test` once to create the "gold" value.
24use parser::parser::Parser;
25use parser::token_set::TokenSet;
26use SyntaxKind;
27use syntax_kinds::*;
28
29mod items; 24mod items;
30mod attributes; 25mod attributes;
31mod expressions; 26mod expressions;
@@ -34,6 +29,14 @@ mod patterns;
34mod paths; 29mod paths;
35mod type_params; 30mod type_params;
36 31
32use {
33 SyntaxKind::{self, *},
34 parser::{
35 parser::Parser,
36 token_set::TokenSet
37 }
38};
39
37pub(crate) fn file(p: &mut Parser) { 40pub(crate) fn file(p: &mut Parser) {
38 let file = p.start(); 41 let file = p.start();
39 p.eat(SHEBANG); 42 p.eat(SHEBANG);