Permalink
...
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
jashkenas/coffeescript
CDR2003/coffee-script-lua
CreamCoderz/coffee-script
Crylock/coffee-script
GeoffreyBooth/coffeescript
Gregg/coffee-script
JulianBirch/coffee-script-1
JustinTulloss/coffee-script
MichaelBlume/coffee-script
NightMigera/coffeescript
PandaWood/coffee-script
ProximaMonkey/coffee-script
Remcoman/coffee-script
RicardoSaracino/coffee-script
SE7ENSKY/matescript
STRd6/coffee-script
ShawnFumo/coffee-script
StanAngeloff/coffee-script
Xepo/coffee-script
abi/coffee-script
agnoster/coffee-script
ahjohannessen/coffee-script
akiellor/coffee-script
alanning/coffee-script
allanberger/coffee-script
almost/coffee-script
alubbe/coffee-script
andrehjr/coffee-script
andrewschaaf/coffee-script
andreypopp/coffee-script
apanda/coffee-script
baoshitang/coffee-script
barberboy/coffee-script
benatkin/coffee-script
benbria/coffee-script
benekastah/coffee-script
bjouhier/coffee-script
blahutka/coffee-script
blossom/coffee-script
bolinfest/coffee-script
breckinloggins/coffee-script
carmelyne/contracts.coffee
chajath/coffee-script
charles-cai/coffee-script
charliesome/coffee-script
chetan51/coffee-script
chip/coffee-script
codelahoma/coffee-script
coffee-js/coffee-script
coffee-void/coffeescript
collin/coffee-script
danemorgridge/coffee-script
daveclarke/coffee-script
daveyoon/coffee-script
dbrans/coffee-script
deadprogram/coffee-script
devongovett/coffee-script
dget/coffee-script
disnet/contracts.coffee
dmohl/coffee-script
dohse/coffee-script
dqminh/coffee-script
drewlesueur/coffee-script
eventualbuddha/coffee-script
evilpie/coffee-script
excellentdrums/coffee-script
fitzgen/coffee-script
fizx/coffee-script
geraldalewis/coffee-script
germanocaldeira/coffee-script
gfodor/coffee-script
ghuntley/coffee-script
goodwink/coffee-script
gxela/coffee-script
hayeah/coffee-script
hbt/coffee-script
helixbass/copheescript
hleumas/coffee-script
holtwick/moccacino
hugs/coffee-script
ianthehenry/protoscript
ich/caffeine
janlelis/angular-coffee-script
jaredwy/coffee-script
jasonyandell/coffee-script
jawj/coffee-script
jbca/coffeescript
jiangmiao/toffee-script
jlstr/coffee-script
joelturnbull/coffee-script
johnsang/coffee-script
joliss/coffee-script
jondistad/coffee-script
joshprice/coffee-script
jstrachan/coffee-script
jugglinmike/irene-script
juilyoon/coffee-script
keichii/coffee-script
keithnorm/coffee-script
kewinwang/coffee-script
khaled/coffee-script
leeight/coffee-script
level1/coffee-script
lfendy/coffee-script
loganfsmyth/coffee-script
loopinfinito/coffeescript.com.br
lorensr/coffee-script
loveencounterflow/coffy-script
lukhnos/doubleshot
lynaghk/coffee-script
martco/coffee-script
maxtaco/coffee-script
mbbx6spp/coffee-script
mblinn/coffee-script
mehmeta/coffee-script
melcher/coffee-script
mental/coffee-script
mhart/coffee-script
michaelficarra/coffee-script
misfo/coffee-script
mizchi/coffee-script
mlinderm/coffee-script
mrlauer/coffee-script-monads
muratmeran/coffee-script
myang/coffee-script
nanqiu/coffee-script
neobine/coffee-script
netconstructor/coffee-script
nickjs/coffee-script
nihar/coffee-script
onilabs/coffee-script
paiq/blackcoffee
parkerl/coffee-script
paulmars/coffee-script
peick/coffee-script
pjaspers/coffee-script
plambert/coffee-script
poutyface/coffee-script
pschyska/coffee-script
ptoomey3/coffee-script
quangv/coffee-script
revence27/coffee-script
rkJun/coffee-script
robarondaz/coffee-script
robotlolita/coffee-script
rolftimmermans/coffee-script
rpl/coffee-script
runeb/coffee-script
rwaldron/coffee-script
rymohr/coffee-script
ryszard/coffee-script
samcday/coffee-script
sarang25491/coffee-script
satyr/coffee-script
seedjs/coffee-script
sequoiar/coffee-script
sgraham/coffee-script
shariefsk/coffee-script
shesek/coffee-script
shimaore/cake
siefkenj/gjscoffee-script
smhanov/coffee-script
soutaro/coffee-script
spaghetticode/coffee-script
sparecycles/coffee-script
spencerelliott/coffee-script
sstephenson/coffee-script
stephank/coffee-script
strangemonad/coffee-script
swistak/coffee-script
syg/heap.coffee
taku0/coffee-script
tanob/coffee-script
tglines/coffee-script
thdtjsdn/coffee-script
theIntuitionist/coffee-script
thedeeno/coffee-script
thejh/coffee-script
timruffles/coffee-script
tkpage/coffee-script
tlrobinson/coffee-script
tmishra/coffee-script
tobee/coffee-script
tomelam/coffee-script
tosh/coffee-script
tswicegood/coffee-script
ttilley/coffee-script
twilson63/coffee-script
up2u0609/coffee-script
vanviegen/coffee-script
vjpr/coffee-script
vol4ok/coffee-script
walski/coffee-script
wearefractal/yerbascript
willmoffat/coffee-script
xixixao/coffee-script
yihuang/coffee-script
zaach/coffee-script
zmthy/coffee-script
zot/coffee-script
Nothing to show
Choose a base branch
Choose a Head Repository
jashkenas/coffeescript
CDR2003/coffee-script-lua
CreamCoderz/coffee-script
Crylock/coffee-script
GeoffreyBooth/coffeescript
Gregg/coffee-script
JulianBirch/coffee-script-1
JustinTulloss/coffee-script
MichaelBlume/coffee-script
NightMigera/coffeescript
PandaWood/coffee-script
ProximaMonkey/coffee-script
Remcoman/coffee-script
RicardoSaracino/coffee-script
SE7ENSKY/matescript
STRd6/coffee-script
ShawnFumo/coffee-script
StanAngeloff/coffee-script
Xepo/coffee-script
abi/coffee-script
agnoster/coffee-script
ahjohannessen/coffee-script
akiellor/coffee-script
alanning/coffee-script
allanberger/coffee-script
almost/coffee-script
alubbe/coffee-script
andrehjr/coffee-script
andrewschaaf/coffee-script
andreypopp/coffee-script
apanda/coffee-script
baoshitang/coffee-script
barberboy/coffee-script
benatkin/coffee-script
benbria/coffee-script
benekastah/coffee-script
bjouhier/coffee-script
blahutka/coffee-script
blossom/coffee-script
bolinfest/coffee-script
breckinloggins/coffee-script
carmelyne/contracts.coffee
chajath/coffee-script
charles-cai/coffee-script
charliesome/coffee-script
chetan51/coffee-script
chip/coffee-script
codelahoma/coffee-script
coffee-js/coffee-script
coffee-void/coffeescript
collin/coffee-script
danemorgridge/coffee-script
daveclarke/coffee-script
daveyoon/coffee-script
dbrans/coffee-script
deadprogram/coffee-script
devongovett/coffee-script
dget/coffee-script
disnet/contracts.coffee
dmohl/coffee-script
dohse/coffee-script
dqminh/coffee-script
drewlesueur/coffee-script
eventualbuddha/coffee-script
evilpie/coffee-script
excellentdrums/coffee-script
fitzgen/coffee-script
fizx/coffee-script
geraldalewis/coffee-script
germanocaldeira/coffee-script
gfodor/coffee-script
ghuntley/coffee-script
goodwink/coffee-script
gxela/coffee-script
hayeah/coffee-script
hbt/coffee-script
helixbass/copheescript
hleumas/coffee-script
holtwick/moccacino
hugs/coffee-script
ianthehenry/protoscript
ich/caffeine
janlelis/angular-coffee-script
jaredwy/coffee-script
jasonyandell/coffee-script
jawj/coffee-script
jbca/coffeescript
jiangmiao/toffee-script
jlstr/coffee-script
joelturnbull/coffee-script
johnsang/coffee-script
joliss/coffee-script
jondistad/coffee-script
joshprice/coffee-script
jstrachan/coffee-script
jugglinmike/irene-script
juilyoon/coffee-script
keichii/coffee-script
keithnorm/coffee-script
kewinwang/coffee-script
khaled/coffee-script
leeight/coffee-script
level1/coffee-script
lfendy/coffee-script
loganfsmyth/coffee-script
loopinfinito/coffeescript.com.br
lorensr/coffee-script
loveencounterflow/coffy-script
lukhnos/doubleshot
lynaghk/coffee-script
martco/coffee-script
maxtaco/coffee-script
mbbx6spp/coffee-script
mblinn/coffee-script
mehmeta/coffee-script
melcher/coffee-script
mental/coffee-script
mhart/coffee-script
michaelficarra/coffee-script
misfo/coffee-script
mizchi/coffee-script
mlinderm/coffee-script
mrlauer/coffee-script-monads
muratmeran/coffee-script
myang/coffee-script
nanqiu/coffee-script
neobine/coffee-script
netconstructor/coffee-script
nickjs/coffee-script
nihar/coffee-script
onilabs/coffee-script
paiq/blackcoffee
parkerl/coffee-script
paulmars/coffee-script
peick/coffee-script
pjaspers/coffee-script
plambert/coffee-script
poutyface/coffee-script
pschyska/coffee-script
ptoomey3/coffee-script
quangv/coffee-script
revence27/coffee-script
rkJun/coffee-script
robarondaz/coffee-script
robotlolita/coffee-script
rolftimmermans/coffee-script
rpl/coffee-script
runeb/coffee-script
rwaldron/coffee-script
rymohr/coffee-script
ryszard/coffee-script
samcday/coffee-script
sarang25491/coffee-script
satyr/coffee-script
seedjs/coffee-script
sequoiar/coffee-script
sgraham/coffee-script
shariefsk/coffee-script
shesek/coffee-script
shimaore/cake
siefkenj/gjscoffee-script
smhanov/coffee-script
soutaro/coffee-script
spaghetticode/coffee-script
sparecycles/coffee-script
spencerelliott/coffee-script
sstephenson/coffee-script
stephank/coffee-script
strangemonad/coffee-script
swistak/coffee-script
syg/heap.coffee
taku0/coffee-script
tanob/coffee-script
tglines/coffee-script
thdtjsdn/coffee-script
theIntuitionist/coffee-script
thedeeno/coffee-script
thejh/coffee-script
timruffles/coffee-script
tkpage/coffee-script
tlrobinson/coffee-script
tmishra/coffee-script
tobee/coffee-script
tomelam/coffee-script
tosh/coffee-script
tswicegood/coffee-script
ttilley/coffee-script
twilson63/coffee-script
up2u0609/coffee-script
vanviegen/coffee-script
vjpr/coffee-script
vol4ok/coffee-script
walski/coffee-script
wearefractal/yerbascript
willmoffat/coffee-script
xixixao/coffee-script
yihuang/coffee-script
zaach/coffee-script
zmthy/coffee-script
zot/coffee-script
Nothing to show
Choose a head branch
8
contributors
Commits on Jan 29, 2015
|
|
jashkenas |
docs
|
0a9c7a3
|
|||
|
|
jashkenas |
Fixes #3816 -- prettier internal variable names.
|
3fd004b
|
Commits on Jan 30, 2015
|
|
jashkenas |
#3819 changelog docs
|
a3096ea
|
|||
|
|
jashkenas |
move changelog
|
3ddd311
|
|||
|
|
jashkenas |
Revert "move changelog"
This reverts commit 3ddd311. |
c2abe25
|
|||
|
|
lydell |
Name generated variables without leading underscore
For example, `ref` not `_ref`. It's cleaner. This also fixes #3816. |
4d7a0d2
|
|||
|
|
jashkenas |
Merge pull request #3821 from lydell/no-underscore
Name generated variables without leading underscore |
e9a372d
|
Commits on Feb 03, 2015
|
|
jashkenas |
redoc
|
dd0ec84
|
|||
|
|
jashkenas |
Merge branch 'master' of github.com:jashkenas/coffeescript
|
934bd2a
|
|||
|
|
lydell |
Fix #3822: Include delimiters in string/regex locations
|
f8c366c
|
|||
|
|
jashkenas |
Merge pull request #3826 from lydell/string-locations
Fix #3822: Include delimiters in string/regex locations |
17a271a
|
|||
|
|
lydell |
Fix #3778: Make for loops more consistent
The following two lines might seem equivalent:
for n in [1, 2, 3] by a then a = 4; n
for n in [1, 2, 3] by +a then a = 4; n
But they used not to be, because `+a` was cached into a `ref`, while the plain
`a` wasn’t. Now even simple identifiers are cached, making the two lines
equivalent as expected. |
996a171
|
|||
|
|
jashkenas |
Merge pull request #3786 from lydell/loop-safety
Fix #3778: Make for loops more consistent |
04b30a6
|
|||
|
|
lydell |
Improve error messages for unexpected regexes
|
ffa25aa
|
|||
|
|
lydell |
Allow super in methods with dynamic names
As discussed in #3039 (comment). This is the first step to implement dynamic object literal keys (see #3597). This also fixes #1392. In short, `super` is now allowed: # in class definitions: class A instanceMethod: -> super @staticMethod: -> super @staticMethod2 = -> super # in assignment where the next to last access is 'prototype': A::m = -> super A.prototype.m = -> super a.b()[5]::m = -> super A::[x()] = -> super class B @::m = -> super |
ee8f889
|
|||
|
|
jashkenas |
Merge pull request #3785 from lydell/super
Allow super in methods with dynamic names |
c0e1f23
|
|||
|
|
jashkenas |
Merge pull request #3827 from lydell/unexpected-regex
Improve error messages for unexpected regexes |
64632e3
|
Commits on Feb 05, 2015
|
|
swang |
Fix incorrect token representation
The third element in a token should just be an object containing line number and column info. This PR fixes the problem with one of the tokens being set incorrectly. |
92e5ab2
|
|||
|
|
michaelficarra |
Merge pull request #3830 from swang/fix_incorrect_token
Fix incorrect token representation |
5a220d4
|
|||
|
|
lydell |
Fix #3795: Never generate invalid strings and regexes
- Invalid `\x` and `\u` escapes now throw errors. - U+2028 and U+2029 (which JavaScript treats as newline characters) are now escaped to `\u2028` and `\u2029`, respectively. - Octal escapes are now forbidden not only in strings, but in regexes as well. - `\0` escapes are now escaped if needed (so that they do not form an octal literal by mistake). Note that `\01` is an octal escape in a regex, while `\1` is a backreference. (Added a test for backreferences while at it.) - Fixed a bug where newlines in strings weren't removed if preceded by an escaped character. |
72ceec5
|
|||
|
|
jashkenas |
Merge pull request #3833 from lydell/escapes
Fix #3795: Never generate invalid strings and regexes |
3b3e520
|
Commits on Feb 06, 2015
|
|
lydell |
Improve lexer error messages
- Erraneous tokens are now fully underlined with ^:s. - The error messages are now a bit more consistent. |
2132254
|
|||
|
|
jashkenas |
Merge pull request #3834 from lydell/better-lexer-errors
Improve lexer error messages |
5d13959
|
Commits on Feb 07, 2015
|
|
lydell |
Replace `last array` helper with `[..., last] = array`
|
94a17cb
|
Commits on Feb 08, 2015
|
|
michaelficarra |
Merge pull request #3841 from lydell/last
Replace `last array` helper with `[..., last] = array` |
53c7891
|
|||
|
|
arianf |
Fixed copyright range to be updated to 2015
|
e0e4967
|
|||
|
|
michaelficarra |
Merge pull request #3842 from arianf/master
Fixed copyright range to be updated to 2015 |
5698e6c
|
Commits on Feb 09, 2015
|
|
lydell |
Fix #3597: Allow interpolations in object keys
The following is now allowed:
o =
a: 1
b: 2
"#{'c'}": 3
"#{'d'}": 4
e: 5
"#{'f'}": 6
g: 7
It compiles to:
o = (
obj = {
a: 1,
b: 2
},
obj["" + 'c'] = 3,
obj["" + 'd'] = 4,
obj.e = 5,
obj["" + 'f'] = 6,
obj.g = 7,
obj
);
- Closes #3039. Empty interpolations in object keys are now _supposed_ to be
allowed.
- Closes #1131. No need to improve error messages for attempted key
interpolation anymore.
- Implementing this required fixing the following bug: `("" + a): 1` used to
error out on the colon, saying "unexpected colon". But really, it is the
attempted object key that is unexpected. Now the error is on the opening
parenthesis instead.
- However, the above fix broke some error message tests for regexes. The easiest
way to fix this was to make a seemingly unrelated change: The error messages
for unexpected identifiers, numbers, strings and regexes now say for example
'unexpected string' instead of 'unexpected """some #{really long} string"""'.
In other words, the tag _name_ is used instead of the tag _value_.
This was way easier to implement, and is more helpful to the user. Using the
tag value is good for operators, reserved words and the like, but not for
tokens which can contain any text. For example, 'unexpected identifier' is
better than 'unexpected expected' (if a variable called 'expected' was used
erraneously).
- While writing tests for the above point I found a few minor bugs with string
locations which have been fixed. |
76c076d
|
Commits on Feb 10, 2015
|
|
jashkenas |
Merge pull request #3840 from lydell/dynakeys
Fix #3597: Allow interpolations in object keys |
88ad059
|
Commits on Feb 11, 2015
|
|
mapmeld |
allow multiline comment inside of an object definition [Fixes #3761]
use more CoffeeScript syntax |
dc44ebb
|
|||
|
|
jashkenas |
Merge pull request #3802 from mapmeld/multiline_comment_fix
Allow multiline comment at end of an object definition [Fixes #3761] |
8130e63
|
Commits on Feb 12, 2015
|
|
lydell |
Fix error message for invalid escape at end of regex
|
3da88b9
|
|||
|
|
lydell |
Fix #3846: Fix odd start token of implicit objects
Now the same hack as for reserved identifier tokens in the lexer is used instead. |
57846ea
|
|||
|
|
jashkenas |
Merge pull request #3850 from lydell/implicit-object-start-token
Fix #3846: Fix odd start token of implicit objects |
c3ae232
|
|||
|
|
jashkenas |
Merge pull request #3849 from lydell/regex-end-invalid-escape
Fix error message for invalid escape at end of regex |
dc8a2b1
|
|||
|
|
DiThi |
Prevent writing the same file several times (fixes #3753)
|
6bc3157
|
|||
|
|
jashkenas |
Merge pull request #3758 from DiThi/master
Prevent writing the same file several times (fixes #3753) |
b49b413
|
Commits on Feb 15, 2015
|
|
alubbe |
fixed being unable to use 'yield throw'
|
e3f6e19
|
|||
|
|
michaelficarra |
Merge pull request #3853 from alubbe/fixyieldthrow
fixed being unable to use 'yield throw' |
a4f5105
|
|||
|
|
alubbe |
added a lot of ES6 generator tests
|
b362bd6
|
|||
|
|
michaelficarra |
Merge pull request #3852 from alubbe/moretests
added a lot of ES6 generator tests |
7c8849c
|
Commits on Feb 17, 2015
|
|
alubbe |
fixed overly fragile repl test to work with 0.12, see #3855
|
25d97aa
|
|||
|
|
jashkenas |
Merge pull request #3858 from alubbe/master
fixed overly fragile repl test to work with 0.12 |
fea058c
|
|||
|
|
alubbe |
fixed yield return producing incorrect output when used outside of th…
…e last line |
feee695
|
|||
|
|
alubbe |
improved yield return test
|
b6012c4
|
|||
|
|
jashkenas |
Merge pull request #3854 from alubbe/fixyieldreturn
fixed yield return producing incorrect output when used outside of the last line |
e4d8100
|
Commits on Feb 18, 2015
|
|
lydell |
Fix single-line heredocs starting with "undefined"
|
4503e27
|
|||
|
|
jashkenas |
Merge pull request #3861 from lydell/heredoc-undefined
Fix single-line heredocs starting with "undefined" |
1961f06
|
|||
|
|
jashkenas |
CoffeeScript 1.9.1
|
533ad8a
|
Unified
Split
Showing
with
3,348 additions
and 4,206 deletions.
- +1 −1 LICENSE
- +1 −1 bower.json
- +8 −8 documentation/docs/browser.html
- +3 −3 documentation/docs/cake.html
- +30 −29 documentation/docs/coffee-script.html
- +36 −29 documentation/docs/command.html
- +9 −6 documentation/docs/docco.css
- +13 −3 documentation/docs/grammar.html
- +50 −65 documentation/docs/helpers.html
- +1 −1 documentation/docs/index.html
- +216 −167 documentation/docs/lexer.html
- +165 −121 documentation/docs/nodes.html
- +1 −1 documentation/docs/optparse.html
- BIN documentation/docs/public/fonts/aller-bold.eot
- BIN documentation/docs/public/fonts/aller-bold.ttf
- BIN documentation/docs/public/fonts/aller-bold.woff
- BIN documentation/docs/public/fonts/aller-light.eot
- BIN documentation/docs/public/fonts/aller-light.ttf
- BIN documentation/docs/public/fonts/aller-light.woff
- BIN documentation/docs/public/fonts/novecento-bold.eot
- BIN documentation/docs/public/fonts/novecento-bold.ttf
- BIN documentation/docs/public/fonts/novecento-bold.woff
- BIN documentation/docs/public/fonts/roboto-black.eot
- BIN documentation/docs/public/fonts/roboto-black.ttf
- BIN documentation/docs/public/fonts/roboto-black.woff
- +4 −4 documentation/docs/register.html
- +7 −7 documentation/docs/repl.html
- +69 −50 documentation/docs/rewriter.html
- +9 −16 documentation/docs/scope.html
- +1 −1 documentation/docs/sourcemap.html
- +0 −1,989 documentation/docs/underscore.html
- +31 −3 documentation/index.html.js
- +1 −1 documentation/js/aliases.js
- +8 −8 documentation/js/array_comprehensions.js
- +1 −1 documentation/js/block_comment.js
- +1 −1 documentation/js/cake_tasks.js
- +1 −1 documentation/js/chaining.js
- +9 −9 documentation/js/classes.js
- +1 −1 documentation/js/comparisons.js
- +1 −1 documentation/js/conditionals.js
- +1 −1 documentation/js/constructor_destructuring.js
- +1 −1 documentation/js/default_args.js
- +6 −6 documentation/js/do.js
- +1 −1 documentation/js/embedded.js
- +1 −1 documentation/js/existence.js
- +3 −3 documentation/js/expansion.js
- +1 −1 documentation/js/expressions.js
- +1 −1 documentation/js/expressions_assignment.js
- +5 −5 documentation/js/expressions_comprehension.js
- +1 −1 documentation/js/expressions_try.js
- +1 −1 documentation/js/fat_arrow.js
- +1 −1 documentation/js/functions.js
- +1 −1 documentation/js/generators.js
- +1 −1 documentation/js/heredocs.js
- +1 −1 documentation/js/heregexes.js
- +1 −1 documentation/js/interpolation.js
- +3 −3 documentation/js/multiple_return_values.js
- +5 −5 documentation/js/object_comprehensions.js
- +3 −3 documentation/js/object_extraction.js
- +1 −1 documentation/js/objects_and_arrays.js
- +1 −1 documentation/js/objects_reserved.js
- +9 −9 documentation/js/overview.js
- +3 −3 documentation/js/parallel_assignment.js
- +4 −4 documentation/js/patterns_and_splats.js
- +1 −1 documentation/js/prototypes.js
- +6 −6 documentation/js/range_comprehensions.js
- +1 −1 documentation/js/scope.js
- +1 −1 documentation/js/slices.js
- +3 −3 documentation/js/soaks.js
- +3 −3 documentation/js/splats.js
- +3 −3 documentation/js/splices.js
- +1 −1 documentation/js/strings.js
- +1 −1 documentation/js/switch.js
- +1 −1 documentation/js/switch_with_no_expression.js
- +1 −1 documentation/js/try.js
- +5 −5 documentation/js/while.js
- +6 −6 extras/coffee-script.js
- +145 −113 index.html
- +17 −17 lib/coffee-script/browser.js
- +10 −10 lib/coffee-script/cake.js
- +55 −44 lib/coffee-script/coffee-script.js
- +49 −40 lib/coffee-script/command.js
- +24 −14 lib/coffee-script/grammar.js
- +27 −31 lib/coffee-script/helpers.js
- +5 −5 lib/coffee-script/index.js
- +256 −166 lib/coffee-script/lexer.js
- +558 −474 lib/coffee-script/nodes.js
- +24 −24 lib/coffee-script/optparse.js
- +137 −137 lib/coffee-script/parser.js
- +5 −5 lib/coffee-script/register.js
- +17 −17 lib/coffee-script/repl.js
- +108 −79 lib/coffee-script/rewriter.js
- +51 −48 lib/coffee-script/scope.js
- +16 −16 lib/coffee-script/sourcemap.js
- +2 −2 package.json
- +12 −11 src/coffee-script.coffee
- +7 −0 src/command.coffee
- +11 −1 src/grammar.coffee
- +0 −3 src/helpers.coffee
- +167 −105 src/lexer.coffee
- +120 −76 src/nodes.coffee
- +1 −1 src/repl.coffee
- +38 −21 src/rewriter.coffee
- +8 −16 src/scope.litcoffee
- +32 −25 test/assignment.coffee
- +66 −0 test/classes.coffee
- +9 −0 test/comments.coffee
- +11 −0 test/comprehensions.coffee
- +262 −29 test/error_messages.coffee
- +123 −29 test/generators.coffee
- +1 −11 test/helpers.coffee
- +2 −2 test/interpolation.coffee
- +30 −16 test/location.coffee
- +123 −0 test/objects.coffee
- +21 −0 test/regexps.coffee
- +0 −1 test/repl.coffee
- +31 −0 test/strings.coffee
View
2
LICENSE
| @@ -1,4 +1,4 @@ | ||
| -Copyright (c) 2009-2014 Jeremy Ashkenas | ||
| +Copyright (c) 2009-2015 Jeremy Ashkenas | ||
| Permission is hereby granted, free of charge, to any person | ||
| obtaining a copy of this software and associated documentation | ||
View
2
bower.json
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "coffee-script", | ||
| - "version": "1.9.0", | ||
| + "version": "1.9.1", | ||
| "main": [ | ||
| "lib/coffee-script/coffee-script.js" | ||
| ], | ||
View
16
documentation/docs/browser.html
| @@ -140,7 +140,7 @@ | ||
| </div> | ||
| - <div class="content"><div class='highlight'><pre>CoffeeScript.e<span class="hljs-function"><span class="hljs-title">val</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| + <div class="content"><div class='highlight'><pre>CoffeeScript.<span class="hljs-function"><span class="hljs-title">eval</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| options.bare ?= <span class="hljs-literal">on</span> | ||
| eval compile code, options</pre></div></div> | ||
| @@ -157,7 +157,7 @@ | ||
| </div> | ||
| - <div class="content"><div class='highlight'><pre>CoffeeScript.r<span class="hljs-function"><span class="hljs-title">un</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| + <div class="content"><div class='highlight'><pre>CoffeeScript.<span class="hljs-function"><span class="hljs-title">run</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| options.bare = <span class="hljs-literal">on</span> | ||
| options.shiftLine = <span class="hljs-literal">on</span> | ||
| Function(compile code, options)()</pre></div></div> | ||
| @@ -193,7 +193,7 @@ | ||
| </div> | ||
| <div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> btoa? <span class="hljs-keyword">and</span> JSON? <span class="hljs-keyword">and</span> unescape? <span class="hljs-keyword">and</span> encodeURIComponent? | ||
| -<span class="hljs-function"> <span class="hljs-title">compile</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| + <span class="hljs-function"><span class="hljs-title">compile</span> = <span class="hljs-params">(code, options = {})</span> -></span> | ||
| options.sourceMap = <span class="hljs-literal">true</span> | ||
| options.inline = <span class="hljs-literal">true</span> | ||
| {js, v3SourceMap} = CoffeeScript.compile code, options | ||
| @@ -212,15 +212,15 @@ | ||
| </div> | ||
| - <div class="content"><div class='highlight'><pre>CoffeeScript.l<span class="hljs-function"><span class="hljs-title">oad</span> = <span class="hljs-params">(url, callback, options = {}, hold = <span class="hljs-literal">false</span>)</span> -></span> | ||
| + <div class="content"><div class='highlight'><pre>CoffeeScript.<span class="hljs-function"><span class="hljs-title">load</span> = <span class="hljs-params">(url, callback, options = {}, hold = <span class="hljs-literal">false</span>)</span> -></span> | ||
| options.sourceFiles = [url] | ||
| xhr = <span class="hljs-keyword">if</span> <span class="hljs-built_in">window</span>.ActiveXObject | ||
| <span class="hljs-keyword">new</span> <span class="hljs-built_in">window</span>.ActiveXObject(<span class="hljs-string">'Microsoft.XMLHTTP'</span>) | ||
| <span class="hljs-keyword">else</span> | ||
| <span class="hljs-keyword">new</span> <span class="hljs-built_in">window</span>.XMLHttpRequest() | ||
| xhr.open <span class="hljs-string">'GET'</span>, url, <span class="hljs-literal">true</span> | ||
| xhr.overrideMimeType <span class="hljs-string">'text/plain'</span> <span class="hljs-keyword">if</span> <span class="hljs-string">'overrideMimeType'</span> <span class="hljs-keyword">of</span> xhr | ||
| - xhr.o<span class="hljs-function"><span class="hljs-title">nreadystatechange</span> = -></span> | ||
| + xhr.<span class="hljs-function"><span class="hljs-title">onreadystatechange</span> = -></span> | ||
| <span class="hljs-keyword">if</span> xhr.readyState <span class="hljs-keyword">is</span> <span class="hljs-number">4</span> | ||
| <span class="hljs-keyword">if</span> xhr.status <span class="hljs-keyword">in</span> [<span class="hljs-number">0</span>, <span class="hljs-number">200</span>] | ||
| param = [xhr.responseText, options] | ||
| @@ -250,8 +250,8 @@ | ||
| coffeetypes = [<span class="hljs-string">'text/coffeescript'</span>, <span class="hljs-string">'text/literate-coffeescript'</span>] | ||
| coffees = (s <span class="hljs-keyword">for</span> s <span class="hljs-keyword">in</span> scripts <span class="hljs-keyword">when</span> s.type <span class="hljs-keyword">in</span> coffeetypes) | ||
| index = <span class="hljs-number">0</span> | ||
| -<span class="hljs-function"> | ||
| - <span class="hljs-title">execute</span> = -></span> | ||
| + | ||
| + <span class="hljs-function"><span class="hljs-title">execute</span> = -></span> | ||
| param = coffees[index] | ||
| <span class="hljs-keyword">if</span> param <span class="hljs-keyword">instanceof</span> Array | ||
| CoffeeScript.run param... | ||
| @@ -263,7 +263,7 @@ | ||
| options = <span class="hljs-attribute">literate</span>: script.type <span class="hljs-keyword">is</span> coffeetypes[<span class="hljs-number">1</span>] | ||
| <span class="hljs-keyword">if</span> script.src | ||
| CoffeeScript.load script.src, | ||
| -<span class="hljs-function"> <span class="hljs-params">(param)</span> -></span> | ||
| + <span class="hljs-function"><span class="hljs-params">(param)</span> -></span> | ||
| coffees[i] = param | ||
| execute() | ||
| options | ||
View
6
documentation/docs/cake.html
| @@ -260,7 +260,7 @@ | ||
| </div> | ||
| - <div class="content"><div class='highlight'><pre>exports.r<span class="hljs-function"><span class="hljs-title">un</span> = -></span> | ||
| + <div class="content"><div class='highlight'><pre><span class="hljs-built_in">exports</span>.<span class="hljs-function"><span class="hljs-title">run</span> = -></span> | ||
| <span class="hljs-built_in">global</span>.__originalDirname = fs.realpathSync <span class="hljs-string">'.'</span> | ||
| process.chdir cakefileDirectory __originalDirname | ||
| args = process.argv[<span class="hljs-number">2.</span>.] | ||
| @@ -314,8 +314,8 @@ | ||
| <span class="hljs-built_in">console</span>.error message + <span class="hljs-string">'\n'</span> | ||
| <span class="hljs-built_in">console</span>.log <span class="hljs-string">'To see a list of all tasks/options, run "cake"'</span> | ||
| process.exit <span class="hljs-number">1</span> | ||
| -<span class="hljs-function"> | ||
| -<span class="hljs-title">missingTask</span> = <span class="hljs-params">(task)</span> -></span> fatalError <span class="hljs-string">"No such task: <span class="hljs-subst">#{task}</span>"</span></pre></div></div> | ||
| + | ||
| +<span class="hljs-function"><span class="hljs-title">missingTask</span> = <span class="hljs-params">(task)</span> -></span> fatalError <span class="hljs-string">"No such task: <span class="hljs-subst">#{task}</span>"</span></pre></div></div> | ||
| </li> | ||
Oops, something went wrong.