Commit 3318d807 authored by Eckhart Arnold's avatar Eckhart Arnold

bug fix: incorrect line col number on required/mandatory

parent c5266e7d
......@@ -751,7 +751,8 @@ class RootNode(Node):
for node in self.err_nodes_keep: # redundant: consider removing Error.Error._node_keep
for error in node.errors:
assert error._pos < 0 or node.pos <= error._pos <= node.pos + len(node)
error._pos = node.pos
if error._pos < 0:
error._pos = node.pos
self.err_nodes_keep = []
errors = self.all_errors
# for error in self.all_errors:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment