Skip to content

Commit 5961d72

Browse files
committed
Bugfix in propagate positions (issue #1304)
1 parent e4df024 commit 5961d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lark/parse_tree_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __call__(self, children):
6262

6363
res_meta.container_end_line = getattr(last_meta, 'container_end_line', last_meta.end_line)
6464
res_meta.container_end_column = getattr(last_meta, 'container_end_column', last_meta.end_column)
65-
res_meta.container_end_pos = getattr(first_meta, 'container_end_pos', last_meta.end_pos)
65+
res_meta.container_end_pos = getattr(last_meta, 'container_end_pos', last_meta.end_pos)
6666

6767
return res
6868

0 commit comments

Comments
 (0)