José Valim
8b203a8379
Use IO.ANSI.Docs to format mix help
2014-05-08 20:13:29 +02:00
Alexei Sholik
c4de5f1849
Don't mention default EEx engine twice; add a note about it in the code
2014-04-25 14:50:51 +03:00
José Valim
4df91f14ee
Fix bug in for comprehensions
2014-04-24 11:27:49 +02:00
José Valim
611bdbd0bc
Remove records from EEx
2014-04-23 12:58:21 +02:00
José Valim
56f15d9f4e
Do not add spaces after { and before }
...
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim
6624f31472
Merge branch 'jv-char-data'
...
Conflicts:
lib/eex/lib/eex/tokenizer.ex
lib/elixir/lib/file.ex
lib/elixir/lib/kernel.ex
lib/elixir/lib/record/extractor.ex
lib/elixir/lib/string.ex
lib/ex_unit/lib/ex_unit/doc_test.ex
lib/mix/lib/mix/archive.ex
lib/mix/lib/mix/dep/fetcher.ex
lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
Igor Kapkov
97e70e6de1
change some doc examples to iex style
2014-04-12 08:41:22 +02:00
Eric Meadows-Jönsson
f7d0c8c58e
Add handle_body/1 callback to EEx.Engine
2014-04-08 19:17:59 +02:00
José Valim
4847214766
Do not fill in stacktraces on protocol dispatch
2014-04-07 19:05:02 +02:00
José Valim
e56df8ad70
Look text ahead on EEx do/end blocks instead of relying on buffers
2014-04-06 14:50:26 +02:00
José Valim
325c98ccbd
Remove line and convert text tokens to char lists
2014-04-06 14:14:47 +02:00
José Valim
26f5f640c9
Initial work on traversable
2014-03-05 08:08:43 -08:00
José Valim
69f2d5083f
Improve docs for EEx
2014-02-28 08:41:13 +01:00
José Valim
6a725ab91f
Provide List.from_char_data! and String.from_char_data!
2014-02-23 11:04:24 +01:00
José Valim
bf3852b7bd
Migrate from bc to for comprehensions
2014-02-17 14:53:45 +01:00
José Valim
3512c1a860
Start migrating lc to for comprehensions
2014-02-17 14:45:04 +01:00
José Valim
ba54afbf45
Move to new sigils syntax
2014-02-05 14:39:04 +01:00
José Valim
294885be1a
Default build_per_environment to true
2014-02-01 12:55:30 +01:00
José Valim
5f682023a6
Deprecate usage of @behavior in favor of @behaviour
2014-01-28 11:21:55 +01:00
José Valim
fe2e4a1010
Move from // to \\
2014-01-28 10:50:00 +01:00
Devin Torres
f42055be57
Allow EEx.AssignsEngine to accept any Dict.t
2014-01-13 15:21:26 -06:00
José Valim
0aff2a3139
Compile with relative paths and include apps in stacktraces
...
Closes #1964 , closes #1861
2014-01-07 11:30:44 +01:00
José Valim
5e2ea082d1
Deprecate __FILE__ in favor of __DIR__ or __ENV__.file
2014-01-02 18:10:59 +01:00
José Valim
eaac3bbd76
Ensure aliases dispatch to the proper function, guarantee files are binaries
2013-12-30 12:38:36 +01:00
José Valim
ade26dedd8
Work on Elixir expressions rather than forms
2013-12-28 11:47:44 +01:00
José Valim
b39c762557
Rename redundant is_ prefix in internal APIs
2013-12-24 23:06:59 +01:00
José Valim
404e8290b8
Improve EEx docs
2013-11-18 20:01:02 +08:00
José Valim
404f77421a
Refactor string interpolation to delegate to the tokenizer
...
This refactoring helps us clean up the interpolation code and
guarantee it works as expected since it goes under the same
tokenization rules. It also helps provide better sigil handling
(going to be improved in upcoming commits).
2013-10-25 13:19:47 +02:00
José Valim
0267f312b1
Fix handling of nested do expressions in EEx, closes #1710
2013-09-12 10:59:48 -03:00
José Valim
f3f64cdba2
Move to capture syntax
2013-09-10 23:33:53 -03:00
José Valim
b39a5d8632
Deprecate %b and %B in favor of %s and %S
2013-09-03 13:14:13 -03:00
José Valim
0510512375
Deprecate to_binary in favor of to_string
...
We also rename Binary.Chars to String.Chars.
As Binary.Chars was the protocol used for interpolation,
it is semantically correct to have a protocol that works
on strings, instead of raw binaries.
2013-08-22 12:19:30 +02:00
José Valim
3e1099830a
Properly handle @file that comes from warnings
2013-08-20 11:39:29 +02:00
José Valim
baf647986f
Avoid extra eval on EEx
2013-08-19 22:17:29 +02:00
José Valim
cea31f69dc
Review and deprecate list <-> binary conversion
2013-08-14 11:16:37 +02:00
José Valim
52188fab89
Move from unicode to list to String.to_char_list
2013-08-13 08:39:16 +02:00
José Valim
19ac199b06
Move from unicode to binary to String.from_char_list
2013-08-13 08:39:16 +02:00
José Valim
6a68ca5eef
Deprecate function/1 and function/3
2013-07-31 12:58:07 +02:00
José Valim
ac666a9731
Improve docs for EEx.AssignsEngine, closes #1499
2013-07-27 09:55:24 +02:00
José Valim
7ed1f2cbef
EEx exprs should receive binaries and use Behaviour
2013-07-20 16:35:32 +02:00
José Valim
ebe522ec50
Tighten up the grammar rules regarding parentheses omission
...
Prior to this commit, Elixir allowed too many ambiguous calls
by ommitting the parentheses:
do_something 1, is_list [], 3
[1, is_atom :foo, 3]
Both cases above would lead to a compilation error, as an attempt
to call is_list/2 and is_atom/2 would happen. Those examples will
now raise a syntax error, pointing to the ambiguous location.
We have disallowed such examples throughout the language with
the exception of one argument calls:
assert is_list []
Examples as above are extremely frequent and were kept as is.
2013-07-04 18:48:55 +02:00
José Valim
cdd8e5862d
Rename the ExUnit option from debug to trace
2013-07-01 16:41:34 +02:00
José Valim
3bac4ddec6
Support --debug on internal tests which are not run through mix
2013-07-01 14:20:33 +02:00
Rafael Mendonça França
7cdc25538e
Uniform use of whitespace after commas on codebase
...
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
Yuki Ito
961099746e
Implicit super arguments is deprecated
2013-06-13 00:42:34 +09:00
José Valim
6d2569ff9b
Merge pull request #1023 from alco/eex-unicode
...
Add support for unicode to EEx.Tokenizer
2013-05-06 16:21:56 -07:00
Alexei Sholik
ce39f23388
Add support for unicode to EEx.Tokenizer
2013-05-07 02:14:48 +03:00
José Valim
cbe82e0912
Add __DIR__, closes #1019
2013-05-06 11:03:37 -06:00
José Valim
8994feb0a3
Fix unused vars warnings
2013-02-02 13:33:00 -07:00
José Valim
4d3d61e173
Deprecate :local.(args) syntax
2013-01-28 21:21:18 -07:00