mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tokenizer: Remove redundant token types
This commit is contained in:
parent
bac008296a
commit
3bdcc83c4e
4 changed files with 17 additions and 38 deletions
|
@ -313,7 +313,7 @@ class Statement(ParseNode):
|
|||
return True
|
||||
|
||||
token = ctx.peek_token()
|
||||
if token.type != TokenType.STMT_END:
|
||||
if str(token) != ";":
|
||||
ctx.errors.append(CompileError("Expected `;`", token.start, token.end))
|
||||
else:
|
||||
ctx.next_token()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue