José Valim
ef43b25f85
Restrict next break fits and eols on operators and function calls
...
* Whitelist which operators support next_break_fits
* No longer consider tuples as part of next_break_fits
* Do not consider eol for = and ::
* Do not consider eol for calls with one next_break_fits arg
2017-10-27 12:34:09 +02:00
José Valim
7578660c60
Fixes to previously formatted files
2017-10-12 09:01:21 +02:00
Nathan Willson
bbd95d4712
Run code formatter on tokenizer_text.exs ( #6905 )
2017-10-12 09:00:21 +02:00
José Valim
d197dcb459
Format more files with little formatting requirement
2017-10-10 20:00:45 +02:00
José Valim
923e926874
Format more files with little formatting requirement
2017-10-10 19:19:32 +02:00
José Valim
fb555af8df
Format more low hanging fruit files
2017-10-10 18:05:42 +02:00
Jerel Unruh
5c93a06d85
Run formatter on lib/eex/lib/eex/tokenizer.ex ( #6816 )
2017-10-10 17:02:30 +02:00
José Valim
a0c071d147
Improve formatting on eex_test
2017-10-10 16:33:01 +02:00
Zachary Gohr
c16e99ed57
Run code formatter on EExTest.Compiled ( #6781 )
2017-10-10 16:26:48 +02:00
Alessandro Nuzzo
b8d9e86925
Run code formatter on EEx.Compiler ( #6692 )
2017-10-09 19:53:30 +02:00
Petr Stepchenko
62d6a103a6
Run the code formatter on test_helper.exs ( #6671 )
2017-10-09 13:56:40 +02:00
José Valim
65c378dfac
Format first file and mix.exs scripts
2017-10-08 19:34:44 +02:00
José Valim
c1bd106613
Rely on side effects for preserving comments
...
The previous implementation would not lead to parsing
errors in interpolations since code inside interpolation
is parsed immediately.
2017-10-05 13:27:25 +02:00
Pedro Medeiros
143f876fe9
Raise on middle expression without start expression in EEx ( #6610 )
2017-09-28 10:33:56 +02:00
Aleksei Magusev
d582db9a88
Use MixProject instead of Mixfile in mix.exs files
2017-08-20 21:40:23 +02:00
José Valim
b49489a5a7
Add handle_begin and handle_end to EEx
...
Elixir v1.5.0 attempted to repurpose the value of init
to use throughout the engine but such was a breaking change.
To address this problem, we added handle_begin and
handle_end which were designed exactly to handle inner
buffers.
This comes with the benefit that EEx.Engine can now have
any data structure as state and no longer only quoted
expressions.
Closes #6391 .
2017-07-29 22:05:38 +02:00
Tomek Gryszkiewicz
3b51d3f1c2
Allow markers "/" and "|" to be used in a custom EEx engine ( #6281 )
2017-07-03 22:02:37 +02:00
Wojtek Mach
4b943168e8
Turn EEx.SyntaxError into a warning to keep backwards compatibility ( #6220 )
2017-06-14 17:51:41 +02:00
Wojtek Mach
b3e9022e34
Use new mix.exs style in docs, core apps mix.exs and generated README ( #6215 )
2017-06-12 10:05:41 +02:00
Eksperimental
cb7029f024
Replace Keyword.t/0-1 types with built-in keyword/0-1 ( #6124 )
2017-06-04 11:11:57 +01:00
Mengxuan Xia
f1f41ca0f5
More work regarding making CI on Windows green ( #6150 )
2017-05-26 00:50:58 +02:00
Sam Davies
d30e052427
Dogfood new defoverridable syntax ( #6100 )
2017-05-22 23:58:47 +02:00
Leif Gensert
b083301d74
Improve typespec of EEx.Engine.fetch_assign! ( #6118 )
...
Whenever EEx templates are used to pass variables via "assigns" whatever
this data structure is will be passed into "EEx.Engine.fetch_assign" and
then into "Access.fetch/2".
So it makes sense to use the same typespec for the both. Otherwise
dialyzer will complain about every instance where keyword lists are
passed into functions like "eval_string", "function_from_file" and
"function_from_string".
2017-05-18 15:20:42 +02:00
José Valim
dff3d4da4b
Do not raise on invalid eex expression as it was accidentally supported
2017-03-07 12:38:59 +01:00
Aleksei Magusev
6e9c41c3e7
Improve code style in EEx.Compiler
2017-02-23 23:58:20 +01:00
José Valim
3e71673a2b
Do not introduce empty buffers in EEx
2017-02-20 23:33:31 +01:00
José Valim
b988371c39
Support middle expressions on trim mode, closes #5752
2017-02-09 20:40:42 +01:00
José Valim
b37474cc84
Improve error message on invalid middle/end in EEx
...
Closes #5691
2017-01-22 22:59:06 +01:00
José Valim
7947f966e1
Tidy up EEx test suite
2017-01-22 22:31:03 +01:00
Eksperimental
2e5bab1c86
Add white-space before =, == ( #5506 )
2016-11-30 17:17:16 +01:00
Aleksei Magusev
76a6230448
Correct EEx.Engine.handle_assign/1 spec
2016-10-27 18:46:46 +02:00
Eksperimental
bf737e115f
Complete specs and guards for EEx ( #5348 )
2016-10-26 18:50:15 +02:00
Louis Pilfold
0230128ee8
Correct small inaccuracy in EEx.Engine moduledoc ( #5187 )
...
Pesky off by 1 errors.
2016-09-06 21:50:47 +02:00
Eksperimental
2e97c1e15e
Name variables in callbacks ( #4880 )
2016-06-25 04:08:43 +02:00
Aleksei Magusev
b86b8ca335
Emit warning when variable is being expanded to function call ( #3517 )
2016-06-11 22:31:03 +02:00
eksperimental
e59a9f82fd
Use proper case for proper nouns and acronyms
...
Use proper case for proper nouns (e.g., Elixir, Rebar, Git, and others)
as well as acronyms (e.g., URL, HTTP, and others).
2016-06-06 15:17:59 +02:00
José Valim
c14a05f73d
Update TODOs and CHANGELOG
...
* Functionality won't be removed before v2.0
* Features soft-deprecated in Elixir v1.2 will warn on v1.4
* Features soft-deprecated in Elixir v1.3 will warn on v1.5
2016-06-02 21:21:24 +02:00
José Valim
99215be444
Update CHANGELOG
2016-05-29 12:31:12 +02:00
José Valim
d050b41452
Fix warning errors in IEx and EEx
2016-05-15 21:00:20 +02:00
Louis Pilfold
7ab8f10a89
IO.warn to unify warnings ( #4615 )
...
* IO.warn/1 function
* Use IO.warn/1 instead of IO.write :stderr
* Add stack trace printing to IO.warn
* Remove manual stacktrace concatting from IO.warn calls
* Remove double trailing newline from IO.warn
2016-05-13 14:12:01 +02:00
eksperimental
c3d28f76f2
Replace 'char_list' and 'char list' with 'charlist'
2016-05-07 03:20:57 +07:00
eksperimental
bc8c2a55e9
Standardize unicode and friends ( #4569 )
...
* Unicode is a proper noun, so it should be capitalized
* Replace 'char data' with 'chardata'
* Correct use of a/an articles
2016-05-05 09:21:05 +02:00
eksperimental
685e87bdf0
Formmating: Add white space around vertical bar ( #4507 )
2016-04-25 00:55:49 +02:00
eksperimental
ba111fb9b3
Formatting: add white space after comma ( #4491 )
...
Standardizes the use of comma leaving a white space after it whenever applicable.
Note: It does not enforce this in quantifiers in regular expressions such as in: `x{1,3}`
2016-04-19 01:23:50 +02:00
eksperimental
d4a9ae89e8
Few improvements to EEx docs ( #4494 )
2016-04-08 09:55:15 +02:00
Brandon Fish
eea608c209
Add test coverage to EEx
2016-04-03 08:43:22 -05:00
Andrea Leopardi
9d6ac4d2af
Add final newlines to a bunch of files
...
A bunch of files didn't end with a final newline (according to the POSIX
standard -
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 ).
2016-03-29 23:02:22 +02:00
eksperimental
3706ba7845
Add arity to functions in docs
2016-02-09 07:14:25 +07:00
Aleksei Magusev
b2372d2436
Inspect path in File.Error exception message
2016-01-24 23:18:00 +01:00
José Valim
dc5515e790
Define @callback init for EEx.Engine
2016-01-21 23:43:23 +01:00