Commit b369a9da authored by Igor Dejanovic's avatar Igor Dejanovic

Improved description of Match nodes in dot exports

parent bf4a8f0c
......@@ -447,6 +447,9 @@ class Match(ParsingExpression):
@property
def name(self):
if self.root:
return "%s=%s(%s)" % (self.rule, self.__class__.__name__, self.to_match)
else:
return "%s(%s)" % (self.__class__.__name__, self.to_match)
def parse(self, parser):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment