code: def match(self, node, results=None):
          
          if not isinstance(node, Leaf):
              return False
          return BasePattern.match(self, node, results)
docs: Override match() to insist on a leaf node.