#466 closed defect (fixed)
parentheses in comments should not affect indentation level of non-comment code
Reported by: | coquser | Owned by: | David Aspinall |
---|---|---|---|
Priority: | minor | Milestone: | PG-Emacs-4.3 |
Component: | 2:pg-emacs | Keywords: | |
Cc: |
Description
The second Require Import Eqdep.
should not be indented so far. This is what happens when I highlight the four lines and press the TAB
key.
(** printing ¬( %\ensuremath{\neg}(% #¬(# *) Require Import Eqdep. Require Import Eqdep.
Here's a workaround:
(** printing ¬( %\ensuremath{\neg}(% #¬(# *) (* ))) *) Require Import Eqdep. Require Import Eqdep.
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
For the record: I fixed this bug in another better way by setting parse-sexp-ignore-commit to t. The previous workaround introduced another bug.
Note: See
TracTickets for help on using
tickets.
Fixed in cvs.
Nasty bug due to smie fallback to smie-backward-sexp when finding an unknown token, namely the token "", which happens when reaching the bof. smie-backward-sexp do behave badly in the case of ill-formed comments. I had to workaround this.
Should it be considered a bug of smie?
Cheers P.