diff options
author | ptmcg <ptmcg@austin.rr.com> | 2022-01-20 01:08:06 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2022-01-20 01:08:06 -0600 |
commit | 938f59d183ca790e41a1d995aa3d3e995df2fb19 (patch) | |
tree | db8cf8460c43fb7f138fed68c0edc1b6fa1227b0 /pyparsing/core.py | |
parent | 236cb8bc15ca8132ab26c8630623f447dfd6175a (diff) | |
download | pyparsing-git-pyparsing_3.0.7.tar.gz |
Fixed IndentedBlock internal parse action to use correct value of curpyparsing_3.0.7
Diffstat (limited to 'pyparsing/core.py')
-rw-r--r-- | pyparsing/core.py | 2 |
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() |