aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r--crates/ra_parser/src/event.rs3
-rw-r--r--crates/ra_parser/src/grammar.rs2
-rw-r--r--crates/ra_parser/src/parser.rs6
3 files changed, 6 insertions, 5 deletions
diff --git a/crates/ra_parser/src/event.rs b/crates/ra_parser/src/event.rs
index 51beb0866..a7d06a815 100644
--- a/crates/ra_parser/src/event.rs
+++ b/crates/ra_parser/src/event.rs
@@ -10,8 +10,9 @@
10use std::mem; 10use std::mem;
11 11
12use crate::{ 12use crate::{
13 ParseError, TreeSink, 13 ParseError,
14 SyntaxKind::{self, *}, 14 SyntaxKind::{self, *},
15 TreeSink,
15}; 16};
16 17
17/// `Parser` produces a flat list of `Event`s. 18/// `Parser` produces a flat list of `Event`s.
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs
index 5997636d6..658034097 100644
--- a/crates/ra_parser/src/grammar.rs
+++ b/crates/ra_parser/src/grammar.rs
@@ -37,9 +37,9 @@ mod type_params;
37mod types; 37mod types;
38 38
39use crate::{ 39use crate::{
40 parser::{CompletedMarker, Marker, Parser},
40 SyntaxKind::{self, *}, 41 SyntaxKind::{self, *},
41 TokenSet, 42 TokenSet,
42 parser::{CompletedMarker, Marker, Parser},
43}; 43};
44 44
45pub(crate) fn root(p: &mut Parser) { 45pub(crate) fn root(p: &mut Parser) {
diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs
index 8a2e253ac..159ed50df 100644
--- a/crates/ra_parser/src/parser.rs
+++ b/crates/ra_parser/src/parser.rs
@@ -3,10 +3,10 @@ use std::cell::Cell;
3use drop_bomb::DropBomb; 3use drop_bomb::DropBomb;
4 4
5use crate::{ 5use crate::{
6 SyntaxKind::{self, ERROR, EOF, TOMBSTONE},
7 TokenSource, ParseError, TokenSet,
8 event::Event, 6 event::Event,
9 T 7 ParseError,
8 SyntaxKind::{self, EOF, ERROR, TOMBSTONE},
9 TokenSet, TokenSource, T,
10}; 10};
11 11
12/// `Parser` struct provides the low-level API for 12/// `Parser` struct provides the low-level API for