Commit b369a9da authored by Igor Dejanovic's avatar Igor Dejanovic

Improved description of Match nodes in dot exports

parent bf4a8f0c
......@@ -447,7 +447,10 @@ class Match(ParsingExpression):
@property
def name(self):
return "%s(%s)" % (self.__class__.__name__, self.to_match)
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):
self._parse_intro(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