satyr
2c84f3ed1f
removed helpers.{indexOf,include} in favor of in operator
2010-10-20 12:20:10 +09:00
satyr
90a13bd791
compound assignments are now represented as Assign nodes (rather than Op) and have the same precedence as =
2010-10-20 09:50:42 +09:00
Trevor Burnham
5005cb606f
Fixing inconsistencies for index variables
...
See the tests added to test_comprehensions.coffee. Previously, after
`for i in [1..3]`, i was 4. Also, index variables were never set to
any value in comprehensions containing both a closure and a break or
return.
2010-10-19 14:09:16 -04:00
Timothy Jones
0e395569ee
Fixing #761 . p -1 now translates to p(-1), not p - 1. Same with +.
2010-10-20 04:52:07 +13:00
Timothy Jones
7b1902183c
Just catch alls for inner scoping now.
2010-10-20 03:53:38 +13:00
Timothy Jones
d9cd75c426
Fixing #773 . Statements cannot be wrapped in parens (as in JS).
2010-10-19 19:32:23 +13:00
satyr
55794d9534
nodes: soaking Call now converts to If using the same logic as soaking Accessor
2010-10-17 13:19:51 +09:00
satyr
88cc1ee35d
765: -b/--bare <- --no-wrap
2010-10-14 04:09:56 +09:00
Michael Ficarra
6e89ad3401
test case for #768
2010-10-13 12:12:24 -04:00
satyr
cb2a7f0820
simplified splatting new compilation
2010-10-12 21:48:25 +09:00
satyr
8f29574b16
764: made boolean/number/regex indexable
2010-10-12 19:30:10 +09:00
satyr
43613498db
Merge branch '542'
2010-10-12 11:29:33 +09:00
satyr
ac841ca4e9
nodes: object literals are now parenthesized based on @tags.front (which indicates if the node leads an expression statement), fixing #542
2010-10-12 11:26:55 +09:00
satyr
95d86758ee
test.html: string_interpolation -> strings
2010-10-12 10:34:31 +09:00
satyr
ed79715841
stripped out strings/regexes from test_literals; test_string_interpolation is now test_string
2010-10-12 09:35:59 +09:00
satyr
b01d7db409
merged test_blocks into test_functions
2010-10-12 08:54:36 +09:00
Jeremy Ashkenas
2642fde0f8
merging in the browser test suite.
2010-10-11 18:22:01 -04:00
satyr
f682bf642f
followup to #717 ; made new => actually work
2010-10-12 07:02:04 +09:00
satyr
5ed69a5a58
added test.html that runs most of test/*.coffee in browsers
2010-10-12 06:53:20 +09:00
Jeremy Ashkenas
a4b6b2464c
merging in sstephenson's test:browser
2010-10-11 16:55:17 -04:00
Sam Stephenson
967fec2ae5
Merge branch 'master' into newline-splat
...
Conflicts:
lib/lexer.js
lib/parser.js
src/lexer.coffee
2010-10-11 12:12:13 -05:00
Sam Stephenson
f360fba47f
Add test:browser task for running the test suite against the merged browser script.
2010-10-11 09:42:13 -05:00
satyr
9c55bd59a1
fixed a bug where while condition was compiling as statement
2010-10-11 20:29:08 +09:00
satyr
e89d7a7756
lexer: fixed a regression where assignmentError wasn't fired
2010-10-11 19:10:30 +09:00
Sam Stephenson
20a07c174c
Fixing splats after newlines - #754 .
2010-10-10 11:34:22 -05:00
Sam Stephenson
6e6165796c
noWrap: true -> wrap: false
2010-10-10 11:55:01 -04:00
Jeremy Ashkenas
f6ca5d814c
Issue #748 -- trailing reserved idenitifer.
2010-10-10 11:42:25 -04:00
Jeremy Ashkenas
9c54291d04
Merge branch 'master' of github.com:jashkenas/coffee-script
2010-10-10 11:29:29 -04:00
Jeremy Ashkenas
e8d592cdc6
Fixing issue #751 ... implicit number arguments within implicit object literals.
2010-10-10 11:29:14 -04:00
satyr
b0e34edf99
soak accesses no longer consume corresponding operators
2010-10-10 07:10:20 +09:00
satyr
ebdd57a2fe
rewriter: detectEnd no longer passes undefined as token, fixing #750
2010-10-09 04:00:07 +09:00
Jeremy Ashkenas
b21057d166
fixing issue #745 ... precedence of huh operator.
2010-10-07 22:22:33 -04:00
Jeremy Ashkenas
13774cf48a
empty returns no longer return null
2010-10-06 22:24:52 -04:00
Jeremy Ashkenas
59d6e59f97
Fixing Issue 730 -- and removing garbage collection of tempvars (which was totally unsafe.)
2010-10-06 20:54:08 -04:00
Jeremy Ashkenas
69b901a5b6
Fixing Issue #744 -- you can now use reserved words as static properties of a class.
2010-10-06 20:07:19 -04:00
satyr
2e6b50335f
lexer now distinguishes between IN/OF and FORIN/FOROF to help grammar, fixing #737
2010-10-06 04:46:17 +09:00
satyr
380bee97dd
nagated relational operators are now grouped into NOT_RELATED, fixing #720
2010-10-06 00:43:44 +09:00
Jeremy Ashkenas
08388fea5a
testing issue 584
2010-10-05 00:16:55 -04:00
Jeremy Ashkenas
8bc706a94e
Merging in heregexes
2010-10-05 00:11:28 -04:00
satyr
0ada1dfc3f
follow-up to d1bca636; fixed unrolling of the single case ({@a} = o -> @a = o.a)
2010-10-05 12:04:44 +09:00
Jeremy Ashkenas
9fd031c896
tweaking the previous commit's test.
2010-10-04 22:12:30 -04:00
Jeremy Ashkenas
e14737dd88
tweaking the previous commit's test.
2010-10-04 22:12:22 -04:00
Jeremy Ashkenas
d1bca6364a
Enchancing pattern matching with @vars ... issue #721
2010-10-04 22:10:10 -04:00
satyr
d85910c17f
made catch optional
2010-10-05 05:53:32 +09:00
satyr
42a91219cb
fixed over-escaping in here documents and addressed Stan's comments
2010-10-05 03:47:50 +09:00
satyr
cdd033ffb0
disabled interpolations in normal regexes
2010-10-04 21:51:04 +09:00
satyr
493fa7d8fe
heregex: now allows bare slashes and empty body
2010-10-04 11:55:49 +09:00
satyr
c605b3e232
first stub at heregex
2010-10-04 08:22:42 +09:00
satyr
ae55c70ac5
647: fixed quote/newline escaping in here documents
2010-10-03 07:50:41 +09:00
satyr
769870b493
[x] = [y] = [1] works again
2010-10-02 21:49:21 +09:00