mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Make mbe compile with parser changes
This commit is contained in:
parent
6fa6efe90f
commit
9053bcc65c
3 changed files with 14 additions and 7 deletions
|
@ -95,6 +95,7 @@ pub fn token_tree_to_syntax_node(
|
|||
parser::Step::Token { kind, n_input_tokens: n_raw_tokens } => {
|
||||
tree_sink.token(kind, n_raw_tokens)
|
||||
}
|
||||
parser::Step::FloatSplit { .. } => tree_sink.token(SyntaxKind::FLOAT_NUMBER, 1),
|
||||
parser::Step::Enter { kind } => tree_sink.start_node(kind),
|
||||
parser::Step::Exit => tree_sink.finish_node(),
|
||||
parser::Step::Error { msg } => tree_sink.error(msg.to_string()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue