José Valim
1cba584ac8
Fix column precision in test
2023-12-21 19:48:44 +01:00
José Valim
dfafea092e
Consider column in snippets, closes #13199
2023-12-21 19:30:15 +01:00
José Valim
7db4413476
Add source field to diagnostics
2023-12-21 17:22:43 +01:00
José Valim
4d52d18ef7
Do not reset column state in tests
2023-12-21 17:22:43 +01:00
José Valim
ffa3ef1ccf
Remove unused function
2023-12-14 17:19:58 +01:00
José Valim
d23e42e27f
Normalize token missing and mismatched delimiter exceptions
...
Closes #13183 .
Closes #13185 .
Closes #13186 .
Closes #13187 .
2023-12-14 17:07:44 +01:00
Vinícius Müller
67fd9824cc
Improve diagnostics for unclosed heredocs ( #13182 )
2023-12-14 09:24:59 +01:00
José Valim
1878e30bdb
Improve docs and support column in IO.warn, closes #13179
2023-12-13 23:31:49 +01:00
José Valim
6475917b3f
Use Macro.Env to record attribute warnings
...
Closes #13162 .
Closes #13164 .
2023-12-11 07:34:16 +01:00
José Valim
db8a1cdc7d
Revert "Consider surround context until end whenever possible"
...
This reverts commit a65dae971f .
2023-12-04 22:34:56 +10:00
Vinícius Müller
106539b5d2
Improve unclosed delimiter messages ( #13123 )
2023-12-04 22:08:53 +10:00
José Valim
c150876e5f
Remove warning on non-ambiguous nullary remote call
2023-11-22 08:55:00 +08:00
Jean Klingler
0a9ee79fbb
Formatter keeps quotes in atom keys ( #13108 )
2023-11-15 14:03:28 +01:00
Jean Klingler
58b8b93ee6
Auto infer size of matched variable in bitstrings ( #13106 )
2023-11-15 14:03:28 +01:00
Wojtek Mach
aef8673666
Preserve column when translating typespecs ( #13101 )
2023-11-14 09:59:01 +01:00
José Valim
901ec18aa7
Handle error in Macro.to_string/1, closes #13102
2023-11-14 00:53:00 +01:00
José Valim
56b62b64cb
Consider start line in MismatchedDelimiterError
2023-11-13 12:28:48 +01:00
José Valim
beaa33d088
Handle nil values in IO.warn
2023-11-10 12:53:47 +01:00
José Valim
8920cc1432
Fix case clause error on tokenizer
2023-11-06 13:29:19 +01:00
Cameron Duley
d5316d558f
Add String.replace_invalid/2 ( #13067 )
2023-11-02 19:32:25 +01:00
Jonatan Kłosko
a7216decad
Add offset option to File.stream! ( #13063 )
2023-11-02 17:58:22 +01:00
José Valim
2d86cb0027
Handle warnings from unquote functions
2023-10-31 12:00:04 +01:00
José Valim
bb1f1af113
Trim trailing whitespace on heredocs with \r\n
2023-10-29 08:51:48 +01:00
José Valim
dc79914182
Add :limit option to Task.yield_many/2
2023-10-26 23:19:21 +02:00
José Valim
08cc3015b5
Add a test to stab as not an operator
2023-10-26 00:29:50 +02:00
José Valim
08f315016f
Add @nifs attributes
2023-10-25 23:53:24 +02:00
Aziz Köksal
af9c0aaeb6
Change the word "duplicated" to "duplicate" ( #13008 )
2023-10-24 20:11:48 +02:00
José Valim
c35d002dc2
Fix column information in tests
2023-10-24 00:36:24 +02:00
José Valim
09946ee776
Include column information on definition metadata
...
Closes #13029 .
2023-10-23 20:12:20 +02:00
Dino
d332f262e7
Fix IEx doc printing for headings with newline characters ( #13018 )
...
Update `IEx.introspection.print_doc/5` to trasverse the list of headings
and split each heading into multiple headings, in case the heading has
any newline characters (`\n`). This fixes an issue where using the `h`
macro with some functions ended up with a broken output for the function
signature, as the padding done by `IO.ANSI.Docs.print_headings/2` does
not take into consideration the fact the the headings can contain
newline characters, and thus end up in multiple lines.
2023-10-20 07:01:38 +02:00
José Valim
69255ecbc8
Do not leak alias from Elixir root and simplify defmodule implementation
2023-10-17 11:09:21 +02:00
Jean Klingler
ec4dafae0c
Fix overriding with Elixir. prefixed defmodule ( #13011 )
...
Closes #12456 .
2023-10-17 10:53:10 +02:00
Jean Klingler
8a0961c9dc
Fix known callbacks suggestions ( #13007 )
2023-10-15 21:11:23 +09:00
Jean Klingler
88ade1d312
Fix warnings on conflicting callbacks ( #13006 )
...
* Improve imprecise message
* Remove false positive warnings on conflicting behaviours
2023-10-15 20:10:46 +09:00
José Valim
44d3faad45
No longer track module as context inside after_compile
2023-10-11 15:53:41 +02:00
Jean Klingler
320477cf5e
Add local_handler to erl_eval ( #12998 )
2023-10-08 21:59:46 +09:00
Vinícius Müller
47d706734c
Add error span for unknown local call
2023-10-07 18:12:15 +02:00
José Valim
a4c700b23b
Unify caret position in diagnostics
...
Closes #12995 .
2023-10-07 17:23:20 +02:00
José Valim
b710c8822c
Delegate escape characters to regex
2023-10-06 14:43:58 +02:00
José Valim
1bbcf67366
Keep File.stream! options as last argument
2023-10-04 17:08:06 +02:00
José Valim
3ed3bf9108
Deprecate ~R/.../ in favor of ~r/.../
2023-09-30 11:14:41 +02:00
Vinícius Müller
9a74a73a00
Normalize hint labels ( #12958 )
2023-09-23 18:59:08 +02:00
Vinícius Müller
af915cfc20
Uncomment assertions ( #12960 )
2023-09-23 17:24:36 +02:00
Jean Klingler
6ee16616c0
Fix OTP 26.1 warning in tests ( #12954 )
2023-09-23 18:15:09 +09:00
Jean Klingler
55fbc528f9
Always rewrite signed numbers during expansion ( #12955 )
2023-09-23 18:08:52 +09:00
Jean Klingler
9c0fa3cfef
Warn when matching on 0.0 and generate erl AST for +/-0.0 ( #12949 )
2023-09-23 00:27:44 +09:00
Vinícius Müller
f632fc648e
Set parser_options[:columns] to true by default ( #12941 )
2023-09-18 09:42:17 +02:00
José Valim
5225b33bab
Add interpolation token metadata
2023-09-17 22:46:26 +02:00
José Valim
cb9de080e5
Strip column information on quote
2023-09-17 22:25:33 +02:00
Vinícius Müller
10077bdb5e
Add span to unused/undefined variable diagnostics ( #12940 )
2023-09-16 20:11:26 +02:00