diff --git a/lark/parse_tree_builder.py b/lark/parse_tree_builder.py index 888cc736..a6003a92 100644 --- a/lark/parse_tree_builder.py +++ b/lark/parse_tree_builder.py @@ -73,6 +73,8 @@ def _pp_get_meta(self, children): return c.meta elif isinstance(c, Token): return c + elif hasattr(c, '__lark_meta__'): + return c.__lark_meta__() def make_propagate_positions(option): if callable(option):