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
Jeremy Ashkenas
2970d59395
Merge pull request #2743 from epidemian/revert-2599
...
Revert #2599
2013-02-28 13:53:34 -08:00
Jeremy Ashkenas
23d8cd6c2a
Merge branch 'master' of https://github.com/jashkenas/coffee-script
2013-03-01 07:46:04 +13:00
Jeremy Ashkenas
e70dd156b0
Fixing heredocs in literate coffeescript
2013-03-01 07:42:12 +13:00
Demian Ferreiro
4469d062e1
Add a couple of tests to document the behaviour of other typed constructors
2013-02-28 10:37:47 -03:00
Demian Ferreiro
bf70b4660e
Revert #2599
2013-02-28 10:37:30 -03:00
Jeremy Ashkenas
c0e07013e8
Merge pull request #2741 from troels/implicit-call-try-catch-finally
...
Fix implicit calls with try/catch/finally as arguments
2013-02-28 03:00:49 -08:00
Jeremy Ashkenas
c6f30935a8
(Aside: For historical reasons we do make the filename extension optional, which is a deeply regrettable accident of history that I would not repeat, given the chance.)
2013-02-28 23:54:19 +13:00
Troels Nielsen
cb187fd900
Fix implicit calls with try/catch/finally as arguments
2013-02-28 11:53:04 +01:00
Jeremy Ashkenas
3f23be2854
Merge pull request #2718 from sbp/sbp-literate
...
Add support for text/literate-coffeescript in the browser
2013-02-28 02:47:43 -08:00
Sean B. Palmer
881ae5528d
Add support for text/literate-coffeescript in the browser
2013-02-28 10:15:20 +00:00
Jeremy Ashkenas
32eb1bf58f
Merge pull request #2740 from mintplant/hoist-build
...
Hoist build function to top level of Cakefile
2013-02-27 22:27:01 -08:00
Michael Smith
b2e17c3045
Hoist build function to top level of Cakefile
2013-02-27 22:21:10 -08:00
Jeremy Ashkenas
ac2c5f0201
Merge pull request #2712 from troels/implicit-object-implicit-call-stuff
...
Implicit object/implicit call interaction handling
2013-02-27 17:32:31 -08: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
Michael Ficarra
965237e0da
Merge pull request #2725 from mintplant/repl-fix
...
Fix REPL crashing on execution error
2013-02-26 08:20:36 -08:00
Michael Smith
5698e425fd
Use blank line regex from Redux
2013-02-26 08:08:47 -08:00
Michael Smith
ff1ddd0284
Fix repl handling of blank line
...
Since the move to the nodeREPL package, input lines to be evaluated are
now wrapped in parentheses; that is:
'foo'
would become:
('foo'
)
The old way of detecting empty lines was to see if the input string was
either totally empty, or whitespace-only. The addition of these
parentheses breaks that.
In order to fix this, we simply tweak the regex a little to ignore these
added parentheses if they're present. As an added bonus, the regex
should match empty inputs even if they aren't.
This also makes the "empty command evaluates to undefined" test pass,
for the right reasons (i.e. not because of the broken error behavior
from before).
2013-02-25 22:09:50 -08:00
Michael Smith
deaa31dca5
Prevent repl from crashing on error [ Fixes #2716 ]
...
Move execution of the compiled code inside the try/catch block:
try
js = CoffeeScript.compile "_=(#{input}\n)", {filename, bare: yes}
catch err
cb err
> cb null, vm.runInContext(js, context, filename)
try
js = CoffeeScript.compile "_=(#{input}\n)", {filename, bare: yes}
> cb null, vm.runInContext(js, context, filename)
catch err
cb err
2013-02-25 22:08:01 -08:00
Michael Ficarra
8b0dd9d224
Merge pull request #2719 from epidemian/minor-embellishments
...
Minor embellishments
2013-02-25 10:35:25 -08:00
Demian Ferreiro
dcdfe9bc34
Fix indentation on test
2013-02-25 14:15:24 -03:00
Demian Ferreiro
f609036bee
Remove unnecessary returns and use default parameters
2013-02-25 10:44:56 -03:00
Jeremy Ashkenas
c39723c053
expanding literate explanation
2013-02-25 22:29:42 +13:00
Jeremy Ashkenas
d2f400944d
Adding a negative array loop example to the docs
2013-02-25 22:27:06 +13:00
Jeremy Ashkenas
673125e64a
Merge branch 'master' into gh-pages
2013-02-25 21:23:24 +13:00
Jeremy Ashkenas
e1592890cb
Retina-ifying the CoffeeScript logo
2013-02-25 21:23:08 +13:00
Jeremy Ashkenas
f1b5f81eaf
merged
2013-02-25 21:13:39 +13:00
Jeremy Ashkenas
af53c230a1
CoffeeScript 1.5.0
1.5.0
2013-02-25 21:12:22 +13:00
Jeremy Ashkenas
ac9d0e17e4
Merging in location data in the AST. Yee-hah.
2013-02-25 17:51:05 +13:00
Jeremy Ashkenas
5e498ca395
merged
2013-02-25 17:41:27 +13:00
Jeremy Ashkenas
5c3acfefeb
Removing Riak JS
2013-02-25 17:36:56 +13:00
Jeremy Ashkenas
9b63e806dd
#2702 -- remove more dead code
2013-02-25 17:34:14 +13:00
Jeremy Ashkenas
bd842241a6
#2702 -- remove dead code
2013-02-25 17:33:27 +13:00
Jeremy Ashkenas
3815f0a132
#2702 -- remove old code
2013-02-25 17:32:51 +13:00
Jeremy Ashkenas
d43b50b1ca
Merge branch 'master' of https://github.com/jashkenas/coffee-script
2013-02-25 17:17:07 +13:00
Jeremy Ashkenas
14c2a16833
Reverted b31cc70 -- putting Generated comment back up top. Why? Why not?
2013-02-25 17:17:01 +13:00
Michael Ficarra
5ae9c5d947
compile a320e1e535
2013-02-24 21:12:57 -06:00
Michael Ficarra
2402f9774a
Revert "Moving the 'generated by coffeescript version X' comment to the bottom, to get it out of the way"
...
This reverts commit b31cc70235 .
2013-02-24 21:11:43 -06:00
Michael Ficarra
3d3fe0df34
Merge pull request #2711 from troels/fix-1435
...
Fix #1435 by amending away sign reversal.
2013-02-24 11:58:41 -08:00
Troels Nielsen
a320e1e535
Fix #1435 by amending away sign reversal.
2013-02-24 20:33:58 +01:00
Michael Ficarra
8f0a7774f9
Merge pull request #2710 from troels/fix-full-build-tests
...
Build:full sometimes uses old code when running tests.
2013-02-24 11:33:54 -08:00
Troels Nielsen
7f8b56eadd
Use the newly compiled code when running tests under build:full
2013-02-24 18:08:54 +01:00
Michael Ficarra
385d93e332
Merge pull request #2709 from epidemian/minor-embellishments
...
Minor embellishments
2013-02-23 03:39:34 -08:00
Demian Ferreiro
9ed804d9b1
Simplify Value::unfoldSoak momoization code (only a bit...)
2013-02-23 08:26:10 -03:00
Demian Ferreiro
03cfe23493
Remove unnecessary if statement
2013-02-23 08:24:04 -03:00
Demian Ferreiro
a97c23a4bd
Make it more explicit that 'this' is the only possible value for tag in Value's constructor.
2013-02-23 06:34:11 -03:00
Jason Walton
e1a2e11de4
Fix merge problem, and rebuild parser.js
2013-02-21 20:17:06 -05:00
Jason Walton
5e49df8ed4
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
lib/coffee-script/grammar.js
src/grammar.coffee
2013-02-14 14:21:46 -05:00
Jeremy Ashkenas
fa1ffa66d3
Fixes #2359 -- tweak grammar to use new name
2013-02-14 16:34:32 +13:00
Jeremy Ashkenas
1aa57bf24f
moving book link to the proper place to be rebuilt
2013-02-13 10:35:21 +13:00