Skip to content

Commit a6e171e

Browse files
committed
Update tok
1 parent 712e34f commit a6e171e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cxxheaderparser/parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,13 @@ def _parse_requires(
833833
while True:
834834
if tok.type == "(":
835835
rawtoks.extend(self._consume_balanced_tokens(tok))
836+
tok = self.lex.token()
836837
elif tok.type == "requires":
837838
rawtoks.append(tok)
838839
for tt in ("(", "{"):
839840
tok = self._next_token_must_be(tt)
840841
rawtoks.extend(self._consume_balanced_tokens(tok))
842+
tok = self.lex.token()
841843
else:
842844
tok = self._parse_requires_segment(tok, rawtoks)
843845

0 commit comments

Comments
 (0)