Skip to content

Commit

Permalink
#150-Modify-Correct Parser code
Browse files Browse the repository at this point in the history
Fixed a bug on num_line assignment of error IC node in module `fe_parser.ty`.
  • Loading branch information
schmouk committed Feb 8, 2019
1 parent de89aee commit 554b905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrontEnd/Parser/fe_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,7 @@ def _with_statement(self) -> bool:
def _append_error(self, err_data=None):
self._errors_count += 1
err_node = ICTokenNode_UNEXPECTED( data=err_data or self._current.tk_data )
err_node.set_num_line( self._current )
err_node.num_line = self._current.num_line
self._append_syntaxic_node( err_node )
#-------------------------------------------------------------------------
def _append_syntaxic_node(self) -> bool:
Expand Down

0 comments on commit 554b905

Please sign in to comment.