Commit d004ab8c authored by eckhart's avatar eckhart

- small refactorings

parent ff14fddc
......@@ -1217,6 +1217,14 @@ class Whitespace(RegExp):
is a RegExp-parser for whitespace."""
assert WHITESPACE_PTYPE == ":Whitespace"
# def _parse(self, text: StringView) -> Tuple[Optional[Node], StringView]:
# match = text.match(self.regexp)
# if match:
# capture = match.group(0)
# end = text.index(match.end())
# return Node(self.tag_name, capture, True), text[end:]
# return None, text
def __repr__(self):
return '~'
......
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