Skip to content

Commit

Permalink
Support OpenOrCreateBox
Browse files Browse the repository at this point in the history
  • Loading branch information
fergalwalsh committed Oct 29, 2024
1 parent 19b2584 commit 2aa2d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tealish/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ class BoxDeclaration(LineStatement):
# box<Item> item1 = Box("a")
pattern = (
r"box<(?P<struct_name>[A-Z][a-zA-Z0-9_]*)> (?P<name>[a-z][a-zA-Z0-9_]*)"
r" = (?P<method>Open|Create)?Box\((?P<key>.*)\)$"
r" = (?P<method>OpenOrCreate|Open|Create)?Box\((?P<key>.*)\)$"
)
# Name to struct type
struct_name: str
Expand Down

0 comments on commit 2aa2d51

Please sign in to comment.