Michael Ficarra
bb1502a9d7
output a newline before exiting REPL
2011-07-06 22:15:35 -04:00
Michael Ficarra
40ee30ecde
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 22:15:35 -04:00
Jeremy Ashkenas
4ff00359b6
fixes #1478 , documentation.
2011-07-06 22:15:35 -04:00
Michael Ficarra
f433fa4187
improved test for #1436
2011-07-06 22:15:35 -04:00
Michael Ficarra
594ead00e8
improved tests for #1416 , fixed accidental scope leak in test for #1420
2011-07-06 22:15:35 -04:00
Timothy Jones
5adf3b8865
Fixes #1461 . Existential assignment now correctly reports if it is a statement.
2011-07-06 22:15:35 -04:00
Timothy Jones
4fc52cd08e
Fixes #1467 . Catch now introduces its parameter to scope.
2011-07-06 22:15:35 -04:00
Jann Horn
4af47f0c26
second part of fixing #1416
2011-07-06 22:15:35 -04:00
Jann Horn
9d3510a1e4
added another test for #1416
2011-07-06 22:15:35 -04:00
Jann Horn
18f6ad9583
fixes #1416 : don't omit one 'new' when compiling 'new new'
2011-07-06 22:15:35 -04:00
Jann Horn
4c70ea5e09
test for #1416 : don't omit one 'new' when compiling 'new new'
2011-07-06 22:15:35 -04:00
Jann Horn
d32c060e05
fixed #1436
2011-07-06 22:15:35 -04:00
Jann Horn
caa3d1ab5d
added a test for #1436 , for etc. should work as normal property names
2011-07-06 22:15:34 -04:00
Michael Ficarra
d3e809da38
subliminally promoting the use of interpolation in the documentation
2011-07-06 22:15:34 -04:00
ngn
6f64fc266d
added one more test for #1150
2011-06-22 19:42:07 +03: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
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
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
Michael Ficarra
e4f47a05f6
merging @TrevorBurnham's pull request #1314 , enhancing CS.eval; closes #1314
2011-05-25 03:53:51 -04:00
Michael Ficarra
bbf37e5229
Merge pull request #1388 from johnyanarella/master
...
'coffee' silently fails with no output when the --join option is specified and the source files specified include directories
2011-05-25 00:47:05 -07:00
Michael Ficarra
454aa8433b
fixes #1390 : persistence of non-enumerable global properties in the REPL
2011-05-25 03:43:10 -04:00
Michael Ficarra
bbf1c6a8df
fixes #1380 : super with reserved names
2011-05-25 03:22:26 -04:00
Michael Ficarra
8e5eff5e1e
test for #1380
2011-05-25 03:22:06 -04:00
Michael Ficarra
e64fa71185
fixes #1372 : bound class methods with reserved names
2011-05-24 16:49:45 -04:00
Michael Ficarra
c8845643e5
fixes #1385 : property access on parenthesized number literals
2011-05-24 16:27:07 -04:00
John Yanarella
371ff5e726
Fixed silently failing command line --join functionality when directories are specified for compilation.
2011-05-24 15:01:35 -04:00
Michael Ficarra
19520d8d35
merging in @fjakobs's heregex line number fix; closes #1374
2011-05-19 13:59:58 -04:00
Fabian Jakobs
abb11a7c0e
fix line numbers after heregexps
2011-05-16 19:56:29 +02:00
Michael Ficarra
2ac74356bd
cleaned up and optimized fix for #1354 ( d91ccd4003)
2011-05-15 21:46:35 -04:00
Jeremy Ashkenas
004f13f0fc
Merge pull request #1346 from adam-f/fixedsplatscope
...
Fixed improper scoping of siblings to the splat argument.
2011-05-15 17:13:50 -07:00
Adam Freidin
395a97ef07
removing unimportant changes for easy pull.
2011-05-15 17:11:02 -07:00