Demian Ferreiro
08b59aef8a
Make power operator have higher precedence than unary operators: +, -, ~, !
2013-03-25 00:05:04 -03:00
Demian Ferreiro
e237abff84
Merge branch 'power-operator' of git://github.com/charliesome/coffee-script into more-math-operators
...
Conflicts:
src/nodes.coffee
test/operators.coffee
2013-03-24 22:47:46 -03:00
Jeremy Ashkenas
78d10f30a0
removing sourceColumn reset
2013-03-18 21:50:40 +08:00
Jeremy Ashkenas
6786bab2ba
Big refactor of SourceMap class. Literate CoffeeScript. Purdy.
2013-03-18 19:23:05 +08:00
Jeremy Ashkenas
4f815ea978
Fixes #2737 , fix fork() for both .js and .coffee, revised.
2013-03-18 11:46:54 +08:00
Jeremy Ashkenas
2f5b11b295
Fixes #2555
2013-03-17 19:27:16 +08:00
Marc Häfner
44c2b4aa7f
Test case for literal mode: Code blocks must be preceded by blank line.
2013-03-15 03:23:09 +01:00
Demian Ferreiro
45bcd9fa2f
Keep REPL running on runtime errors
2013-03-11 23:58:00 -03:00
Michael Ficarra
20d98c7106
@epidemian typo
2013-03-11 21:48:21 -05:00
Demian Ferreiro
119ec16e5e
Add REPL scoping tests
2013-03-11 20:16:48 -03:00
Demian Ferreiro
f0fcf4aee0
Merge branch 'master' of git://github.com/jashkenas/coffee-script into improved-error-messages
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/command.js
lib/coffee-script/helpers.js
lib/coffee-script/lexer.js
lib/coffee-script/nodes.js
lib/coffee-script/repl.js
src/coffee-script.coffee
src/command.coffee
src/helpers.coffee
src/lexer.coffee
src/nodes.coffee
test/helpers.coffee
2013-03-10 20:29:36 -03:00
Jeremy Ashkenas
dbb99f31a7
Reverting #2490
2013-03-10 07:21:00 +08:00
Jeremy Ashkenas
13fae12f69
Fixes #2490 -- adding guard-style if blocks
2013-03-09 10:40:37 +08:00
Jason Walton
c4f50b52d7
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
lib/coffee-script/helpers.js
test/helpers.coffee
2013-03-08 10:17:47 -05:00
Jason Walton
242f397bfa
Remove dead variables.
2013-03-07 21:30:04 -05:00
Jason Walton
f85d19b459
Rework API for sourcemap filenames and paths.
2013-03-07 21:26:09 -05:00
Jeremy Ashkenas
8f7f3627e0
Fixes #2796 , by adding a test for it.
2013-03-07 23:13:22 +13:00
Jeremy Ashkenas
8b134cf348
Add an additonal test, courtesy @matehat
2013-03-07 23:10:39 +13:00
Jeremy Ashkenas
67de35ff29
Fixes #2781 , fixes #2782 . Reverting to old method of instance method binding.
2013-03-07 23:09:32 +13:00
Jeremy Ashkenas
774ee6a554
merge
2013-03-07 22:59:23 +13:00
Fahad Ibnay Heylaal
18fec7e202
tests for baseFileName helper for files with only coffee-script extensions as the file name.
2013-03-07 10:23:36 +06:00
Fahad Ibnay Heylaal
072df5ecc9
more test coverage for baseFileName helper.
2013-03-07 10:15:01 +06:00
Fahad Ibnay Heylaal
4d7151aa5d
fix: compiling coffee.coffee produces .js file.
2013-03-07 03:41:34 +06:00
Jason Walton
ce6772f2be
Better fix for sourceRoot and relative path for .coffee files in source maps.
2013-03-06 15:45:47 -05:00
Jason Walton
d6e1a979e4
Fix sourceRoot and relative path for .coffee files in generated source maps.
2013-03-06 11:05:57 -05:00
Jeremy Ashkenas
de8ec2beb0
Fixes #1066 -- interpolated strings are not implicit funcs
2013-03-05 21:28:29 +13:00
Jeremy Ashkenas
355754ed20
Fixes #1055 -- disallow invalid keys in object literals ... but allow them where the implicit object is being used as a class defn' or a destructuring
2013-03-05 21:10:56 +13:00
Demian Ferreiro
5da7f6a488
Get rid of CompilationError and instead have a couple of functions on helpers.coffee
2013-03-05 01:13:46 -03:00
Demian Ferreiro
b400047045
Merge branch 'master' of git://github.com/jashkenas/coffee-script into improved-error-messages
...
Conflicts:
Cakefile
lib/coffee-script/coffee-script.js
lib/coffee-script/command.js
lib/coffee-script/nodes.js
lib/coffee-script/repl.js
src/coffee-script.coffee
src/helpers.coffee
src/nodes.coffee
src/repl.coffee
2013-03-04 23:42:47 -03:00
Jeremy Ashkenas
903e9c994c
Fixes #2773 -- tricky dependency ordering when overriding bound functions.
2013-03-05 15:35:02 +13:00
Jeremy Ashkenas
9f614fedec
CoffeeScript 1.6.0
2013-03-05 08:19:08 +13:00
Jason Walton
96785872cd
Merge remote-tracking branch 'upstream/master' into sourcemaps
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/command.js
lib/coffee-script/nodes.js
src/coffee-script.coffee
src/command.coffee
src/nodes.coffee
2013-03-04 09:25:55 -05:00
Troels Nielsen
37a6ea63b1
#2757 , Allow non-significant commas at end of nested implicit objects
2013-03-04 12:55:15 +01:00
Jeremy Ashkenas
cf11a570e9
Fixes #2489 , fixes #1819 , fixes #1821 -- remove the __bind helper.
2013-03-04 23:11:38 +13:00
Jeremy Ashkenas
9fe0e711d6
Fixes #2502 -- improper compilation with parenthesized inner value of instance properties in a class body.
2013-03-04 22:26:55 +13:00
Jeremy Ashkenas
b3452c1276
Fixes #2508 -- existential access of the prototype.
2013-03-04 22:07:47 +13:00
Michael Smith
c98fae59fc
Patch child_process.fork to run .coffee files
2013-03-01 16:19:05 -08:00
Marc Häfner
3c38a34ab2
Fix line numbers when first line is indented.
...
* Offset @chunkLine for inserted line break.
* Avoid line break insertion for blank lines.
2013-03-01 21:30:07 +01:00
Jason Walton
0e718f0968
Merge branch 'sourcemaps' of https://github.com/surjikal/coffee-script into sourcemaps
2013-03-01 08:47:42 -05:00
Jason Walton
0d6d479d77
Merge branch 'master' into sourcemaps
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/nodes.js
src/nodes.coffee
2013-03-01 08:47:16 -05:00
Nicolas Porter
88e02322e5
Fixed key name in source map, added coffee file to map sources
...
These are the modifications I had to do in order to get source maps working
in 27.0.1425.2 (Official Build 185250) canary. I haven't tested other
browsers.
I first looked at the V3 spec and a few examples, and I saw that the
`source` key of the source map should be called `sources`.
After doing the `source` to `sources` change, the coffee source and for
some odd reason the javascript file would not show up in the browser
dev tools (it was being fetched but not evaluated).
To fix this, I had to add the coffee source to the `sources` list in the
source map file.
2013-03-01 05:58:26 -05:00
Jeremy Ashkenas
6b79af2b7c
Fixes #2721 , super outside of classes with extends for instance methods.
2013-03-01 13:17:07 +13:00
Troels Nielsen
71e04d9839
Disallow implicit calls in cases like:
...
f
a
and only allow cases like:
f
a: 1
2013-02-28 23:20:42 +01:00
Jason Walton
7073d18f23
Add source map support
2013-02-28 15:51:29 -05:00
Demian Ferreiro
4469d062e1
Add a couple of tests to document the behaviour of other typed constructors
2013-02-28 10:37:47 -03:00
Demian Ferreiro
bf70b4660e
Revert #2599
2013-02-28 10:37:30 -03:00
Troels Nielsen
cb187fd900
Fix implicit calls with try/catch/finally as arguments
2013-02-28 11:53:04 +01:00
Troels Nielsen
1666716c31
Improve the handling of implicit object and implicit call combinations
...
by handling them together.
2013-02-27 08:15:38 +01:00
Demian Ferreiro
1db89d1589
Optimized repeat and its tests
2013-02-26 14:41:01 -03:00
Demian Ferreiro
fbc8417263
Fix failing parser error message test
2013-02-26 05:55:09 -03:00