Jeremy Ashkenas
5ab892d009
Merge pull request #1426 from jashkenas/documentationInterpolations
...
promote the use of interpolation in the documentation
2011-07-06 17:52:32 -07:00
Michael Ficarra
54dbc0fdf8
allow Ctrl-C to escape an unwanted continuation prompt
2011-07-06 17:00:13 -04:00
Michael Ficarra
003f91d43d
Made line continuations in the REPL much, much nicer and moved all of
...
the REPL-specific code out of CoffeeScript.eval and into the REPL
function (thanks for the suggestion, @TrevorBurnham)
2011-07-06 16:36:07 -04:00
Jeremy Ashkenas
83806a4d77
Merge branch 'master' of github.com:jashkenas/coffee-script
2011-07-06 16:06:47 -04:00
Jeremy Ashkenas
c4324f1db2
fixes issue #1490 ... jsl.conf is incorrectly npmignored.
2011-07-06 16:06:17 -04:00
Michael Ficarra
b9c3e0e640
More accurately emulating node's REPL behaviour with regard to _
...
assignment. Also addresses `i for i in [1..3]` regression introduced by
fff4c9c672 and noticed by @satyr
2011-07-06 13:06:18 -04:00
Michael Ficarra
60e51a238d
output a newline before exiting REPL
2011-07-06 13:05:07 -04:00
Michael Ficarra
fff4c9c672
Fixes #1035 , #1425 , and #1444 : (another) overhaul of REPL and
...
CoffeeScript.eval. Instead of writing about all the changes and why I
made those decisions, I'll just answer any questions in the commit
comments, so add a commit comment if you want to question anything.
Thanks to @TrevorBurnham and @satyr for their help/contributions. Also,
closes #1487 . And still no REPL tests...
2011-07-06 03:54:36 -04:00
Jeremy Ashkenas
18ab569b2d
Merge branch 'master' of github.com:jashkenas/coffee-script
2011-07-01 08:30:38 -04:00
Jeremy Ashkenas
2951d34dc0
fixes #1478 , documentation.
2011-07-01 08:30:12 -04:00
Michael Ficarra
0cc5379caa
improved test for #1436
2011-06-30 12:15:00 -04:00
Michael Ficarra
f6fcfa831c
Merge branch 'bugfix-1436' of git://github.com/thejh/coffee-script into thejh_1448
2011-06-30 11:53:24 -04:00
Michael Ficarra
c93fc3ec76
Merge branch 'master' of github.com:jashkenas/coffee-script
2011-06-30 11:46:32 -04:00
Michael Ficarra
7b5f012f79
improved tests for #1416 , fixed accidental scope leak in test for #1420
2011-06-30 11:35:29 -04:00
Timothy Jones
22cee5d2d6
Fixes #1461 . Existential assignment now correctly reports if it is a statement.
2011-06-29 18:54:23 -04:00
Timothy Jones
0f18dff464
Fixes #1467 . Catch now introduces its parameter to scope.
2011-06-29 18:54:23 -04:00
Timothy Jones
e38aeefb5c
Fixes #1461 . Existential assignment now correctly reports if it is a statement.
2011-06-26 03:08:38 +12:00
Timothy Jones
baa983ac33
Fixes #1467 . Catch now introduces its parameter to scope.
2011-06-26 02:34:52 +12:00
Josh Goebel
cd65c66cf9
combine conditions
2011-06-23 06:54:06 -04:00
Josh Goebel
dc272a680b
compileJoin should happen once after all files are read
2011-06-23 04:42:12 -04:00
ngn
6f64fc266d
added one more test for #1150
2011-06-22 19:42:07 +03:00
Jann Horn
73af3b17b1
second part of fixing #1416
2011-06-21 16:42:53 +02:00
Jann Horn
8b2884e40f
added another test for #1416
2011-06-21 16:42:20 +02:00
Jann Horn
f0c22f390d
fixes #1416 : don't omit one 'new' when compiling 'new new'
2011-06-20 18:38:29 +02:00
Jann Horn
11f2cd4515
test for #1416 : don't omit one 'new' when compiling 'new new'
2011-06-20 18:38:07 +02:00
ngn
5ce7984a2b
Another attempt to fix #1150
...
Here's how the algorithm in balancedString() was modified. When we
encounter a slash in an interpolation, we:
* try to find a heregex right after it; if found---skip it. Three
slashes always terminate a heregex, no matter if there is an open
"#{" before them or not, so we don't have to bother about
sub-interpolations inside the heregex.
* try to find a regex right after it; if found---skip it. Simple
regexen can't contain interpolations.
* otherwise, assume that the slash means division and carry on.
2011-06-19 20:05:38 +03:00
Jann Horn
9699059226
fixed #1436
2011-06-19 10:49:41 +02:00
Jann Horn
9941c3f045
added a test for #1436 , for etc. should work as normal property names
2011-06-19 10:49:19 +02:00
Michael Ficarra
25e7eeac8f
Revert "Merge https://github.com/ngn/coffee-script "
...
This reverts commit 277e82bd03 , reversing
changes made to 0f523de212 .
2011-06-17 11:53:48 -04:00
Michael Ficarra
277e82bd03
Merge https://github.com/ngn/coffee-script
2011-06-17 11:32:08 -04:00
Michael Ficarra
a1f1afe3ed
fixes #1442 : javascript literals should increase line count when they
...
contain newlines
2011-06-17 11:26:39 -04:00
ngn
0f523de212
Fix for #1150 : String interpolation regression
2011-06-15 20:34:12 +03:00
Michael Ficarra
47f12c453a
subliminally promoting the use of interpolation in the documentation
2011-06-08 19:38:12 -04:00
Michael Ficarra
dfcff3f0fc
adding regression test for #1420 ; also cleaned up a little trailing
...
whitespace in the function invocation tests
2011-06-07 04:10:40 -04:00
Michael Ficarra
522f2ee3b3
fixes #1420 : (fn() ->) by causing the Lexer::tagParameters method to
...
give up looking for a parameter list when it saw a `CALL_START` token.
2011-06-07 03:58:36 -04:00
Michael Ficarra
8ce1fdb5bb
enhancement for fix to #1409 : when compiling as an array, ranges can't
...
have been given steps (would be a SyntaxError) ... yet
2011-06-02 09:28:13 -04:00
Michael Ficarra
a0efdac8ce
removed trailing whitespace in source files
2011-06-02 02:00:47 -04:00
Michael Ficarra
22bc54f974
fixes #1409 : creating large ranges outside of a function body
2011-06-02 01:50:31 -04:00
Michael Ficarra
e240621a72
test for #1409
2011-06-02 01:49:28 -04:00
Michael Ficarra
35c2a72ad2
REPL blank line fix
2011-06-02 01:34:55 -04:00
Michael Ficarra
10ec1a659f
fixes #1398 : comments in the REPL
2011-05-28 22:39:27 -04:00
Jeremy Ashkenas
1fb34e42a6
Revert "fixed condext during construction of bound functions; now using native"
...
This reverts commit 8d6e33c2cf .
2011-05-28 18:58:48 -04:00
Jeremy Ashkenas
7082000e66
Revert "switched to canonical two-space indentation in __bind helper"
...
This reverts commit 6a40807330 .
2011-05-28 18:58:38 -04:00
Jeremy Ashkenas
79fff367c2
Revert "__bind helper: caching ctor"
...
This reverts commit 9cbf2a82ec .
2011-05-28 18:58:28 -04:00
Michael Ficarra
9cbf2a82ec
__bind helper: caching ctor
2011-05-27 18:41:31 -04:00
Michael Ficarra
6a40807330
switched to canonical two-space indentation in __bind helper
2011-05-27 18:18:22 -04:00
Michael Ficarra
8d6e33c2cf
fixed condext during construction of bound functions; now using native
...
Function::bind when it is available. related: #1363
2011-05-27 18:03:57 -04:00
Michael Ficarra
085874d5f3
hopefully the last enhancement for my #1380 fix
2011-05-25 12:57:45 -04:00
Michael Ficarra
94fb7e32ea
removing accidentally-committed console.log
2011-05-25 04:22:03 -04:00
Michael Ficarra
042f7ec791
enhancement for #1380 fix
2011-05-25 04:10:50 -04:00