Skip to content

Unexpected editing behaviour on "struct" keyword #382

Open
@Melr0k

Description

@Melr0k

On v. 0.12 the editor cut the struct keyword into stru and ct, concatenated with the next word.
It still works if we replace the end keyword of my examples by anything.
It doesn't work if it's the first or the last token (nothing else than blank before or after), and in some other cases like on my third example.

  1. Press Enter in the place of the symbol Ø:
    module Mod =
    structØ end
    module Mod =
      stru
        ctend
  2. Press the spacebar selecting the newline after struct:
    module Mod =
    structend
    module Mod =
      stru ctend
  3. In this configuration the bug doesn't occur:
    let f = function
      | [] -> struct end
      | a::b -> g

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions