Correctly set the span of the proc_macro crate's Group delimiters

Previously only the open delimiter's span was set, and this caused... weird problems.
This commit is contained in:
Chayim Refael Friedman 2025-05-21 18:31:14 +03:00
parent 96a253112c
commit bf8d03c1b5
4 changed files with 15 additions and 5 deletions

View file

@ -144,7 +144,7 @@ fn test_fn_like_macro_clone_ident_subtree() {
SUBTREE $$ 42:2@0..100#ROOT2024 42:2@0..100#ROOT2024
IDENT ident 42:2@0..5#ROOT2024
PUNCH , [alone] 42:2@5..6#ROOT2024
SUBTREE [] 42:2@7..8#ROOT2024 42:2@7..8#ROOT2024"#]],
SUBTREE [] 42:2@7..9#ROOT2024 42:2@7..9#ROOT2024"#]],
);
}