Start work on a SyntaxMap data structure

This commit is contained in:
Max Brunsfeld
2022-08-21 11:37:10 -07:00
parent 6e67448420
commit f6a817a0f3
7 changed files with 476 additions and 4 deletions
+5
View File
@@ -128,6 +128,11 @@ pub(crate) fn language(
.with_outline_query(query.as_ref())
.expect("failed to load outline query");
}
if let Some(query) = load_query(name, "/injections") {
language = language
.with_injection_query(query.as_ref())
.expect("failed to load injection query");
}
if let Some(lsp_adapter) = lsp_adapter {
language = language.with_lsp_adapter(lsp_adapter)
}
@@ -0,0 +1,3 @@
(macro_invocation
(token_tree) @content)
(#set! "language" "rust"))