fix(frontends/lean/parse_rewrite_tactic): take namespaces into account when parsing constant to unfold
This commit is contained in:
parent
1b73764ad3
commit
5443609845
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static expr parse_rule(parser & p) {
|
||||||
expr parse_rewrite_element(parser & p) {
|
expr parse_rewrite_element(parser & p) {
|
||||||
if (p.curr_is_token(get_up_tk()) || p.curr_is_token(get_caret_tk())) {
|
if (p.curr_is_token(get_up_tk()) || p.curr_is_token(get_caret_tk())) {
|
||||||
p.next();
|
p.next();
|
||||||
name n = p.check_id_next("invalid unfold rewrite step, identifier expected");
|
name n = p.check_constant_next("invalid unfold rewrite step, constant expected");
|
||||||
location loc = parse_tactic_location(p);
|
location loc = parse_tactic_location(p);
|
||||||
return mk_rewrite_unfold(n, loc);
|
return mk_rewrite_unfold(n, loc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue