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
1666716c31
Improve the handling of implicit object and implicit call combinations
...
by handling them together.
2013-02-27 08:15:38 +01: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
Jeremy Ashkenas
af53c230a1
CoffeeScript 1.5.0
2013-02-25 21:12:22 +13:00
Jeremy Ashkenas
14c2a16833
Reverted b31cc70 -- putting Generated comment back up top. Why? Why not?
2013-02-25 17:17:01 +13: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
Michael Ficarra
be9707f8d2
final tweaks to REPL rewrite
...
We can still use some more extensive tests, but it's already much better
tested than the current REPL.
2013-01-26 02:07:56 -06:00
Alon Salant
47bd05e9a0
REPL tests based on direct interaction with input and output stream. Includes multiline tests.
2013-01-21 21:56:34 -08:00
Michael Ficarra
537c5f4b70
fix some issues pointed out in 041033a51a
2013-01-21 10:27:52 -06:00
Michael Ficarra
041033a51a
finish multiline support for REPL rewrite
2013-01-21 00:43:08 -06:00
Alon Salant
4a52814a79
Multiline WIP
2013-01-18 11:33:04 -08:00
Alon Salant
d84cd9466e
empty command evaluates to undefined
2013-01-15 22:40:41 -08:00
Alon Salant
627b921bca
Initial commit of REPL based on node's REPLServer
2013-01-15 22:40:40 -08:00
Jeremy Ashkenas
ba08a21d21
bumping version to 1.5.0-pre
2013-01-04 09:35:20 -10:00
Jeremy Ashkenas
158d37215a
CoffeeScript 1.4.0
2012-10-23 16:45:31 -04:00
Lucas Stadler
01d4e87f57
fix repl completion and navigation
...
The readline interface of node has changed in [aad12d0][] and because of
that the autocompletion and key movement didn't work anymore. This
commit fixes this by checking whether stdin is in raw mode (i.e. invoked
as a script) or not (as a repl).
[aad12d0]: https://github.com/joyent/node/commit/aad12d0
2012-05-20 11:38:50 +02:00
Michael Ficarra
f938a213fe
trying to commit built files again; here goes nothing
2012-05-16 15:50:34 -04:00
Michael Ficarra
df54c63b1b
yet another small cleanup and obscure bugfix related to #2333
2012-05-16 15:29:00 -04:00
Michael Ficarra
5c66e552d7
corrected some SIGINT/EOT logic in REPL
2012-05-15 13:15:23 -04:00
Michael Ficarra
c4ebe352a4
more changes to REPL autocompletion as suggested in 8dcbe54e55
2012-05-15 12:48:02 -04:00
Jeremy Ashkenas
79492aab36
CoffeeScript 1.3.3
2012-05-15 12:35:40 -04:00
Michael Ficarra
8dcbe54e55
Fixes broken autocompletion from 8bc6001d27
...
8bc6001d27 removed autocompletions of
non-enumerable own-properties in trying to add enumerable prototype
properties to the autocompletions. This commit adds them back and unions
them with the enumerable prototype properties.
2012-05-15 02:25:28 -04:00
Michael Ficarra
dac24a3d8a
small refactoring of 66c751be11
2012-05-14 21:07:54 -04:00
Michael Ficarra
66c751be11
fixed REPL to allow streamed input from stdin
2012-05-14 15:55:51 -04:00
Jeremy Ashkenas
7792a3a6e3
CoffeeScript 1.3.2
2012-05-14 14:45:20 -04:00
Jeremy Ashkenas
8bc6001d27
Fixes #2280 -- add enumerable prototypal properties to autocompletion.
2012-04-24 16:26:07 -04:00
Trevor Burnham
d58da49cee
Intermediate version bump to 1.3.2-pre
2012-04-23 13:34:04 -04:00
Michael Ficarra
08673261b1
comments in the REPL should have no output, not undefined
2012-04-11 11:43:31 -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
Michael Ficarra
53fe10e4ad
REPL once again permits indented expressions
2012-04-05 21:33:15 -04:00
Michael Ficarra
b4e1e54cf7
fixes #2239 : REPL didn't accept expressions that were just comments
2012-04-05 18:10:05 -04:00
Jeremy Ashkenas
7c1f4b38f4
start with 1, then 2 for reused vars.
2012-02-29 23:46:03 -05:00
Ken Gregson
cb0003d894
Issue #2105 refined
...
Fix updated as suggested by michaelficarra
2012-02-05 19:40:29 -05:00
Ken Gregson
7becf808c7
Issue #2105
...
Make REPL continuation work better. Check for trailing "\" fails when
run function is called with buffer terminated by newline. Chomp'ing
buffer to remove newline fixes this issue.
2012-02-05 19:12:33 -05:00
Michael Ficarra
233cd27d70
rebuilding REPL with newest CS compiler
2012-01-16 19:22:31 -05:00
Michael Ficarra
0bf488ea49
fixes #2001 : spoof a REPL readline interface to handle piped REPL input
2012-01-16 19:20:24 -05:00
Gerald Lewis
bf8e0aa1ea
Issue #1547 'use strict' style tweaks, cleanup, and compiled output
2012-01-16 17:35:21 -05:00
Trevor Burnham
11342ef97b
Rebuilding -> our JS files now include the generated header
2012-01-10 12:55:41 -05:00
Michael Ficarra
642fcbbbfe
Last commit accidentally broke autocompletion. Fixed.
2012-01-03 18:21:26 -05:00
Michael Ficarra
58bb6725e4
fixes #1979 : add multiline support to the REPL; press Ctrl-v to activate
2012-01-03 14:56:17 -05:00
Michael Ficarra
c8059a752f
fixes #1976 : minor REPL tab completion bug fixes
2011-12-27 00:45:29 -05:00
Jeremy Ashkenas
c9a0a33fa2
reverting 63ab88
2011-12-14 10:39:20 -05:00
Michael Ficarra
63ab886e9f
removed excessive spacing
2011-12-10 21:19:59 -05:00
Michael Ficarra
1c86aee7a4
joyent/node#1914 : REPL no longer hides undefined results
2011-11-05 10:35:27 -04:00
Trevor Burnham
3f4daaf2ad
Whoops, mergefail; corrected
2011-10-23 22:45:32 -04:00
Michael Ficarra
a2c593bc2c
too many newlines after errors in the REPL
2011-09-19 02:18:42 -04:00
Jeremy Ashkenas
d2b0404188
big whitespace / readability change. join top level block with extra newlines, and class definitions as well.
2011-09-18 17:16:39 -05:00