Skip to content

Commit

Permalink
Fix bug in lexer related to comments containig . character
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian13579 committed Feb 26, 2021
1 parent 31bc0d5 commit 5a9ac89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/lexing/lexing_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def t_aux_rcomment(t):


def t_aux_pass(t):
r'[^.]'
r'[^\*\)]'
pass

# Rule so we can track line numbers
Expand Down
2 changes: 0 additions & 2 deletions src/parsing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ def __init__(self, token, line, col) -> None:
def __str__(self) -> str:
return f'({self.line}, {self.col}) - \
SyntacticError: ERROR at or near "{self.token}"'


0 comments on commit 5a9ac89

Please sign in to comment.