Skip to content

Commit

Permalink
Ensure maybe_placeholders is set in lark parsing (#29730)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Oct 12, 2023
1 parent f900f46 commit c08b8f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/py_matter_idl/matter_idl/matter_idl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ def __init__(self, skip_meta: bool):
# For this reason, every attempt should be made to make the grammar context free
self.parser = Lark.open(
'matter_grammar.lark', rel_to=__file__, start='idl', parser='lalr', propagate_positions=True,
maybe_placeholders=True,
# separate callbacks to ignore from regular parsing (no tokens)
# while still getting notified about them
lexer_callbacks={
Expand Down

0 comments on commit c08b8f8

Please sign in to comment.