Fix crash with doubly-nested parens in patterns

This commit is contained in:
Joshua Warner 2024-12-24 14:08:52 -05:00
parent 941c6c4fe3
commit 8f0566a55f
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 82 additions and 1 deletions

View file

@ -150,7 +150,7 @@ fn loc_tag_pattern_arg<'a>(
if stop_on_has_kw
&& matches!(
value.extract_spaces().item,
value.without_spaces(),
Pattern::Identifier {
ident: crate::keyword::IMPLEMENTS,
..