Introduce a new Grammar struct and allow it to be optional

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-11-29 17:38:59 +01:00
parent b9edde7b26
commit 2c17ae9aa6
11 changed files with 91 additions and 67 deletions

View file

@ -1616,7 +1616,7 @@ mod tests {
language_server: Some(language_server_config),
..Default::default()
},
tree_sitter_rust::language(),
Some(tree_sitter_rust::language()),
)));
let lang_registry = Arc::new(lang_registry);