mirror of
https://github.com/helix-editor/tree-house.git
synced 2025-10-05 16:02:44 +02:00
highlighter: Add a test case for Rust nested vec macros
This commit is contained in:
5
fixtures/highlighter/nested_vec.rs
Normal file
5
fixtures/highlighter/nested_vec.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
vec![vec![]]
|
||||
// ┡━━┛╿┡━━┛┗━┹─ punctuation.bracket
|
||||
// │ │╰─ function.macro
|
||||
// │ ╰─ punctuation.bracket
|
||||
// ╰─ function.macro
|
4
fixtures/injections/nested_vec.rs
Normal file
4
fixtures/injections/nested_vec.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
vec![vec![]]
|
||||
// ┡━━━┛┡┛╰─ rust
|
||||
// │ ╰─ rust rust
|
||||
// ╰─ rust
|
@@ -446,6 +446,13 @@ fn injection_precedence() {
|
||||
injection_fixture(&loader, "injections/overlapping_injection.rs");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rust_nested_vec() {
|
||||
let loader = TestLanguageLoader::new();
|
||||
highlight_fixture(&loader, "highlighter/nested_vec.rs");
|
||||
injection_fixture(&loader, "injections/nested_vec.rs");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn edit_remove_and_add_injection_layer() {
|
||||
let loader = TestLanguageLoader::new();
|
||||
|
Reference in New Issue
Block a user