OCaml Forge
SCM

Detail: [#1376] Regression: bad indentation with "sig"

Bugs: Browse | Download .csv | Monitor

[#1376] Regression: bad indentation with "sig"

Date:
2014-02-25 13:05
Priority:
3
State:
Open
Submitted by:
Julien Signoles (signoles)
Assigned to:
Nobody (None)
Hardware:
None
Resolution:
None
Severity:
major
Version:
None
Component:
None
Operating System:
None
Product:
None
 
URL:
Summary:
Regression: bad indentation with "sig"

Detailed description
Using tuareg 2.07 or 2.0.8, I get the following automatic indentation (my indentation number is the default one, that is 2):

=====
module S = struct
type t (* 2 spaces before 'type' --> ok *)
end

module type S = sig
type t (* 4 spaces before 'type' instead of 2 --> KO *)
end

(* the following ones are incorrect OCaml code, but they show that the issue is probably with 'sig' and not with 'type' *)
module S = sig
let v (* 4 spaces --> KO *)
end

module type S = struct
val v (* 2 spaces --> ok *)
end
=====

The issue comes from 'sig' because if
I just upgrade from tuareg 2.0.4 and this was ok at this time.

BTW the tuareg version number inside tuareg.el is still 2.0.6.

Followup

Message
Date: 2014-02-25 13:08
Sender: Julien Signoles

Unfortunatly, this BTS eats my important spaces in the code, but there are still my comments describing the issue fortunatly ;-).

Attached Files:

Changes:

No Changes Have Been Made to This Item