Skip to content

Commit f51359f

Browse files
committed
Add blanket implementations for unsupported match attributes
1 parent 7656084 commit f51359f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/translator/match_pattern.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ impl From<&HashSet<Attribute>> for AST {
6767
chars.extend(&digits);
6868
}
6969
Attribute::Letter => chars.extend(&letters),
70-
Attribute::Uppercase => todo!(),
70+
Attribute::Uppercase => (), // TODO: implement
7171
Attribute::Lowercase => chars.extend(&letters),
72-
Attribute::Punctuation => todo!(),
73-
Attribute::Sign => todo!(),
74-
Attribute::Seqdelimiter => todo!(),
75-
Attribute::Seqbeforechars => todo!(),
76-
Attribute::Seqafterchars => todo!(),
77-
Attribute::Boundary => todo!(),
78-
Attribute::UserDefined(_) => todo!(),
72+
Attribute::Punctuation => (), // TODO: implement
73+
Attribute::Sign => (), // TODO: implement
74+
Attribute::Seqdelimiter => (), // TODO: implement
75+
Attribute::Seqbeforechars => (), // TODO: implement
76+
Attribute::Seqafterchars => (), // TODO: implement
77+
Attribute::Boundary => (), // TODO: implement
78+
Attribute::UserDefined(_) => (), // TODO: implement
7979
}
8080
}
8181
AST::Set(chars)

0 commit comments

Comments
 (0)