Skip to content

2.3.0 #5043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 29, 2018
Merged

2.3.0 #5043

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7c4c280
Move analytics initialization into docs.coffee
GeoffreyBooth Apr 25, 2018
6a25b37
Bump Bootstrap and CodeMirror versions
GeoffreyBooth Apr 25, 2018
ad10e2c
Update output
GeoffreyBooth Apr 27, 2018
7529f12
Merge CodeMirror styles
GeoffreyBooth Apr 27, 2018
e991caa
Update CodeMirror styles
GeoffreyBooth Apr 27, 2018
dd0b300
Better flexbox layout for docs, including flex auto-sized sidebar and…
GeoffreyBooth Apr 27, 2018
a2c5bf9
Minor styling fixes for Edge
GeoffreyBooth Apr 27, 2018
9703109
Fix scrollspy for new layout
GeoffreyBooth Apr 27, 2018
8f1f856
Update output
GeoffreyBooth Apr 27, 2018
a057e38
Clicking on the CoffeeScript logo in the navbar should scroll to top;…
GeoffreyBooth Apr 27, 2018
d8425c7
Update output
GeoffreyBooth Apr 27, 2018
cc246fe
2.3.0 changelog
GeoffreyBooth Apr 27, 2018
ce9c0cb
Update operators section for **
GeoffreyBooth Apr 27, 2018
41a9a52
Update docs for ES2018 object rest/spread
GeoffreyBooth Apr 27, 2018
c3f4852
Remove references to Node's experimental modules support
GeoffreyBooth Apr 18, 2018
53f04f3
Move the README coffee cup to the right side, so our name isn't cut o…
GeoffreyBooth Apr 27, 2018
e20e414
Update dependencies
GeoffreyBooth Apr 27, 2018
cf17add
Add compatibility note for async generators
GeoffreyBooth Apr 27, 2018
6022a07
Bump version to 2.3.0 and update output
GeoffreyBooth Apr 27, 2018
ef7c9c1
Have CI test in Node 10 instead of 9
GeoffreyBooth Apr 27, 2018
030ddbe
Somehow this gets generated slightly differently in Node 10
GeoffreyBooth Apr 27, 2018
7dad5e5
Merge branch 'master' into 2.3.0
GeoffreyBooth Apr 27, 2018
df577ed
Fix #4042: Update broken link
GeoffreyBooth Apr 28, 2018
237e6a2
Merge branch '2.3.0' of github.com:GeoffreyBooth/coffeescript into 2.3.0
GeoffreyBooth Apr 28, 2018
aa48527
Merge branch 'master' of github.com:jashkenas/coffeescript into 2.3.0
GeoffreyBooth Apr 29, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
- 6
- 8
- 9
- 10

cache:
directories:
Expand Down
7 changes: 6 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@

* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffeescript/tree/master/src). If you’re just getting started with CoffeeScript, there’s a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).

* In your pull request, do not add documentation to `index.html` or re-build the minified `coffeescript.js` file. We’ll do those things before cutting a new release. You _should,_ however, commit the updated compiled JavaScript files in `lib`.
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffeescript.js` file. We’ll do those things before cutting a new release. You _should,_ however, commit the updated compiled JavaScript files in `lib`.

* To get started, read the guides in the wiki:
* [Hacking on the CoffeeScript Compiler](https://github.com/jashkenas/coffeescript/wiki/%5BHowTo%5D-Hacking-on-the-CoffeeScript-Compiler)
* [How parsing works](https://github.com/jashkenas/coffeescript/wiki/%5BHowTo%5D-How-parsing-works)
* [Update the docs](https://github.com/jashkenas/coffeescript/wiki/%5BHowTo%5D-Update-the-docs)
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1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@ @@@@ @@ } }{ {
@@@@ @@@@ @@ @@@ @@@ @@@ @@@ @@@ @@@ { }{ } }
@@@@ @@@@ @@ @@@ @@@ @@@@@@@@ @@@@@@@@ { }{ }{ { }
@@@@@ @@@@ @@ @@@ @@@ @@@ @@@ { { } { } { } }
@@@@@@@@@@ @@@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@@ { } { } { }
@@@@@ @@@ @@@ @@@@@ @@@@@ @@@@@@ { } { } @@@@@@@
@@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@ @@@ @@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@ @@ @@@ @@@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@ @@ @@@@ @@@ @@@@@@@@@@@@@@@@@@@@@
@@@@@ @@@@@ @@ @@ @@@ @@@@@@@ @@@@@ @@@ @@@@@@@@@@@@@@@@@@
@@@@@ @@@ @@@ @@@@@@@@ @@@@ @@@@ @@@@@@@ @@@ @@@@@@@@@@@@@@@@
@@@@@ @@@ @@@@ @@@@ @@@ @@@ @@@ @@@@@@@@@@@@@@
@@@@@ @@@@ @@@@ @@@@ @@@@ @@@@ @@@@ @@@@
@@@ @@@@ @@@ @@@@ @@@@ @@@ @@@@ @@@@
@@@ @@@@ @@@@ @@@@ @@@@ @@@@ @@@@ @@@@
@@@@@@@@@ @@@@@@ @@@@ @@@@ @@@@@@@@@ @@@@
@@@ @@@@
@@@
@@@

CoffeeScript is a little language that compiles into JavaScript.

Expand All @@ -30,11 +30,13 @@ CoffeeScript is a little language that compiles into JavaScript.
Once you have Node.js installed:

```shell
# Install locally for a project:
npm install --save-dev coffeescript

# Install globally to execute .coffee files anywhere:
npm install --global coffeescript
```

Leave off the `--global` if you don’t wish to install globally.

## Getting Started

Execute a script:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '8'
- nodejs_version: '9'
- nodejs_version: '10'
- nodejs_version: '' # Installs latest.

install:
Expand Down
29 changes: 17 additions & 12 deletions docs/v2/annotated-source/grammar.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,11 @@ <h2 id="grammatical-rules">Grammatical Rules</h2>
o <span class="hljs-string">'Identifier'</span>
o <span class="hljs-string">'Property'</span>
o <span class="hljs-string">'ThisProperty'</span>
o <span class="hljs-string">'[ Expression ]'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> ComputedPropertyName $<span class="hljs-number">2</span>
]

ObjAssignable: [
o <span class="hljs-string">'SimpleObjAssignable'</span>
o <span class="hljs-string">'[ Expression ]'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> ComputedPropertyName $<span class="hljs-number">2</span>
o <span class="hljs-string">'AlphaNumeric'</span>
]</pre></div></div>

Expand Down Expand Up @@ -1492,26 +1492,31 @@ <h2 id="grammatical-rules">Grammatical Rules</h2>
</div>

<div class="content"><div class='highlight'><pre> For: [
o <span class="hljs-string">'Statement ForBody'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For $<span class="hljs-number">1</span>, $<span class="hljs-number">2</span>
o <span class="hljs-string">'Expression ForBody'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For $<span class="hljs-number">1</span>, $<span class="hljs-number">2</span>
o <span class="hljs-string">'ForBody Block'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For $<span class="hljs-number">2</span>, $<span class="hljs-number">1</span>
o <span class="hljs-string">'ForLineBody Block'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For $<span class="hljs-number">2</span>, $<span class="hljs-number">1</span>
o <span class="hljs-string">'Statement ForBody'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">2.</span>addBody $<span class="hljs-number">1</span>
o <span class="hljs-string">'Expression ForBody'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">2.</span>addBody $<span class="hljs-number">1</span>
o <span class="hljs-string">'ForBody Block'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">1.</span>addBody $<span class="hljs-number">2</span>
o <span class="hljs-string">'ForLineBody Block'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">1.</span>addBody $<span class="hljs-number">2</span>
]

ForBody: [
o <span class="hljs-string">'FOR Range'</span>, <span class="hljs-function">-&gt;</span> source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>))
o <span class="hljs-string">'FOR Range BY Expression'</span>, <span class="hljs-function">-&gt;</span> source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>)), step: $<span class="hljs-number">4</span>
o <span class="hljs-string">'ForStart ForSource'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">2.</span>own = $<span class="hljs-number">1.</span>own; $<span class="hljs-number">2.</span>ownTag = $<span class="hljs-number">1.</span>ownTag; $<span class="hljs-number">2.</span>name = $<span class="hljs-number">1</span>[<span class="hljs-number">0</span>]; $<span class="hljs-number">2.</span>index = $<span class="hljs-number">1</span>[<span class="hljs-number">1</span>]; $<span class="hljs-number">2</span>
o <span class="hljs-string">'FOR Range'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For [], source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>))
o <span class="hljs-string">'FOR Range BY Expression'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For [], source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>)), step: $<span class="hljs-number">4</span>
o <span class="hljs-string">'ForStart ForSource'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">1.</span>addSource $<span class="hljs-number">2</span>
]

ForLineBody: [
o <span class="hljs-string">'FOR Range BY ExpressionLine'</span>, <span class="hljs-function">-&gt;</span> source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>)), step: $<span class="hljs-number">4</span>
o <span class="hljs-string">'ForStart ForLineSource'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">2.</span>own = $<span class="hljs-number">1.</span>own; $<span class="hljs-number">2.</span>ownTag = $<span class="hljs-number">1.</span>ownTag; $<span class="hljs-number">2.</span>name = $<span class="hljs-number">1</span>[<span class="hljs-number">0</span>]; $<span class="hljs-number">2.</span>index = $<span class="hljs-number">1</span>[<span class="hljs-number">1</span>]; $<span class="hljs-number">2</span>
o <span class="hljs-string">'FOR Range BY ExpressionLine'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For [], source: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Value($<span class="hljs-number">2</span>)), step: $<span class="hljs-number">4</span>
o <span class="hljs-string">'ForStart ForLineSource'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">1.</span>addSource $<span class="hljs-number">2</span>
]

ForStart: [
o <span class="hljs-string">'FOR ForVariables'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">2</span>
o <span class="hljs-string">'FOR OWN ForVariables'</span>, <span class="hljs-function">-&gt;</span> $<span class="hljs-number">3.</span>own = <span class="hljs-literal">yes</span>; $<span class="hljs-number">3.</span>ownTag = (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">2</span>)); $<span class="hljs-number">3</span>
o <span class="hljs-string">'FOR ForVariables'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> For [], name: $<span class="hljs-number">2</span>[<span class="hljs-number">0</span>], index: $<span class="hljs-number">2</span>[<span class="hljs-number">1</span>]
o <span class="hljs-string">'FOR AWAIT ForVariables'</span>, <span class="hljs-function">-&gt;</span>
[name, index] = $<span class="hljs-number">3</span>
<span class="hljs-keyword">new</span> For [], {name, index, await: <span class="hljs-literal">yes</span>, awaitTag: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">2</span>))}
o <span class="hljs-string">'FOR OWN ForVariables'</span>, <span class="hljs-function">-&gt;</span>
[name, index] = $<span class="hljs-number">3</span>
<span class="hljs-keyword">new</span> For [], {name, index, own: <span class="hljs-literal">yes</span>, ownTag: (LOC(<span class="hljs-number">2</span>) <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">2</span>))}
]</pre></div></div>

</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/annotated-source/lexer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,7 @@ <h2 id="constants">Constants</h2>
///</span>

REGEX_FLAGS = <span class="hljs-regexp">/^\w*/</span>
VALID_FLAGS = <span class="hljs-regexp">/^(?!.*(.).*\1)[imguy]*$/</span>
VALID_FLAGS = <span class="hljs-regexp">/^(?!.*(.).*\1)[gimsuy]*$/</span>

HEREGEX = <span class="hljs-regexp">/// ^
(?:
Expand Down
Loading