Skip to content

Commit

Permalink
Fix proof using parse error
Browse files Browse the repository at this point in the history
See ProofGeneral/PG#715 for a description of the same issue in Proof General
  • Loading branch information
HazardousPeach committed Nov 8, 2023
1 parent 0f0a82e commit d9becac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/add_proof_using.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def add_proof_using_with_running_instance(coq: coq_serapy.CoqAgent, commands: It
cur_proof_commands[0].strip())
if proof_cmd_match:
proof_cmd_suffix = proof_cmd_match.group(1)
if len(suggested_deps.strip().split()) > 1 and proof_cmd_suffix.strip() != "":
suggested_deps = "(" + suggested_deps + ")"
cur_proof_commands[0] = "Proof using " + suggested_deps + proof_cmd_suffix + ".\n"
else:
cur_proof_commands.insert(0, "Proof using " + suggested_deps + ".\n")
Expand Down

0 comments on commit d9becac

Please sign in to comment.