Jeremy Ashkenas
13fae12f69
Fixes #2490 -- adding guard-style if blocks
2013-03-09 10:40:37 +08:00
Jeremy Ashkenas
0120db0efc
Merge pull request #2803 from benbria/master
...
Rework source map files and paths
2013-03-08 07:19:48 -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
Jeremy Ashkenas
4be4ea3623
Merge pull request #2795 from fahad19/master
...
Fix: compiling `coffee.coffee` produces `.js` file.
2013-03-07 01:30:07 -08: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
185b2ce632
Code inspect fixes from the inimitable Nami-Doc
2013-03-06 16:26:34 -05: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
Demian Ferreiro
342a796cc0
Remove column number from online editor error box
2013-03-05 05:16:29 -03: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
Jeremy Ashkenas
fbe07f1fce
Removing debugging source location output from --nodes. It shouldn't have snuck in there.
2013-03-05 20:50:03 +13:00
Jeremy Ashkenas
304432c197
Merge pull request #2417 from gabehollombe/doc_for_switch_with_no_control_expression
...
Documentation for switch statements with no control expression
2013-03-04 22:27:38 -08: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
Jeremy Ashkenas
f8c6b494aa
Fixes #2422 -- Catch clause scoping plus old IE
2013-03-05 16:13:22 +13:00
Jeremy Ashkenas
1b573412d3
cleaning up the previous merge -- moving it out to helpers.invertLiterate
2013-03-05 15:45:57 +13: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
51b1affbc5
Merge pull request #2776 from mintplant/fix-2768
...
Fix #2768 : support --join'ing mixed literate and non-literate CoffeeScript source files
2013-03-04 18:39:30 -08:00
Jeremy Ashkenas
903e9c994c
Fixes #2773 -- tricky dependency ordering when overriding bound functions.
2013-03-05 15:35:02 +13:00
Michael Smith
fca68717ff
Fix #2768 : rewrite literate code before the join
2013-03-04 18:30:24 -08:00
Michael Ficarra
22d6a4b255
Merge pull request #2770 from benbria/master
...
Move sourceMappingURL to bottom of generated JavaScript file.
2013-03-04 17:45:16 -08:00
Jeremy Ashkenas
26102a0970
Merge pull request #2772 from marchaefner/master
...
Minor improvements for locationData of tokens and some clean up.
2013-03-04 17:43:09 -08:00
Jason Walton
add84bfddc
Add multiline horrible kludge for IE
2013-03-04 19:08:33 -05:00
Marc Häfner
dcd74d3e59
Clean up unused parameter.
2013-03-05 01:02:16 +01:00
Jason Walton
2684737b66
Move sourceMappingURL line to bottom of file
2013-03-04 18:43:49 -05:00
Marc Häfner
74181c0ec0
Improve locationData of implicit object braces.
...
Set location of generated left brace to start of content, so the corresponding AST nodes don't span preceding spaces, blank lines or comments.
2013-03-05 00:12:51 +01:00
Marc Häfner
ebff9fbc31
Exclude preceding newlines from INDENT tokens.
...
Produces more meanignful locationData.
2013-03-05 00:03:08 +01:00
Marc Häfner
97a41adf0c
Fix location of tokens with no length
...
by actually using the computed offset.
2013-03-05 00:01:17 +01:00
Jeremy Ashkenas
eef83a9fcb
CoffeeScript 1.6.1
1.6.1
2013-03-05 11:07:16 +13:00
Jeremy Ashkenas
b62a90d54c
Fixes #2765 -- incorrect line number in mappings
2013-03-05 10:49:47 +13:00
Jeremy Ashkenas
b2ef77d92e
refactoring to a baseFileName that can work in the browser, for later
2013-03-05 10:40:39 +13:00
Jeremy Ashkenas
b2b801a78b
Fixes #2766 -- incompatible line number API
2013-03-05 10:19:21 +13:00
Jeremy Ashkenas
b4c12f6746
Fixing lingering brain fart. Inexcusable.
1.6.0
2013-03-05 09:23:50 +13:00
Jeremy Ashkenas
a4cc15c95c
Merge pull request #2763 from matthewwithanm/source-map-fix
...
Fix Source Map Generation for 1.6.0
2013-03-04 12:09:26 -08:00
Matthew Tretter
3c42a8e01c
Update compiled version
2013-03-04 15:07:20 -05:00
Matthew Tretter
4a94a9fbd1
Fix source map generation
...
Small typo fix (:
2013-03-04 14:57:56 -05:00
Jeremy Ashkenas
9f614fedec
CoffeeScript 1.6.0
2013-03-05 08:19:08 +13:00
Demian Ferreiro
9ea4268b92
Make duplicate param name errors mark the actual duplicate parameter
...
Before:
coffee> foo = (bar, baz, bar, qux) ->
repl:1:7: error: multiple parameters named 'bar'
foo = (bar, baz, bar, qux) ->
^^^^^^^^^^^^^^^^^^^^^^^
Now:
coffee> foo = (bar, baz, bar, qux) ->
repl:1:18: error: multiple parameters named 'bar'
foo = (bar, baz, bar, qux) ->
^^^
Also works with destructuring parameters and what have you.
2013-03-04 15:39:03 -03:00
Jeremy Ashkenas
e417a0ca6f
Reverts 56fe211b79
2013-03-05 07:38:41 +13:00
Jeremy Ashkenas
75769503ff
Renaming --maps option to --map for consistency.
2013-03-05 07:29:46 +13:00
Demian Ferreiro
589d67d8b7
Remove a couple of TODOs (WONTDOs really)
2013-03-04 13:11:34 -03:00
Demian Ferreiro
3127e76f4b
Integrate error messages on the site editor
...
Nothing really fancy here; mostly preserves the old format. Maybe if we had a more full-fledged test editor we could show the errors in-line =D
Also, i couldn't get the `rake doc` task running properly, so i mostly test this editing the index.html directly (ups!).
2013-03-04 13:00:25 -03:00