Timothy Jones
c3582d4058
One character fix, for the sake of consistency.
2010-10-20 08:57:23 +13:00
Timothy Jones
37d9204ad9
Tidying inArray utility.
2010-10-20 08:47:34 +13:00
Timothy Jones
a3500e807a
Avoids unnecessary temporary in comprehensions with pure statements in them.
2010-10-20 07:57:40 +13:00
Timothy Jones
1442262376
Merge branch 'master' of http://github.com/TrevorBurnham/coffee-script into trevor
2010-10-20 07:43:07 +13:00
Trevor Burnham
33ac70aec3
Whitespace fix for unstepPart (thanks, Tesco)
2010-10-19 14:24:38 -04: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
Stéphan Kochen
c458346593
In compileScripts, run base through path.join.
...
Allows `path.join` to do some processing on the base path
that was also happening on the full path.
Fixes: `coffee -o ./ ./`
Still broken: `coffee -o . .`
2010-10-19 18:36:27 +02:00
Timothy Jones
c64e8d4b53
Added the __inArray helper to clean up code and speed up searches.
2010-10-20 05:34:03 +13:00
Stéphan Kochen
e5dfa19ec9
Report errors when writing files in coffee.
2010-10-19 18:30:29 +02: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
cf5a086263
Removing accidental superfluous temp variables.
2010-10-20 04:07:10 +13:00
Timothy Jones
d14ba6ac53
Fixed comprehension magic's scoping.
2010-10-20 03:59:01 +13:00
Timothy Jones
7b1902183c
Just catch alls for inner scoping now.
2010-10-20 03:53:38 +13:00
Timothy Jones
cb6be74851
Fixing for magic scoping issues. Small steps at a time.
2010-10-20 02:51:52 +13:00
Timothy Jones
c8b9c5a54e
Fixing #774 . Strict equality operator, which wasn't supported in the grammar anyway, is removed from the lexer.
2010-10-19 20:56:55 +13:00
Timothy Jones
fd268a0479
Fixed #763 . SimpleAssignables are now the only possible recepients of ++, -- and compound assignments.
2010-10-19 20:48:39 +13:00
Timothy Jones
648d6432eb
Fixing #700 . Block comment for constructor now appears above the constructor declaration.
2010-10-19 20:39:58 +13:00
Timothy Jones
df46fb8c68
Fixing #600 . JS statements that must be expressions but contain pure statements cause syntax errors.
2010-10-19 20:02:21 +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
87560d943c
lexer: made REGEX more efficient
2010-10-18 07:43:29 +09:00
satyr
8d0a0e8ab1
nodes: Value.unfoldSoak -> If.unfoldSoak
2010-10-17 13:53:02 +09: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
1ea38d2f93
fixing #768 , preserving execution order of in arguments when compiled
...
to an `or`.
2010-10-13 12:10:36 -04:00
satyr
1d4d7e96fa
quit using sp?licing ranges
2010-10-13 05:47:45 +09:00
satyr
67eb966a75
stripped a line from __extends
2010-10-13 04:57:11 +09: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
c0ec479e60
browser: exposed require for debugging
2010-10-12 17:10:39 +09:00
satyr
54101a1c9b
lexer: reorganized JS_KEYWORDS
2010-10-12 16:25: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
e5fe145f80
destructuring assignment no longer uses a temporary variable for simple LHS
2010-10-12 07:58:11 +09:00
satyr
f682bf642f
followup to #717 ; made new => actually work
2010-10-12 07:02:04 +09:00
Jeremy Ashkenas
a4b6b2464c
merging in sstephenson's test:browser
2010-10-11 16:55:17 -04:00
Jeremy Ashkenas
4f89245570
NEXT_ELLPSIS.test
2010-10-11 16:34:16 -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
Jeremy Ashkenas
acc06d772a
Back four commits ... Fixing named function expressions -> function declarations for IE. (grumble grumble)
2010-10-11 12:13:01 -04: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
Jeremy Ashkenas
bfed78a996
rebuilding lexer
2010-10-11 08:06:27 -04: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
satyr
41cd0c272b
grouped TRUE/FALSE/NULL into BOOL
2010-10-11 17:05:50 +09:00
satyr
6506f6d99e
grammar: removed extra arrays
2010-10-11 16:06:29 +09:00
satyr
fffa01933d
fixed misdentation in a?.b = c
2010-10-11 12:31:54 +09:00
satyr
acafb1b53a
nodes: no longer uses helpers.indexOf
2010-10-11 09:40:41 +09:00
satyr
c437f0b14b
made until less parenful as well
2010-10-11 07:29:38 +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
45ed62931b
#749 -- adding CoffeeApp mention
2010-10-10 11:33:03 -04:00