Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/parsing.rs')
| -rw-r--r-- | crates/syntax/src/parsing.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/syntax/src/parsing.rs b/crates/syntax/src/parsing.rs index d750476f63..35683c9eed 100644 --- a/crates/syntax/src/parsing.rs +++ b/crates/syntax/src/parsing.rs @@ -13,7 +13,8 @@ pub(crate) fn parse_text(text: &str) -> (GreenNode, Vec<SyntaxError>) { let _p = tracing::span!(tracing::Level::INFO, "parse_text").entered(); let lexed = parser::LexedStr::new(text); let parser_input = lexed.to_input(); - let parser_output = parser::TopEntryPoint::SourceFile.parse(&parser_input); + let parser_output = + parser::TopEntryPoint::SourceFile.parse(&parser_input, parser::Edition::Edition2021); let (node, errors, _eof) = build_tree(lexed, parser_output); (node, errors) } |