Michal Srb
7b9699c5fa
Fix #1437 . Unneeded ref in existential assignment.
2013-04-22 21:58:49 +02:00
Nami-Doc
53a5f26430
fix #2846
2013-03-25 18:56:24 +01:00
Jeremy Ashkenas
6786bab2ba
Big refactor of SourceMap class. Literate CoffeeScript. Purdy.
2013-03-18 19:23:05 +08:00
Jeremy Ashkenas
566a7dabb2
Fixing erroneous whitespace fix in generated JS
2013-03-18 17:47:55 +08:00
Jeremy Ashkenas
a3e8de338a
CoffeeScript 1.6.2
2013-03-18 13:06:33 +08:00
Jeremy Ashkenas
4f815ea978
Fixes #2737 , fix fork() for both .js and .coffee, revised.
2013-03-18 11:46:54 +08:00
Hao-kang Den
5fb047930e
fixed lineno
2013-03-18 09:31:12 +08:00
Hao-kang Den
c24e957f17
use btoa as base64 encoder, inspired by @ashtuchkin
2013-03-18 09:31:12 +08:00
Hao-kang Den
d4254a40a9
Apply modifications by @jwalton
2013-03-14 08:36:07 +08:00
Hao-kang Den
052e3cc8eb
found a linear shift of lineno, dirty patch for now
...
It seems that js -> coffee line mapping has a linear shifting.
Dirty patch by applying linear correction.
Dumb, but maybe a hint.
2013-03-14 08:36:07 +08:00
Hao-kang Den
7d08dbb86c
build
2013-03-13 16:00:57 +08:00
Hao-kang Den
d3263dc35b
fix node v0.10 path
2013-03-12 20:53:13 +08:00
Hao-kang Den
9b6772a390
accept override
2013-03-12 15:29:13 +08:00
Hao-kang Den
b7f0653a0e
port patchStackTrace from Redux
2013-03-12 15:29:13 +08: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
Demian Ferreiro
09f8df9640
Add check for end of input on parseError handler
2013-03-10 00:30:27 -03:00
Jason Walton
f85d19b459
Rework API for sourcemap filenames and paths.
2013-03-07 21:26:09 -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
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
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
Jason Walton
2684737b66
Move sourceMappingURL line to bottom of file
2013-03-04 18:43:49 -05:00
Jeremy Ashkenas
eef83a9fcb
CoffeeScript 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
9f614fedec
CoffeeScript 1.6.0
2013-03-05 08:19:08 +13:00
Jason Walton
979e110a84
Minor API changes.
2013-03-04 09:45:25 -05: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
Michael Smith
c98fae59fc
Patch child_process.fork to run .coffee files
2013-03-01 16:19:05 -08:00
Jason Walton
ad0306b00c
Change compileWithSourceMap() so it returns an object instead of an Array, and return the SourceMap object.
2013-03-01 11:34:39 -05:00
Jason Walton
ea86e3e7b1
Optionally allow replacement of existing mappings in SourceMap#addMapping().
2013-03-01 10:18:37 -05:00
Jason Walton
844549954a
Minor API clean up, and make it so sourcemaps are pretty-printed to the .map file.
2013-03-01 10:12:10 -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
Jason Walton
7073d18f23
Add source map support
2013-02-28 15:51:29 -05:00
Michael Smith
1a8354482a
Modify extension handling to allow for .coffee.md
...
Move filename processing to a `parseFileName` function in
helpers.coffee.
Map `.coffee.md` as a Literate CoffeeScript extension.
Also, make .litcoffee and .coffee.md files executable without their file
extension - eg. `coffee test` would work for a file called
`test.litcoffee`.
2013-02-27 22:49:24 -08:00
Demian Ferreiro
5115fcb162
Add CompilationError.fromLocationData
2013-02-26 23:03:33 -03:00
Demian Ferreiro
fbc8417263
Fix failing parser error message test
2013-02-26 05:55:09 -03:00
Demian Ferreiro
5f00d6478a
Remove redundant filename in error message
2013-02-25 19:20:37 -03:00
Demian Ferreiro
7e5f1b14a3
Pass 0-based indexes to CompilerError
2013-02-25 15:12:25 -03:00
Demian Ferreiro
caacd892cc
Improved parser error messages
2013-02-25 15:09:42 -03:00
Jeremy Ashkenas
af53c230a1
CoffeeScript 1.5.0
2013-02-25 21:12:22 +13:00
Jeremy Ashkenas
5e498ca395
merged
2013-02-25 17:41:27 +13:00
Jeremy Ashkenas
14c2a16833
Reverted b31cc70 -- putting Generated comment back up top. Why? Why not?
2013-02-25 17:17:01 +13:00
Jason Walton
fe45f1bf35
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
lib/coffee-script/grammar.js
lib/coffee-script/rewriter.js
src/grammar.coffee
src/rewriter.coffee
2013-02-06 10:29:19 -05:00
Jeremy Ashkenas
b31cc70235
Moving the 'generated by coffeescript version X' comment to the bottom, to get it out of the way
2013-02-02 10:42:46 +11:00
Jason Walton
bbbf612f29
Put location data in token[2] instead of in token.locationData
2013-01-14 15:20:35 -05:00
Jeremy Ashkenas
6becd8fb13
Reverting the unthrow of the error.
2013-01-14 11:44:15 -08:00
Jason Walton
a1ba0a89f8
Merge remote-tracking branch 'origin/master'
...
Conflicts:
lib/coffee-script/coffee-script.js
lib/coffee-script/lexer.js
lib/coffee-script/parser.js
src/lexer.coffee
2013-01-14 14:26:06 -05:00