File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -994,8 +994,8 @@ def peek(self, kind: TokenKind) -> bool:
994994 def expect_token (self , kind : TokenKind ) -> Token :
995995 """Expect the next token to be of the given kind.
996996
997- If the next token is of the given kind, return that token after advancing
998- the lexer. Otherwise, do not change the parser state and throw an error.
997+ If the next token is of the given kind, return that token after advancing the
998+ lexer. Otherwise, do not change the parser state and throw an error.
999999 """
10001000 token = self ._lexer .token
10011001 if token .kind == kind :
@@ -1011,8 +1011,8 @@ def expect_token(self, kind: TokenKind) -> Token:
10111011 def expect_optional_token (self , kind : TokenKind ) -> Optional [Token ]:
10121012 """Expect the next token optionally to be of the given kind.
10131013
1014- If the next token is of the given kind, return that token after advancing
1015- the lexer. Otherwise, do not change the parser state and return None.
1014+ If the next token is of the given kind, return that token after advancing the
1015+ lexer. Otherwise, do not change the parser state and return None.
10161016 """
10171017 token = self ._lexer .token
10181018 if token .kind == kind :
You can’t perform that action at this time.
0 commit comments