File tree 1 file changed +4
-4
lines changed 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:
994
994
def expect_token (self , kind : TokenKind ) -> Token :
995
995
"""Expect the next token to be of the given kind.
996
996
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.
999
999
"""
1000
1000
token = self ._lexer .token
1001
1001
if token .kind == kind :
@@ -1011,8 +1011,8 @@ def expect_token(self, kind: TokenKind) -> Token:
1011
1011
def expect_optional_token (self , kind : TokenKind ) -> Optional [Token ]:
1012
1012
"""Expect the next token optionally to be of the given kind.
1013
1013
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.
1016
1016
"""
1017
1017
token = self ._lexer .token
1018
1018
if token .kind == kind :
You can’t perform that action at this time.
0 commit comments