Commit 9fbe90b1 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- bug fix: missing __deepcopy__() in parse.PreprocessorToken

parent a9dd76b8
......@@ -861,6 +861,12 @@ class PreprocessorToken(Parser):
super().__init__()
self.name = token
def __deepcopy__(self, memo):
duplicate = self.__class__(self.name)
duplicate.name = self.name
# duplicate.ptype = self.ptype
return duplicate
def __call__(self, text: StringView) -> Tuple[Optional[Node], StringView]:
if text[0:1] == BEGIN_TOKEN:
end = text.find(END_TOKEN, 1)
......
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