Skip to content

Fix indentation when line starts with quote #6

Description

@hcs42

When the first character of a line is an opening quote, the indentation is incorrect:

'my function'() ->
LineToIndent.

Another problem is that when hitting enter inside a string, the new line will be indented incorrectly.

For example if you type this:

documentation() ->
    "Documentation
This is the first line of a documentation.

and hit enter, the cursor (shown as a | below) will be placed in the same column as the quote:

documentation() ->
    "Documentation
This is the first line of a documentation.
    |

The correct behavior is to not modify the indentation calculated by Vim:

documentation() ->
    "Documentation
This is the first line of a documentation.
|

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions