Skip to content

Commit 712e34f

Browse files
committed
Fix requires expression bug
1 parent 0bdfa29 commit 712e34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cxxheaderparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def _parse_requires(
836836
elif tok.type == "requires":
837837
rawtoks.append(tok)
838838
for tt in ("(", "{"):
839-
tok = self._next_token_must_be("{")
839+
tok = self._next_token_must_be(tt)
840840
rawtoks.extend(self._consume_balanced_tokens(tok))
841841
else:
842842
tok = self._parse_requires_segment(tok, rawtoks)

0 commit comments

Comments
 (0)