Disallow implements even with spaces around it

This commit is contained in:
Joshua Warner 2024-12-22 09:49:52 -05:00
parent 787fec6b3f
commit 9499dcec4b
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
4 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
use crate::ast::{Collection, Implements, Pattern, PatternAs, Spaceable};
use crate::ast::{Collection, ExtractSpaces, Implements, Pattern, PatternAs, Spaceable};
use crate::blankspace::{space0_e, spaces, spaces_before};
use crate::ident::{lowercase_ident, parse_ident, Accessor, Ident};
use crate::keyword;
@ -150,7 +150,7 @@ fn loc_tag_pattern_arg<'a>(
if stop_on_has_kw
&& matches!(
value,
value.extract_spaces().item,
Pattern::Identifier {
ident: crate::keyword::IMPLEMENTS,
..