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
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
Jeremy Ashkenas
01b0cfc8ab
Merge pull request #1324 from TrevorBurnham/node-modules
...
Use `require.main` instead of loop to get main module
2011-05-15 17:04:40 -07:00
Jeremy Ashkenas
f3758e4af0
Fixes #1328
2011-05-15 19:59:52 -04:00
Jeremy Ashkenas
2563324ed8
merging #1353
2011-05-15 18:56:11 -04:00
Jeremy Ashkenas
d91ccd4003
Issue #1354 , 'in' with splatted arrays.
2011-05-15 18:50:04 -04:00
Jeremy Ashkenas
15ddb8e2ea
simplifying some string interpolation in Range#compileNode
2011-05-15 17:07:59 -04:00
Jeremy Ashkenas
c056c93e19
Issue #1356 ... range comprehension optimization when a step is present.
2011-05-15 17:05:05 -04:00
Jeremy Ashkenas
9e32a5bfa1
fixing implicit invocations against inline try/catch.
2011-05-15 15:04:29 -04:00
Jeremy Ashkenas
cd5c41f351
Issue #1364 , implicit calls against control structures.
2011-05-15 10:41:41 -04:00
Jeremy Ashkenas
b780d707ab
fixing over whitespace-ing from the previous commit.
2011-05-15 10:16:46 -04:00
Jeremy Ashkenas
84ae563368
Merge branch 'master' of github.com:jashkenas/coffee-script
2011-05-15 10:08:55 -04:00
Jeremy Ashkenas
dddc7c6edb
Issue #1368 , block comment formatting.
2011-05-15 10:08:31 -04:00