Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation when line starts with quote #6

Open
hcs42 opened this issue May 7, 2013 · 1 comment
Open

Fix indentation when line starts with quote #6

hcs42 opened this issue May 7, 2013 · 1 comment

Comments

@hcs42
Copy link
Member

hcs42 commented May 7, 2013

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.
|
@hcs42 hcs42 mentioned this issue Dec 4, 2013
@aerosol
Copy link
Member

aerosol commented Dec 5, 2013

👍

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

No branches or pull requests

2 participants