Skip to content

Commit cf39a71

Browse files
committed
Format.
1 parent efa91b2 commit cf39a71

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

regex-syntax/src/ast/parse.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -1196,10 +1196,17 @@ impl<'s, P: Borrow<Parser>> ParserI<'s, P> {
11961196
}
11971197
let inner_span = self.span();
11981198
let mut has_p = false;
1199-
if self.bump_if("?<") || {has_p = true; self.bump_if("?P<")} {
1199+
if self.bump_if("?<") || {
1200+
has_p = true;
1201+
self.bump_if("?P<")
1202+
} {
12001203
let capture_index = self.next_capture_index(open_span)?;
12011204
let cap = self.parse_capture_name(capture_index)?;
1202-
let kind = if has_p { ast::GroupKind::CapturePName } else { ast::GroupKind::CaptureName } ;
1205+
let kind = if has_p {
1206+
ast::GroupKind::CapturePName
1207+
} else {
1208+
ast::GroupKind::CaptureName
1209+
};
12031210
Ok(Either::Right(ast::Group {
12041211
span: open_span,
12051212
kind: kind(cap),

0 commit comments

Comments
 (0)