changed
CHANGELOG.md
|
@@ -1,5 1,17 @@
|
1
1
|
# Changelog
|
2
2
|
|
3
|
## [1.0.1](https://github.com/AdRoll/rebar3_format/tree/1.0.1) (2021-04-08)
|
4
|
|
5
|
[Full Changelog](https://github.com/AdRoll/rebar3_format/compare/1.0.0...1.0.1)
|
6
|
|
7
|
**Fixed bugs:**
|
8
|
|
9
|
- Strings in attributes crash the formatter [\#239](https://github.com/AdRoll/rebar3_format/issues/239)
|
10
|
|
11
|
**Merged pull requests:**
|
12
|
|
13
|
- \[\#239\] Fix \#239: Attributes with strings [\#241](https://github.com/AdRoll/rebar3_format/pull/241) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
14
|
|
3
15
|
## [1.0.0](https://github.com/AdRoll/rebar3_format/tree/1.0.0) (2021-04-07)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/AdRoll/rebar3_format/compare/0.10.1...1.0.0)
|
|
@@ -17,9 29,9 @@
|
17
29
|
|
18
30
|
**Merged pull requests:**
|
19
31
|
|
32
|
- Improve test coverage [\#235](https://github.com/AdRoll/rebar3_format/pull/235) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
20
33
|
- \[\#197\] Fix \#197: Organize Tests [\#238](https://github.com/AdRoll/rebar3_format/pull/238) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
21
34
|
- Rename master branch as main [\#237](https://github.com/AdRoll/rebar3_format/pull/237) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
22
|
- - Improve test coverage [\#235](https://github.com/AdRoll/rebar3_format/pull/235) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
23
35
|
- \[\#233\] Fix \#233: Allow format options in comment form [\#234](https://github.com/AdRoll/rebar3_format/pull/234) ([elbrujohalcon](https://github.com/elbrujohalcon))
|
24
36
|
|
25
37
|
## [0.10.1](https://github.com/AdRoll/rebar3_format/tree/0.10.1) (2021-02-19)
|
changed
hex_metadata.config
|
@@ -18,4 18,4 @@
|
18
18
|
[{<<"app">>,<<"katana_code">>},
|
19
19
|
{<<"optional">>,false},
|
20
20
|
{<<"requirement">>,<<"1.1.1">>}]}]}.
|
21
|
- {<<"version">>,<<"1.0.0">>}.
|
21
|
{<<"version">>,<<"1.0.1">>}.
|
changed
rebar.lock
|
@@ -1,8 1,6 @@
|
1
|
- {"1.2.0",
|
1
|
{"1.1.0",
|
2
2
|
[{<<"katana_code">>,{pkg,<<"katana_code">>,<<"1.1.1">>},0}]}.
|
3
3
|
[
|
4
4
|
{pkg_hash,[
|
5
|
- {<<"katana_code">>, <<"7EFFD69078AD6263F54C0E02231387A292A4FBD80BF79E5F62D666410D798038">>}]},
|
6
|
- {pkg_hash_ext,[
|
7
|
- {<<"katana_code">>, <<"94F4C9DF74F09B8944C5B04902F7902A3C5A1B289E45CFC1A83A462A669359FA">>}]}
|
5
|
{<<"katana_code">>, <<"7EFFD69078AD6263F54C0E02231387A292A4FBD80BF79E5F62D666410D798038">>}]}
|
8
6
|
].
|
changed
src/formatters/default_formatter.erl
|
@@ -1046,6 1046,8 @@ lay_string(Node, Ctxt) ->
|
1046
1046
|
end,
|
1047
1047
|
lay_string_lines(string_lines(S), Ctxt).
|
1048
1048
|
|
1049
|
interpret_string(undefined) ->
|
1050
|
undefined;
|
1049
1051
|
interpret_string(S) ->
|
1050
1052
|
{ok, Tokens, _} = erl_scan:string(S),
|
1051
1053
|
erl_parse:parse_exprs(Tokens [{dot, 0}]).
|
changed
src/rebar3_format.app.src
|
@@ -1,6 1,6 @@
|
1
1
|
{application,rebar3_format,
|
2
2
|
[{description,"A rebar plugin for code formatting"},
|
3
|
- {vsn,"1.0.0"},
|
3
|
{vsn,"1.0.1"},
|
4
4
|
{registered,[]},
|
5
5
|
{applications,[kernel,stdlib,katana_code]},
|
6
6
|
{env,[]},
|