Skip to content

Phrase detection error #171

@ysalmon

Description

@ysalmon

Description

fsharp-mode does not accurately finds the whole phrase with an if/then/else construct.

Repro steps

Type the follwong, set th text cursoron the closing parenthesis. I used "mark phrase" for the screenshot, but evaluating the phrase gives en F# error error FS0010: Unexpected keyword 'else' in interaction
capture d ecran_2018-05-17_22-04-18

Expected behavior

I would expect the whole let rec to be considered as the phrase.

Actual behavior

Please provide a description of the actual behaviour you observe.

Known workarounds

Selecting phrase manually and using evaluate region.

Related information

  • Operating system Linux
  • Branch XUbuntu 16.04
  • Emacs version 25
  • .NET Runtime, CoreCLR or Mono Version
  • Performance information, links to performance testing scripts

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