We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1701949 commit 2cbeb17Copy full SHA for 2cbeb17
src/translator/match_pattern.rs
@@ -18,9 +18,7 @@ impl AST {
18
Pattern::Attributes(hash_set) => AST::from_attributes(hash_set, ctx),
19
Pattern::Group(vec) => AST::NotImplemented,
20
Pattern::Negate(pattern) => AST::NotImplemented,
21
- Pattern::Optional(pattern) => {
22
- AST::Optional(Box::new(AST::from_pattern(pattern, ctx)))
23
- }
+ Pattern::Optional(pattern) => AST::Optional(Box::new(AST::from_pattern(pattern, ctx))),
24
Pattern::ZeroOrMore(pattern) => {
25
AST::ZeroOrMore(Box::new(AST::from_pattern(pattern, ctx)))
26
}
0 commit comments