elixir-editors / elixir-editors/language-elixir

Indentation of multiline maps/keyword lists/structs

Open
#87 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
178
Forks
41
PR merge metrics
No merged PRs in 30d

Description

If i try to indent a multiline map the plugin will indent the map incorrectly. For example, the auto-indented map will look like this.
```
%{foo: "bar",
baz: "buzz"}
```
Where it should be
```
%{foo: "bar",
baz: "buzz"}
```
of note, if you try to make a map with newlines (i.e. javascript style), it auto-indents fine.
```
%{
foo: "bar",
baz: "buzz
}
```
however, this is not usually how elixir code is formatted. The same is true for keyword lists as well as structs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.