Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
9fbe90b1
Commit
9fbe90b1
authored
Jul 10, 2018
by
Eckhart Arnold
Browse files
- bug fix: missing __deepcopy__() in parse.PreprocessorToken
parent
a9dd76b8
Changes
1
Show whitespace changes
Inline
Side-by-side
DHParser/parse.py
View file @
9fbe90b1
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment