Skip to content

Commit

Permalink
fixing the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Nov 25, 2024
1 parent 86be7ff commit c251ee3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions mathics_scanner/tokeniser.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,6 @@ def _skip_blank(self):
if self.pos >= len(self.code):
if comment:
try:
# Since we are inside a comment,
# we can just do
# ```
# self.prescanner.incomplete()
# self.code = self.prescanner.input_line
# ```
# avoiding the call to the method
# `Prescanner.replace_escape_sequences()`
# which have issues with escape characters...
self.incomplete()
except ValueError:
# `incomplete` tries to parse substrings like `\|AAAAA`
Expand All @@ -493,6 +484,8 @@ def _skip_blank(self):
# from the `input_line` attribute of
# prescanner:
self.code = self.prescanner.input_line
# TODO: handle the corner case where the rest of the line
# include escaped sequences, out of the comment.
else:
break
if comment:
Expand Down

0 comments on commit c251ee3

Please sign in to comment.