Skip to content

Commit

Permalink
Escaped braces should be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Tang committed Sep 23, 2024
1 parent 0560647 commit b143526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def make_rules(cls):
for fname, ftype in sfields:
syntax = syntax.replace('{%s.%s}' % (fname, ftype), ftype)
# Replace back braces
syntax = syntax.replace('{LBRACE}', '{')
syntax = syntax.replace('{RBRACE}', '}')
syntax = syntax.replace('{LBRACE}', '"{"')
syntax = syntax.replace('{RBRACE}', '"}"')
lark_exprs.append(syntax)

cls._fields_ = list(fields)
Expand Down

0 comments on commit b143526

Please sign in to comment.