Commit Graph
2887 Commits
Author SHA1 Message Date
José Valim 45f27844f5 Raise better child_spec error if module is not defined, closes #6565 2017-09-12 16:59:10 +02:00
Dorian Karter 63f1d918bd Allow passing empty string as match argument to String.replace/4 (#6559) 2017-09-12 15:20:55 +02:00
Yordis Prieto dd1524f7f9 Use the name of a registry as its child spec id (#6560) 2017-09-12 13:57:23 +02:00
José Valim 5ed491a7ea Document all atoms exposed through __info__ 2017-09-12 13:33:47 +02:00
José Valim 144df88cae Fix overridable tests 2017-09-09 12:18:00 -07:00
José Valim 2e4d58cfa2 Rely on Supervisor.child_spec/2 and clean up code generation 2017-09-07 07:09:09 -07:00
Kelvin Stinghen ecdb8232c0 Warning on the use of length(x) == 0 on guards (#6538) 2017-09-06 22:38:44 +02:00
Kelvin Stinghen 68f4601044 Improve the error message for rescue, catch and else inside def (#6542) 2017-09-06 20:42:38 +02:00
Tomasz Marek Sulima 3b74a0e09a Warn if catch comes before rescue in try (#6537) 2017-09-04 11:39:00 +02:00
Aleksei Magusev 2d14cedab5 Fix typo in MapSetTest 2017-09-01 20:55:59 +02:00
Shane Howley a0716c2f44 Return valid MapSet when union-ing a legacy MapSet (#6534) 2017-09-01 20:33:57 +02:00
Ivan Kozik 75150ec7eb Fix more typos and spelling errors (#6530) 2017-09-01 10:20:53 +02:00
Ivan Kozik b9ca29768a Fix a few spelling errors (#6525) 2017-09-01 10:17:57 +02:00
Ivan Kozik d7d697db39 Use "number" instead of "amount" for count nouns (#6528) 2017-09-01 10:17:26 +02:00
José Valim 93f79543ae Do not use __block__ and __aliases__ as literal identifiers 2017-09-01 01:45:08 +02:00
Aleksei Magusev c033ed1cf5 Test Port.monitor/1 and Process.monitor/1 inlining
Partially reverts 118ce95c0d.
2017-08-31 21:28:40 +02:00
José Valim 2efb7691f7 Rename cancel_break to next_break_fits 2017-08-31 20:29:32 +02:00
Kelvin Stinghen a5f64607ac Add Port.monitor/1 and Port.demonitor/1 functions (#6518) 2017-08-31 12:02:11 +02:00
Aleksei Magusev 118ce95c0d Remove Process.monitor/1 inlining test 2017-08-30 20:25:03 +02:00
José Valim 97ece16b11 Add more formatter metadata 2017-08-30 17:21:17 +02:00
José Valim 9c9d4daa7c Improve coverage of inspect algebra 2017-08-30 15:35:46 +02:00
José Valim f0d8219240 No longer group by default to avoid full document traversals 2017-08-29 11:56:35 +02:00
José Valim 099a3a41ed Fix ordering of rescue and catch in try 2017-08-29 01:31:07 +02:00
José Valim 6030be5ae5 Add literal annotation for aliases 2017-08-28 23:59:45 +02:00
José Valim 9a33445c6c Do not unescape interpolation 2017-08-28 14:17:12 +02:00
José Valim 3e7966806e Improve coverage on Macro.to_string 2017-08-28 10:30:04 +02:00
José Valim ef08afc34d Introduce force_break and cancel_break
Those replace the mechanisms imposed by hard lines and
next break fits but without the coupling to a given
representation.
2017-08-28 01:25:36 +02:00
Fred Wu 995740ac88 Correct Registry.match/4's typespec of its "pattern" argument (#6508) 2017-08-27 12:10:45 -07:00
José Valim a378154652 Make terminator binaries 2017-08-27 12:39:40 +02:00
José Valim 056450d575 Rename lines to soft and hard instead of boolean 2017-08-26 19:49:37 +02:00
José Valim 94da892129 Instead of flex groups, use flex breaks 2017-08-26 18:54:26 +02:00
José Valim eead746e9e Add conditional nesting 2017-08-26 17:22:52 +02:00
José Valim 0001511de0 Introduce forced line breaks 2017-08-26 11:04:47 +02:00
José Valim 6c0e35f6ab Make sure all lines in group must fit 2017-08-26 10:22:25 +02:00
Andrea Leopardi 47389a8de5 Refactor tests for the :wrap_literals_in_blocks parser option 2017-08-25 01:42:25 +02:00
Andrea Leopardi 82dfe6f56e Add :format metadata to strings and charlist literals (#6505) 2017-08-25 01:33:02 +02:00
Aleksei Magusev 7486334009 Add test for date limits enforcing in Calendar.ISO 2017-08-24 22:25:52 +02:00
José Valim 7c4c6a5e97 Wrap unary operator in parens as well 2017-08-24 00:23:12 +02:00
Andrew Dryga c6a542fbe1 Clarify Path.join/2 behavior when dealing with lists (#6502) 2017-08-23 17:38:51 +02:00
Andrea Leopardi 4cfce073c1 Keep the representation of "float" tokens like we do for "int" tokens (#6501) 2017-08-23 12:57:10 +02:00
Andrea Leopardi bd1508cc23 Fix integer token representation for decimal integers 2017-08-23 12:07:46 +02:00
Andrea Leopardi 2f9b651011 Merge integer tokens into the "int" token (#6499) 2017-08-23 11:55:12 +02:00
Andrea Leopardi 8cd9b8a75a Change the format of tokens (#6495)
Right now, tokens are "{Token, Location}" or "{Token, Location, Value}".
This commit changes "Location" from "{Line, StartColumn, EndColumn}" to
"{Line, {StartColumn, EndColumn}, Meta}" where "Meta" can be anything.
This will be used for things such as storing the format of integers.
2017-08-22 21:12:30 +02:00
José Valim 4c98fcb96c Rename :mode to :group and provide better defaults 2017-08-22 17:23:11 +02:00
José Valim 0b0ab9f8ef Add Code.Identifier to hold shared identifier logic throughout Elixir 2017-08-22 13:22:26 +02:00
Andrea Leopardi 1dd4c16958 Rename the "hexadecimal" token to "hex" 2017-08-22 00:07:03 +02:00
Glauber Campinho 7951cb6a8c Do not crash for unknown var inside binary pattern in match (#6459) 2017-08-15 11:53:19 +02:00
Aleksei Magusev c76708a05e Correct indentation and style in one of URI tests 2017-08-09 12:42:50 +02:00
Marcel Otto ae78718f87 Fix URI.parse/1 to preserve empty fragments (#6419) 2017-08-08 22:40:29 +02:00
Andrea Leopardi 82826dceec Fix Macro.to_string/2 for tuple calls (#6418)
Calls such as "Foo.{Bar, Baz}" (used in "alias Foo.{Bar, Baz}" for
example) were badly formatted by Macro.to_string/2. That's fixed in this
commit.
2017-08-02 12:30:48 +02:00