OCaml Forge
SCM

Detail: [#750] in_ indents oddly

Bugs: Browse | Download .csv | Monitor

[#750] in_ indents oddly

Date:
2010-09-13 16:09
Priority:
3
State:
Closed
Submitted by:
John Carr (jfc)
Assigned to:
Nobody (None)
Hardware:
PC
Resolution:
Fixed
Severity:
minor
Version:
None
Component:
None
Operating System:
Linux
Product:
None
 
URL:
Summary:
in_ indents oddly

Detailed description
If I type "in_" the word jumps to the right when I type the "_" but goes back left if I hit tab to indent.

To see an example, create an empty file in tuareg mode and type 'i' 'n' '_'. The word "in_" jumps two spaces to the right. Hit tab and it jumps back to the left margin.

If you want a syntactically valid example, given

type foo={
in_

the word "in_" jumps to the right to line up with the open brace, but tab indents it only two spaces from the margin.

Apparently '_' causes the word "in" to be indented the same as if space were typed, but when '_' is added the result is no longer a keyword and should not be indented as one.

Followup

Message
Date: 2011-12-08 19:59
Sender: Christophe Troestler

I forgot to say that you have to add

(setq tuareg-use-smie t)

in your ~/.emacs
Date: 2011-12-08 19:54
Sender: Christophe Troestler

Could you test the latest SVN code? I believe your problem is fixed.

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2013-08-16 12:29chris
close_dateNone2013-08-16 12:29chris
ResolutionNone2013-08-16 12:28chris