Andreas Lubbe
dab4ae9416
'->*' and '=>*' now produce generators
2013-12-19 18:08:25 -08:00
Andreas Lubbe
56b04a58dc
first attempt at using '->*" and '=>*' for generators
2013-12-19 14:21:14 -08:00
xixixao
ee9febe399
Handle nested calls and function oneliners when chaining
2013-11-27 04:57:44 +00:00
xixixao
15a70f863c
Implemented method call chaining
2013-11-27 03:41:52 +00:00
Marc Häfner
910e38749c
Merge removeMidExpressionNewlines into addImplicitIndentation
...
and rename it to `normalizeLines`
2013-07-31 22:12:44 +02:00
Marc Häfner
4342bedd2f
Fix multi-line if-else in single-line expression.
...
* When searching for the closing token of a single-line expression, ignore TERMINATORS that will subsequently be removed.
* Add a test.
2013-07-31 12:18:50 +02:00
Marc Häfner
fdd5796f5e
Disallow single-line IF expr ELSE without THEN
...
* Supplement missing block before `ELSE` token only for multi-line `if`.
* Don't prematurely remove `TERMINATOR` before `ELSE` (so we can differentiate single- and multi-line forms).
* Cleanup: Remove `WHEN` from `EXPRESSION_CLOSE`. (Only `LEADING_WHEN` tokens are preceded by a `TERMINATOR`.)
* Cleanup: Remove really old, inapplicable text from comment.
2013-07-30 19:31:46 +02:00
Jeremy Ashkenas
84b8b5ccee
CoffeeScript 1.6.3
2013-06-02 09:37:45 +04:00
Michael Ficarra
0f5ae54014
Merge pull request #2930 from marchaefner/Issue1057
...
Fixes #1057 : Allow catch/finally in single line functions.
2013-05-31 14:56:04 -07:00
Marc Häfner
40d2761bd8
Fixes #2916 -- implicit calls with preceding herecomment
2013-04-28 10:30:03 +02:00
Marc Häfner
69d66a1d4d
Fixes #1057 : Allow catch/finally in single line functions.
...
* Don't end single-line functions at `catch` or `finally`.
* Remove unused `IMPLICIT_BLOCK` and superfluous test for `IF`.
2013-04-15 20:20:52 +02:00
Marc Häfner
cf07fcb4b1
#2900 -- parameter-less catch clause.
...
Plus some minor cleanup after f8c6b494aa
2013-04-12 17:50:45 +02:00
Jeremy Ashkenas
566a7dabb2
Fixing erroneous whitespace fix in generated JS
2013-03-18 17:47:55 +08:00
Jeremy Ashkenas
a3e8de338a
CoffeeScript 1.6.2
2013-03-18 13:06:33 +08:00
Jeremy Ashkenas
2f5b11b295
Fixes #2555
2013-03-17 19:27:16 +08:00
Jeremy Ashkenas
de8ec2beb0
Fixes #1066 -- interpolated strings are not implicit funcs
2013-03-05 21:28:29 +13:00
Marc Häfner
dcd74d3e59
Clean up unused parameter.
2013-03-05 01:02:16 +01:00
Marc Häfner
74181c0ec0
Improve locationData of implicit object braces.
...
Set location of generated left brace to start of content, so the corresponding AST nodes don't span preceding spaces, blank lines or comments.
2013-03-05 00:12:51 +01:00
Jeremy Ashkenas
eef83a9fcb
CoffeeScript 1.6.1
2013-03-05 11:07:16 +13:00
Jeremy Ashkenas
9f614fedec
CoffeeScript 1.6.0
2013-03-05 08:19:08 +13:00
Troels Nielsen
37a6ea63b1
#2757 , Allow non-significant commas at end of nested implicit objects
2013-03-04 12:55:15 +01:00
Jeremy Ashkenas
b3452c1276
Fixes #2508 -- existential access of the prototype.
2013-03-04 22:07:47 +13:00
Jeremy Ashkenas
f33517368e
Removing duplicate 'CATCH'
2013-03-01 12:38:41 +13:00
Troels Nielsen
71e04d9839
Disallow implicit calls in cases like:
...
f
a
and only allow cases like:
f
a: 1
2013-02-28 23:20:42 +01:00
Troels Nielsen
cb187fd900
Fix implicit calls with try/catch/finally as arguments
2013-02-28 11:53:04 +01:00
Troels Nielsen
1666716c31
Improve the handling of implicit object and implicit call combinations
...
by handling them together.
2013-02-27 08:15:38 +01:00
Jeremy Ashkenas
af53c230a1
CoffeeScript 1.5.0
2013-02-25 21:12:22 +13:00
Jeremy Ashkenas
5e498ca395
merged
2013-02-25 17:41:27 +13:00
Jeremy Ashkenas
14c2a16833
Reverted b31cc70 -- putting Generated comment back up top. Why? Why not?
2013-02-25 17:17:01 +13:00
Jason Walton
c31bc6deb7
Update js files.
2013-02-06 10:40:48 -05:00
Jason Walton
fe45f1bf35
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
lib/coffee-script/grammar.js
lib/coffee-script/rewriter.js
src/grammar.coffee
src/rewriter.coffee
2013-02-06 10:29:19 -05:00
Jeremy Ashkenas
b31cc70235
Moving the 'generated by coffeescript version X' comment to the bottom, to get it out of the way
2013-02-02 10:42:46 +11:00
Jeremy Ashkenas
21d69e3e6e
Fixes #2617 -- implicit object call getting out of control.
2013-02-01 21:59:48 +11:00
Jason Walton
bbbf612f29
Put location data in token[2] instead of in token.locationData
2013-01-14 15:20:35 -05:00
Jason Walton
a1ba0a89f8
Merge remote-tracking branch 'origin/master'
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/lexer.js
lib/coffee-script/parser.js
src/lexer.coffee
2013-01-14 14:26:06 -05:00
Jason Walton
a9aa52dc6a
Use .explicit when deciding whether or not to add location data.
2013-01-14 13:38:31 -05:00
Jeremy Ashkenas
ba08a21d21
bumping version to 1.5.0-pre
2013-01-04 09:35:20 -10:00
Jason Walton
183e124077
Fix broken case for generated explicit indentation.
2012-11-22 14:22:38 -05:00
Jason Walton
12625cc00c
Add location data to tokens generated by the rewriter.
2012-11-19 11:34:09 -05:00
Jeremy Ashkenas
158d37215a
CoffeeScript 1.4.0
2012-10-23 16:45:31 -04:00
Michael Ficarra
972a5299d5
correct spacing around operators in slice output
2012-05-20 16:32:10 -04:00
Michael Ficarra
b8149812cd
fixes #2349 : inclusive slicing to numeric strings
2012-05-20 16:22:25 -04:00
Jeremy Ashkenas
79492aab36
CoffeeScript 1.3.3
2012-05-15 12:35:40 -04:00
Jeremy Ashkenas
7792a3a6e3
CoffeeScript 1.3.2
2012-05-14 14:45:20 -04:00
Michael Ficarra
caf3da2f66
lexer/parser: split out null and undefined from BOOL token
...
also made explicit AST nodes `Bool`, `Null`, and `Undefined`
2012-05-08 16:14:28 -04:00
Jeremy Ashkenas
6bcc798a76
Fixes #2207 -- unambiguous immediate implicit closes don't close implicit objects
2012-04-25 14:14:00 -04:00
Trevor Burnham
d58da49cee
Intermediate version bump to 1.3.2-pre
2012-04-23 13:34:04 -04:00
Michael Ficarra
f3a1f46679
fixes #2052 : don't manually assign constructors' name property
...
I'm not sure how we would test this, so... no tests.
2012-04-11 12:14:44 -04:00
Jeremy Ashkenas
60c9b94656
CoffeeScript 1.3.1 (quick bugfix for compound assignment to a global variable
2012-04-10 17:26:23 -04:00
Jeremy Ashkenas
ed8d94f69c
CoffeeScript 1.3.0
2012-04-10 14:57:45 -04:00