Skip to content

Wrong indents with decorators and JSX #46

Description

@yashrk

With ReasonReact example from https://reasonml.github.io/reason-react/docs/en/intro-example the default formating in reason mode is:

[@react.component]
  let make = (~name) =>
<button> {ReasonReact.string("Hello " ++ name ++ "!")} </button>;

The right formatting is, obviously, the following:

[@react.component]
let make = (~name) =>
  <button> {ReasonReact.string("Hello " ++ name ++ "!")} </button>;

Version of reason-mode — 20190710.1037 (from MELPA).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions