OCaml Forge
SCM

Detail: [#1221] SMIE: Incorrect indentation of 'type...and' (r455, HEAD)

Bugs: Browse | Download .csv | Monitor

[#1221] SMIE: Incorrect indentation of 'type...and' (r455, HEAD)

Date:
2012-09-24 08:27
Priority:
3
State:
Open
Submitted by:
Marc Simpson (marc)
Assigned to:
Nobody (None)
Hardware:
None
Resolution:
Accepted As Bug
Severity:
normal
Version:
None
Component:
None
Operating System:
None
Product:
None
 
URL:
Summary:
SMIE: Incorrect indentation of 'type...and' (r455, HEAD)

Detailed description
SMIE incorrectly indents (and colours—see #1166) type definitions introduced with 'and'. Re-indentation of the region resolves the problem by right-aligning 'type' and 'and' (though the face is still incorrect).

Please find an example attached.

Followup

Message
Date: 2013-08-16 12:53
Sender: Christophe Troestler

"type ... and" constructs are rather difficult to color properly because the "and" may appear many lines after and one must skip the (possible) type definition which may be rather long.

@Stephan: can SMIE help for fontifying?

Attached Files:

Attachments:
type_and.ml

Changes:

Field Old Value Date By
ResolutionNone2013-08-16 12:53chris
File Added194: type_and.ml2012-09-24 08:27marc