José Valim
|
baeed3a69e
|
Recognize hashbangs in the formatter
Those are known instructions in UNIX systems.
Closes #6969.
|
2017-10-24 14:00:10 +02:00 |
|
Pedro Medeiros
|
53a7883378
|
Format @spec with map literal with multi keys
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
|
2017-10-19 18:32:04 +02:00 |
|
José Valim
|
96067cdfbf
|
Ensure left side of | in maps has parens when necessary
|
2017-10-19 18:29:13 +02:00 |
|
José Valim
|
f7dede6e8d
|
Simplify rules for & with binary operators
Closes #6923.
|
2017-10-16 18:10:56 +02:00 |
|
José Valim
|
c5f6271872
|
Keep integer/float underscores in the formatter, closes #6931
|
2017-10-16 16:44:53 +02:00 |
|
José Valim
|
97ad07b7ab
|
Make sure to not break guards on clauses with comments
|
2017-10-11 21:25:21 +02:00 |
|
José Valim
|
d204ce1b1f
|
Allow quote without parens
|
2017-10-11 19:52:38 +02:00 |
|
José Valim
|
486b028adf
|
Format more files with little formatting requirement
|
2017-10-11 18:43:03 +02:00 |
|
José Valim
|
31a0e1d5f0
|
Format more pending files and ensure proper clause args break
|
2017-10-11 14:28:13 +02:00 |
|
José Valim
|
14156f2003
|
Improve formatting on more files
|
2017-10-11 12:28:04 +02:00 |
|
José Valim
|
c4b9f2a4fb
|
Respect multiline decision regarding keyword lists
|
2017-10-11 00:57:02 +02:00 |
|
José Valim
|
cfaa2d9946
|
Group left and right side of operators
|
2017-10-10 23:08:00 +02:00 |
|
José Valim
|
107859b375
|
Format all files that have less than 10 entries in myers difference
|
2017-10-10 16:00:50 +02:00 |
|
José Valim
|
14800eae21
|
Nest function heads on cursor
|
2017-10-10 15:34:35 +02:00 |
|
José Valim
|
cb5ab79473
|
Do not introduce trailing whitespace on heredocs
|
2017-10-10 15:01:29 +02:00 |
|
José Valim
|
d97e9599a4
|
Format the formatter
|
2017-10-10 14:19:42 +02:00 |
|
José Valim
|
7dff1b2472
|
Consistently format operators in capture
|
2017-10-10 14:19:42 +02:00 |
|
José Valim
|
547d042398
|
Ensure maps/structs with updates converge
|
2017-10-10 14:19:42 +02:00 |
|
José Valim
|
e8550bcd51
|
Always wrap binary operators in groups
|
2017-10-10 01:10:22 +02:00 |
|
José Valim
|
9e5126256f
|
Do not apply next_break_fits if eol is present
|
2017-10-09 23:55:49 +02:00 |
|
José Valim
|
41ca9abfc7
|
Properly render :-> as an atom
|
2017-10-09 22:55:07 +02:00 |
|
José Valim
|
52b405bbda
|
Keep the user's choice on non-module remote calls with no args
|
2017-10-09 22:43:08 +02:00 |
|
José Valim
|
f0a1e79fa5
|
Format bitstring generators in comprehensions
|
2017-10-09 22:27:34 +02:00 |
|
José Valim
|
1fcd93cefa
|
Do not apply special keyword syntax if there are generators
|
2017-10-09 20:18:02 +02:00 |
|
José Valim
|
f7741f29b5
|
When when and | also respect new lines
|
2017-10-09 17:13:39 +02:00 |
|
José Valim
|
c0062c8a75
|
Do not skip parens for right associative operators
|
2017-10-09 15:58:08 +02:00 |
|
José Valim
|
f1776da4f1
|
Only keep locals_without_parens if they never had parens to start with
|
2017-10-09 15:57:57 +02:00 |
|
Andrea Leopardi
|
7a0e612c13
|
Add Mix.Config-related calls to locals_without_parens in the formatter
|
2017-10-09 15:37:21 +02:00 |
|
José Valim
|
0a752bb1b4
|
Keep () in no args type funs for clarity
|
2017-10-09 14:11:38 +02:00 |
|
José Valim
|
31bf5dfb42
|
Allow groups to inherit the parent break
|
2017-10-09 13:40:42 +02:00 |
|
José Valim
|
95405c81de
|
Add do-block special forms to the list of locals_without_parens
|
2017-10-09 13:10:36 +02:00 |
|
José Valim
|
dbc884d9be
|
Add doctest to the list of locals without parens
|
2017-10-09 13:08:32 +02:00 |
|
José Valim
|
ac70a06b28
|
Fix arity of defdelegate in the code formatter
|
2017-10-09 13:02:14 +02:00 |
|
José Valim
|
576f10dd24
|
Consistently respect user's choice on clauses
|
2017-10-09 12:04:08 +02:00 |
|
Andrea Leopardi
|
102af89c66
|
Add Kernel.reraise/2,3 to the list of parenless calls in the formatter
|
2017-10-09 11:28:01 +02:00 |
|
José Valim
|
f8450eb22b
|
Properly track one args in formatter, closes #6645
|
2017-10-09 01:23:22 +02:00 |
|
José Valim
|
22c6311e9d
|
More improvements to the formatter grammar, docs, and locals without bindings
|
2017-10-08 19:28:36 +02:00 |
|
José Valim
|
9bdb052cd4
|
Add mix format
|
2017-10-08 19:28:36 +02:00 |
|
José Valim
|
9bc24ee7f2
|
Add code formatter (#6639)
|
2017-10-07 15:33:46 +02:00 |
|
José Valim
|
e8d5c70baa
|
Move & up in the operator table to avoid conflicts with | in cons, closes #6613
|
2017-09-28 18:32:52 +02:00 |
|
José Valim
|
099f88ff7d
|
Split callable in two types
|
2017-08-24 23:43:14 +02:00 |
|
José Valim
|
0b0ab9f8ef
|
Add Code.Identifier to hold shared identifier logic throughout Elixir
|
2017-08-22 13:22:26 +02:00 |
|