Skip to content

Commit 1533f77

Browse files
committed
Fix #848 (indentation of now tac).
For the record, in `now exists` the exists was incorrectly detected as a "quantif exists".
1 parent ae7af9d commit 1533f77

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

ci/test-indent/indent-tac-boxed.v

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,28 @@ Module curlybracesatend.
153153
simpl.
154154
rewrite Nat.add_1_r.
155155
reflexivity.
156+
intros r. {
157+
now exists
158+
{|
159+
fld1:=r.(fld2);
160+
fld2:=r.(fld1);
161+
fld3:=false
162+
|}.
163+
split.
164+
{auto. }
165+
{auto. }
166+
}
167+
intros r. {
168+
try exists
169+
{|
170+
fld1:=r.(fld2);
171+
fld2:=r.(fld1);
172+
fld3:=false
173+
|}.
174+
split.
175+
{auto. }
176+
{auto. }
177+
}
156178
}
157179
}
158180
idtac.

ci/test-indent/indent-tac.v

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,28 @@ Module X.
417417
{auto. }
418418
{auto. }
419419
}
420+
intros r. {
421+
now exists
422+
{|
423+
fld1:=r.(fld2);
424+
fld2:=r.(fld1);
425+
fld3:=false
426+
|}.
427+
split.
428+
{auto. }
429+
{auto. }
430+
}
431+
intros r. {
432+
split.
433+
- now exists x.
434+
split.
435+
{auto. }
436+
{auto. }
437+
- now exists x.
438+
split.
439+
{auto. }
440+
{auto. }
441+
}
420442
intros r. {
421443
exists
422444
{|

coq/coq-smie.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ The point should be at the beginning of the command name."
835835
(let ((prevtok (coq-smie-backward-token)))
836836
;; => may be wrong here but rare (have "=> ltac"?)
837837
(not (or (coq-is-cmdend-token prevtok)
838-
(member prevtok '("; tactic" "[" "]" "|" "=>")))))))
838+
(member prevtok '("; tactic" "[" "]" "|" "=>" "Com start")))))))
839839
"quantif exists")
840840

841841
((equal tok "") "forall")

0 commit comments

Comments
 (0)