summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2022-01-20 01:08:06 -0600
committerptmcg <ptmcg@austin.rr.com>2022-01-20 01:08:06 -0600
commit938f59d183ca790e41a1d995aa3d3e995df2fb19 (patch)
treedb8cf8460c43fb7f138fed68c0edc1b6fa1227b0
parent236cb8bc15ca8132ab26c8630623f447dfd6175a (diff)
downloadpyparsing-git-pyparsing_3.0.7.tar.gz
Fixed IndentedBlock internal parse action to use correct value of curpyparsing_3.0.7
-rw-r--r--pyparsing/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py
index b89d326..0e10b67 100644
--- a/pyparsing/core.py
+++ b/pyparsing/core.py
@@ -3826,7 +3826,7 @@ class And(ParseExpression):
seen.add(id(cur))
if isinstance(cur, IndentedBlock):
prev.add_parse_action(
- lambda s, l, t: setattr(cur, "parent_anchor", col(l, s))
+ lambda s, l, t, cur_=cur: setattr(cur_, "parent_anchor", col(l, s))
)
break
subs = cur.recurse()