Skip to content

Commit

Permalink
Docs: Better documentation for the propagate_positions attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Jun 29, 2023
1 parent f79bbac commit 3a97a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lark/lark.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class LarkOptions(Serialize):
transformer
Applies the transformer to every parse tree (equivalent to applying it after the parse, but faster)
propagate_positions
Propagates (line, column, end_line, end_column) attributes into all tree branches.
Propagates positional attributes into the 'meta' attribute of all tree branches.
Sets attributes: (line, column, end_line, end_column, start_pos, end_pos,
container_line, container_column, container_end_line, container_end_column)
Accepts ``False``, ``True``, or a callable, which will filter which nodes to ignore when propagating.
maybe_placeholders
When ``True``, the ``[]`` operator returns ``None`` when not matched.
Expand Down

0 comments on commit 3a97a93

Please sign in to comment.