mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Rename
This commit is contained in:
parent
4cda325530
commit
0af33a2587
3 changed files with 4 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/target/
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
.vscode/*
|
||||
|
|
|
@ -3,7 +3,8 @@ use super::parser::Parser;
|
|||
|
||||
use syntax_kinds::*;
|
||||
|
||||
pub fn parse_file(p: &mut Parser) {
|
||||
pub fn file(p: &mut Parser) {
|
||||
p.start(FILE);
|
||||
//TODO: parse_shebang
|
||||
p.finish();
|
||||
}
|
|
@ -15,6 +15,6 @@ pub(crate) enum Event {
|
|||
|
||||
pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> {
|
||||
let mut parser = parser::Parser::new(text, raw_tokens);
|
||||
grammar::parse_file(&mut parser);
|
||||
grammar::file(&mut parser);
|
||||
parser.into_events()
|
||||
}
|
Loading…
Reference in a new issue