Upgrade tree sitter and all grammars (#17734)
Fixes https://github.com/zed-industries/zed/issues/5291 Release Notes: - Fixed a bug where the 'toggle comments' command didn't use the right comment syntax in JSX and TSX elements. --------- Co-authored-by: Conrad <conrad@zed.dev> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
This commit is contained in:
parent
b54b3d6246
commit
bc5ed1334f
41 changed files with 366 additions and 387 deletions
|
@ -743,7 +743,7 @@ mod tests {
|
|||
#[gpui::test]
|
||||
async fn test_rust_label_for_completion() {
|
||||
let adapter = Arc::new(RustLspAdapter);
|
||||
let language = language("rust", tree_sitter_rust::language());
|
||||
let language = language("rust", tree_sitter_rust::LANGUAGE.into());
|
||||
let grammar = language.grammar().unwrap();
|
||||
let theme = SyntaxTheme::new_test([
|
||||
("type", Hsla::default()),
|
||||
|
@ -868,7 +868,7 @@ mod tests {
|
|||
#[gpui::test]
|
||||
async fn test_rust_label_for_symbol() {
|
||||
let adapter = Arc::new(RustLspAdapter);
|
||||
let language = language("rust", tree_sitter_rust::language());
|
||||
let language = language("rust", tree_sitter_rust::LANGUAGE.into());
|
||||
let grammar = language.grammar().unwrap();
|
||||
let theme = SyntaxTheme::new_test([
|
||||
("type", Hsla::default()),
|
||||
|
@ -920,7 +920,7 @@ mod tests {
|
|||
});
|
||||
});
|
||||
|
||||
let language = crate::language("rust", tree_sitter_rust::language());
|
||||
let language = crate::language("rust", tree_sitter_rust::LANGUAGE.into());
|
||||
|
||||
cx.new_model(|cx| {
|
||||
let mut buffer = Buffer::local("", cx).with_language(language, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue