Ahh, whitespace. CoffeeScript's compiled JS now tries to space things
@@ -1532,10 +1499,7 @@ Expressions
-
+ <%= releaseHeader('2011-08-04', '1.1.2', '1.1.1') %>
Fixes for block comment formatting, ?= compilation, implicit calls
against control structures, implicit invocation of a try/catch block,
variadic arguments leaking from local scope, line numbers in syntax errors
@@ -1546,17 +1510,13 @@ Expressions
-
+ <%= releaseHeader('2011-05-10', '1.1.1') %>
Bugfix release for classes with external constructor functions, see
issue #1182.
-
+ <%= releaseHeader('2011-05-01', '1.1.0') %>
When running via the coffee executable, process.argv and
friends now report coffee instead of node.
Better compatibility with Node.js 0.4.x module lookup changes.
@@ -1572,9 +1532,7 @@ Expressions
-
+ <%= releaseHeader('2011-01-31', '1.0.1') %>
Fixed a lexer bug with Unicode identifiers. Updated REPL for compatibility
with Node.js 0.3.7. Fixed requiring relative paths in the REPL. Trailing
return and return undefined are now optimized away.
@@ -1585,9 +1543,7 @@ Expressions
-
+ <%= releaseHeader('2010-12-24', '1.0.0') %>
CoffeeScript loops no longer try to preserve block scope when functions
are being generated within the loop body. Instead, you can use the
do keyword to create a convenient closure wrapper.
@@ -1599,9 +1555,7 @@ Expressions
-
+ <%= releaseHeader('2010-12-06', '0.9.6') %>
The REPL now properly formats stacktraces, and stays alive through
asynchronous exceptions. Using --watch now prints timestamps as
files are compiled. Fixed some accidentally-leaking variables within
@@ -1613,9 +1567,7 @@ Expressions
-
+ <%= releaseHeader('2010-11-21', '0.9.5') %>
0.9.5 should be considered the first release candidate for CoffeeScript 1.0.
There have been a large number of internal changes since the previous release,
many contributed from satyr's Coco
@@ -1629,9 +1581,7 @@ Expressions
-
+ <%= releaseHeader('2010-09-21', '0.9.4') %>
CoffeeScript now uses appropriately-named temporary variables, and recycles
their references after use. Added require.extensions support for
Node.js 0.3. Loading CoffeeScript in the browser now adds just a
@@ -1640,9 +1590,7 @@ Expressions
-
+ <%= releaseHeader('2010-09-16', '0.9.3') %>
CoffeeScript switch statements now compile into JS switch
statements — they previously compiled into if/else chains
for JavaScript 1.3 compatibility.
@@ -1651,9 +1599,7 @@ Expressions
-
+ <%= releaseHeader('2010-08-23', '0.9.2') %>
Specifying the start and end of a range literal is now optional, eg. array[3..].
You can now say a not instanceof b.
Fixed important bugs with nested significant and non-significant indentation (Issue #637).
@@ -1667,9 +1613,7 @@ Expressions
-
+ <%= releaseHeader('2010-08-11', '0.9.1') %>
Bugfix release for 0.9.1. Greatly improves the handling of mixed
implicit objects, implicit function calls, and implicit indentation.
String and regex interpolation is now strictly #{ ... } (Ruby style).
@@ -1678,9 +1622,7 @@ Expressions
-
+ <%= releaseHeader('2010-08-04', '0.9.0') %>
The CoffeeScript 0.9 series is considered to be a release candidate
for 1.0; let's give her a shakedown cruise. 0.9.0 introduces a massive
backwards-incompatible change: Assignment now uses =, and object
@@ -1704,17 +1646,13 @@ Expressions
-
+ <%= releaseHeader('2010-07-12', '0.7.2') %>
Quick bugfix (right after 0.7.1) for a problem that prevented coffee
command-line options from being parsed in some circumstances.
-
+ <%= releaseHeader('2010-07-11', '0.7.1') %>
Block-style comments are now passed through and printed as JavaScript block
comments -- making them useful for licenses and copyright headers. Better
support for running coffee scripts standalone via hashbangs.
@@ -1722,9 +1660,7 @@ Expressions
-
+ <%= releaseHeader('2010-06-28', '0.7.0') %>
Official CoffeeScript variable style is now camelCase, as in JavaScript.
Reserved words are now allowed as object keys, and will be quoted for you.
Range comprehensions now generate cleaner code, but you have to specify by -1
@@ -1741,9 +1677,7 @@ Expressions
-
+ <%= releaseHeader('2010-05-15', '0.6.2') %>
The coffee command will now preserve directory structure when
compiling a directory full of scripts. Fixed two omissions that were preventing
the CoffeeScript compiler from running live within Internet Explorer.
@@ -1758,26 +1692,20 @@ Expressions
-
+ <%= releaseHeader('2010-04-12', '0.6.1') %>
Upgraded CoffeeScript for compatibility with the new Node.js v0.1.90
series.
-
+ <%= releaseHeader('2010-04-03', '0.6.0') %>
Trailing commas are now allowed, a-la Python. Static
properties may be assigned directly within class definitions,
using @property notation.
-
+ <%= releaseHeader('2010-03-23', '0.5.6') %>
Interpolation can now be used within regular expressions and heredocs, as well as
strings. Added the <- bind operator.
Allowing assignment to half-expressions instead of special ||=-style
@@ -1788,9 +1716,7 @@ Expressions
-
+ <%= releaseHeader('2010-03-08', '0.5.5') %>
String interpolation, contributed by
Stan Angeloff.
Since --run has been the default since 0.5.3, updating
@@ -1799,18 +1725,14 @@ Expressions
-
+ <%= releaseHeader('2010-03-03', '0.5.4') %>
Bugfix that corrects the Node.js global constants __filename and
__dirname. Tweaks for more flexible parsing of nested function
literals and improperly-indented comments. Updates for the latest Node.js API.
-
+ <%= releaseHeader('2010-02-27', '0.5.3') %>
CoffeeScript now has a syntax for defining classes. Many of the core
components (Nodes, Lexer, Rewriter, Scope, Optparse) are using them.
Cakefiles can use optparse.coffee to define options for tasks.
@@ -1820,9 +1742,7 @@ Expressions
-
+ <%= releaseHeader('2010-02-25', '0.5.2') %>
Added a compressed version of the compiler for inclusion in web pages as
extras/coffee-script.js. It'll automatically run any script tags
with type text/coffeescript for you. Added a --stdio option
@@ -1831,9 +1751,7 @@ Expressions
-
+ <%= releaseHeader('2010-02-24', '0.5.1') %>
Improvements to null soaking with the existential operator, including
soaks on indexed properties. Added conditions to while loops,
so you can use them as filters with when, in the same manner as
@@ -1841,27 +1759,21 @@ Expressions
-
+ <%= releaseHeader('2010-02-21', '0.5.0') %>
CoffeeScript 0.5.0 is a major release, While there are no language changes,
the Ruby compiler has been removed in favor of a self-hosting
compiler written in pure CoffeeScript.
-
+ <%= releaseHeader('2010-02-08', '0.3.2') %>
@property is now a shorthand for this.property.
Switched the default JavaScript engine from Narwhal to Node.js. Pass
the --narwhal flag if you'd like to continue using it.
-
+ <%= releaseHeader('2010-01-26', '0.3.0') %>
CoffeeScript 0.3 includes major syntax changes:
The function symbol was changed to
@@ -1877,9 +1789,7 @@ Expressions
-
+ <%= releaseHeader('2010-01-17', '0.2.6') %>
Added Python-style chained comparisons, the conditional existence
operator ?=, and some examples from Beautiful Code.
Bugfixes relating to statement-to-expression conversion, arguments-to-array
@@ -1887,9 +1797,7 @@ Expressions
-
+ <%= releaseHeader('2010-01-13', '0.2.5') %>
The conditions in switch statements can now take multiple values at once —
If any of them are true, the case will run. Added the long arrow ==>,
which defines and immediately binds a function to this. While loops can
@@ -1898,26 +1806,20 @@ Expressions
-
+ <%= releaseHeader('2010-01-12', '0.2.4') %>
Added ECMAScript Harmony style destructuring assignment, for dealing with
extracting values from nested arrays and objects. Added indentation-sensitive
heredocs for nicely formatted strings or chunks of code.
-
+ <%= releaseHeader('2010-01-11', '0.2.3') %>
Axed the unsatisfactory ino keyword, replacing it with of for
object comprehensions. They now look like: for prop, value of object.
-
+ <%= releaseHeader('2010-01-10', '0.2.2') %>
When performing a comprehension over an object, use ino, instead
of in, which helps us generate smaller, more efficient code at
compile time.
@@ -1938,16 +1840,12 @@ Expressions
-
+ <%= releaseHeader('2010-01-05', '0.2.1') %>
Arguments objects are now converted into real arrays when referenced.
-
+ <%= releaseHeader('2010-01-05', '0.2.0') %>
Major release. Significant whitespace. Better statement-to-expression
conversion. Splats. Splice literals. Object comprehensions. Blocks.
The existential operator. Many thanks to all the folks who posted issues,
@@ -1957,18 +1855,14 @@ Expressions
-
+ <%= releaseHeader('2009-12-27', '0.1.6') %>
Bugfix for running coffee --interactive and --run
from outside of the CoffeeScript directory. Bugfix for nested
function/if-statements.
-
+ <%= releaseHeader('2009-12-26', '0.1.5') %>
Array slice literals and array comprehensions can now both take Ruby-style
ranges to specify the start and end. JavaScript variable declaration is
now pushed up to the top of the scope, making all assignment statements into
@@ -1977,9 +1871,7 @@ Expressions
-
+ <%= releaseHeader('2009-12-25', '0.1.4') %>
The official CoffeeScript extension is now .coffee instead of
.cs, which properly belongs to
C#.
@@ -1991,9 +1883,7 @@ Expressions
-
+ <%= releaseHeader('2009-12-25', '0.1.3') %>
The coffee command now includes --interactive,
which launches an interactive CoffeeScript session, and --run,
which directly compiles and executes a script. Both options depend on a
@@ -2007,9 +1897,7 @@ Expressions
-
+ <%= releaseHeader('2009-12-24', '0.1.2') %>
Fixed a bug with calling super() through more than one level of
inheritance, with the re-addition of the extends keyword.
Added experimental Narwhal
@@ -2021,16 +1909,12 @@ Expressions
-
+ <%= releaseHeader('2009-12-24', '0.1.1') %>
Added instanceof and typeof as operators.
-
+ <%= releaseHeader('2009-12-24', '0.1.0') %>
Initial CoffeeScript release.
From 551cf56cebafb1ed3a0cb9ae9d2142fc4a4eea12 Mon Sep 17 00:00:00 2001
From: David Chambers
Date: Sun, 16 Feb 2014 18:09:17 -0800
Subject: [PATCH 10/56] changelog: add missing compare view URLs
---
documentation/index.html.js | 78 ++++++++++++++++++-------------------
1 file changed, 39 insertions(+), 39 deletions(-)
diff --git a/documentation/index.html.js b/documentation/index.html.js
index eee9e24ac5..1798c3c7ae 100644
--- a/documentation/index.html.js
+++ b/documentation/index.html.js
@@ -1510,13 +1510,13 @@ Expressions
- <%= releaseHeader('2011-05-10', '1.1.1') %>
+ <%= releaseHeader('2011-05-10', '1.1.1', '1.1.0') %>
Bugfix release for classes with external constructor functions, see
issue #1182.
- <%= releaseHeader('2011-05-01', '1.1.0') %>
+ <%= releaseHeader('2011-05-01', '1.1.0', '1.0.1') %>
When running via the coffee executable, process.argv and
friends now report coffee instead of node.
Better compatibility with Node.js 0.4.x module lookup changes.
@@ -1532,7 +1532,7 @@ Expressions
- <%= releaseHeader('2011-01-31', '1.0.1') %>
+ <%= releaseHeader('2011-01-31', '1.0.1', '1.0.0') %>
Fixed a lexer bug with Unicode identifiers. Updated REPL for compatibility
with Node.js 0.3.7. Fixed requiring relative paths in the REPL. Trailing
return and return undefined are now optimized away.
@@ -1543,7 +1543,7 @@ Expressions
- <%= releaseHeader('2010-12-24', '1.0.0') %>
+ <%= releaseHeader('2010-12-24', '1.0.0', '0.9.6') %>
CoffeeScript loops no longer try to preserve block scope when functions
are being generated within the loop body. Instead, you can use the
do keyword to create a convenient closure wrapper.
@@ -1555,7 +1555,7 @@ Expressions
- <%= releaseHeader('2010-12-06', '0.9.6') %>
+ <%= releaseHeader('2010-12-06', '0.9.6', '0.9.5') %>
The REPL now properly formats stacktraces, and stays alive through
asynchronous exceptions. Using --watch now prints timestamps as
files are compiled. Fixed some accidentally-leaking variables within
@@ -1567,7 +1567,7 @@ Expressions
- <%= releaseHeader('2010-11-21', '0.9.5') %>
+ <%= releaseHeader('2010-11-21', '0.9.5', '0.9.4') %>
0.9.5 should be considered the first release candidate for CoffeeScript 1.0.
There have been a large number of internal changes since the previous release,
many contributed from satyr's Coco
@@ -1581,7 +1581,7 @@ Expressions
- <%= releaseHeader('2010-09-21', '0.9.4') %>
+ <%= releaseHeader('2010-09-21', '0.9.4', '0.9.3') %>
CoffeeScript now uses appropriately-named temporary variables, and recycles
their references after use. Added require.extensions support for
Node.js 0.3. Loading CoffeeScript in the browser now adds just a
@@ -1590,7 +1590,7 @@ Expressions
- <%= releaseHeader('2010-09-16', '0.9.3') %>
+ <%= releaseHeader('2010-09-16', '0.9.3', '0.9.2') %>
CoffeeScript switch statements now compile into JS switch
statements — they previously compiled into if/else chains
for JavaScript 1.3 compatibility.
@@ -1599,7 +1599,7 @@ Expressions
- <%= releaseHeader('2010-08-23', '0.9.2') %>
+ <%= releaseHeader('2010-08-23', '0.9.2', '0.9.1') %>
Specifying the start and end of a range literal is now optional, eg. array[3..].
You can now say a not instanceof b.
Fixed important bugs with nested significant and non-significant indentation (Issue #637).
@@ -1613,7 +1613,7 @@ Expressions
- <%= releaseHeader('2010-08-11', '0.9.1') %>
+ <%= releaseHeader('2010-08-11', '0.9.1', '0.9.0') %>
Bugfix release for 0.9.1. Greatly improves the handling of mixed
implicit objects, implicit function calls, and implicit indentation.
String and regex interpolation is now strictly #{ ... } (Ruby style).
@@ -1622,7 +1622,7 @@ Expressions
- <%= releaseHeader('2010-08-04', '0.9.0') %>
+ <%= releaseHeader('2010-08-04', '0.9.0', '0.7.2') %>
The CoffeeScript 0.9 series is considered to be a release candidate
for 1.0; let's give her a shakedown cruise. 0.9.0 introduces a massive
backwards-incompatible change: Assignment now uses =, and object
@@ -1646,13 +1646,13 @@ Expressions
- <%= releaseHeader('2010-07-12', '0.7.2') %>
+ <%= releaseHeader('2010-07-12', '0.7.2', '0.7.1') %>
Quick bugfix (right after 0.7.1) for a problem that prevented coffee
command-line options from being parsed in some circumstances.
- <%= releaseHeader('2010-07-11', '0.7.1') %>
+ <%= releaseHeader('2010-07-11', '0.7.1', '0.7.0') %>
Block-style comments are now passed through and printed as JavaScript block
comments -- making them useful for licenses and copyright headers. Better
support for running coffee scripts standalone via hashbangs.
@@ -1660,7 +1660,7 @@ Expressions
- <%= releaseHeader('2010-06-28', '0.7.0') %>
+ <%= releaseHeader('2010-06-28', '0.7.0', '0.6.2') %>
Official CoffeeScript variable style is now camelCase, as in JavaScript.
Reserved words are now allowed as object keys, and will be quoted for you.
Range comprehensions now generate cleaner code, but you have to specify by -1
@@ -1677,7 +1677,7 @@ Expressions
- <%= releaseHeader('2010-05-15', '0.6.2') %>
+ <%= releaseHeader('2010-05-15', '0.6.2', '0.6.1') %>
The coffee command will now preserve directory structure when
compiling a directory full of scripts. Fixed two omissions that were preventing
the CoffeeScript compiler from running live within Internet Explorer.
@@ -1692,20 +1692,20 @@ Expressions
- <%= releaseHeader('2010-04-12', '0.6.1') %>
+ <%= releaseHeader('2010-04-12', '0.6.1', '0.6.0') %>
Upgraded CoffeeScript for compatibility with the new Node.js v0.1.90
series.
- <%= releaseHeader('2010-04-03', '0.6.0') %>
+ <%= releaseHeader('2010-04-03', '0.6.0', '0.5.6') %>
Trailing commas are now allowed, a-la Python. Static
properties may be assigned directly within class definitions,
using @property notation.
- <%= releaseHeader('2010-03-23', '0.5.6') %>
+ <%= releaseHeader('2010-03-23', '0.5.6', '0.5.5') %>
Interpolation can now be used within regular expressions and heredocs, as well as
strings. Added the <- bind operator.
Allowing assignment to half-expressions instead of special ||=-style
@@ -1716,7 +1716,7 @@ Expressions
- <%= releaseHeader('2010-03-08', '0.5.5') %>
+ <%= releaseHeader('2010-03-08', '0.5.5', '0.5.4') %>
String interpolation, contributed by
Stan Angeloff.
Since --run has been the default since 0.5.3, updating
@@ -1725,14 +1725,14 @@ Expressions
- <%= releaseHeader('2010-03-03', '0.5.4') %>
+ <%= releaseHeader('2010-03-03', '0.5.4', '0.5.3') %>
Bugfix that corrects the Node.js global constants __filename and
__dirname. Tweaks for more flexible parsing of nested function
literals and improperly-indented comments. Updates for the latest Node.js API.
- <%= releaseHeader('2010-02-27', '0.5.3') %>
+ <%= releaseHeader('2010-02-27', '0.5.3', '0.5.2') %>
CoffeeScript now has a syntax for defining classes. Many of the core
components (Nodes, Lexer, Rewriter, Scope, Optparse) are using them.
Cakefiles can use optparse.coffee to define options for tasks.
@@ -1742,7 +1742,7 @@ Expressions
- <%= releaseHeader('2010-02-25', '0.5.2') %>
+ <%= releaseHeader('2010-02-25', '0.5.2', '0.5.1') %>
Added a compressed version of the compiler for inclusion in web pages as
extras/coffee-script.js. It'll automatically run any script tags
with type text/coffeescript for you. Added a --stdio option
@@ -1751,7 +1751,7 @@ Expressions
- <%= releaseHeader('2010-02-24', '0.5.1') %>
+ <%= releaseHeader('2010-02-24', '0.5.1', '0.5.0') %>
Improvements to null soaking with the existential operator, including
soaks on indexed properties. Added conditions to while loops,
so you can use them as filters with when, in the same manner as
@@ -1759,21 +1759,21 @@ Expressions
- <%= releaseHeader('2010-02-21', '0.5.0') %>
+ <%= releaseHeader('2010-02-21', '0.5.0', '0.3.2') %>
CoffeeScript 0.5.0 is a major release, While there are no language changes,
the Ruby compiler has been removed in favor of a self-hosting
compiler written in pure CoffeeScript.
- <%= releaseHeader('2010-02-08', '0.3.2') %>
+ <%= releaseHeader('2010-02-08', '0.3.2', '0.3.0') %>
@property is now a shorthand for this.property.
Switched the default JavaScript engine from Narwhal to Node.js. Pass
the --narwhal flag if you'd like to continue using it.
- <%= releaseHeader('2010-01-26', '0.3.0') %>
+ <%= releaseHeader('2010-01-26', '0.3.0', '0.2.6') %>
CoffeeScript 0.3 includes major syntax changes:
The function symbol was changed to
@@ -1789,7 +1789,7 @@ Expressions
- <%= releaseHeader('2010-01-17', '0.2.6') %>
+ <%= releaseHeader('2010-01-17', '0.2.6', '0.2.5') %>
Added Python-style chained comparisons, the conditional existence
operator ?=, and some examples from Beautiful Code.
Bugfixes relating to statement-to-expression conversion, arguments-to-array
@@ -1797,7 +1797,7 @@ Expressions
- <%= releaseHeader('2010-01-13', '0.2.5') %>
+ <%= releaseHeader('2010-01-13', '0.2.5', '0.2.4') %>
The conditions in switch statements can now take multiple values at once —
If any of them are true, the case will run. Added the long arrow ==>,
which defines and immediately binds a function to this. While loops can
@@ -1806,20 +1806,20 @@ Expressions
- <%= releaseHeader('2010-01-12', '0.2.4') %>
+ <%= releaseHeader('2010-01-12', '0.2.4', '0.2.3') %>
Added ECMAScript Harmony style destructuring assignment, for dealing with
extracting values from nested arrays and objects. Added indentation-sensitive
heredocs for nicely formatted strings or chunks of code.
- <%= releaseHeader('2010-01-11', '0.2.3') %>
+ <%= releaseHeader('2010-01-11', '0.2.3', '0.2.2') %>
Axed the unsatisfactory ino keyword, replacing it with of for
object comprehensions. They now look like: for prop, value of object.
- <%= releaseHeader('2010-01-10', '0.2.2') %>
+ <%= releaseHeader('2010-01-10', '0.2.2', '0.2.1') %>
When performing a comprehension over an object, use ino, instead
of in, which helps us generate smaller, more efficient code at
compile time.
@@ -1840,12 +1840,12 @@ Expressions
- <%= releaseHeader('2010-01-05', '0.2.1') %>
+ <%= releaseHeader('2010-01-05', '0.2.1', '0.2.0') %>
Arguments objects are now converted into real arrays when referenced.
- <%= releaseHeader('2010-01-05', '0.2.0') %>
+ <%= releaseHeader('2010-01-05', '0.2.0', '0.1.6') %>
Major release. Significant whitespace. Better statement-to-expression
conversion. Splats. Splice literals. Object comprehensions. Blocks.
The existential operator. Many thanks to all the folks who posted issues,
@@ -1855,14 +1855,14 @@ Expressions
- <%= releaseHeader('2009-12-27', '0.1.6') %>
+ <%= releaseHeader('2009-12-27', '0.1.6', '0.1.5') %>
Bugfix for running coffee --interactive and --run
from outside of the CoffeeScript directory. Bugfix for nested
function/if-statements.
- <%= releaseHeader('2009-12-26', '0.1.5') %>
+ <%= releaseHeader('2009-12-26', '0.1.5', '0.1.4') %>
Array slice literals and array comprehensions can now both take Ruby-style
ranges to specify the start and end. JavaScript variable declaration is
now pushed up to the top of the scope, making all assignment statements into
@@ -1871,7 +1871,7 @@ Expressions
- <%= releaseHeader('2009-12-25', '0.1.4') %>
+ <%= releaseHeader('2009-12-25', '0.1.4', '0.1.3') %>
The official CoffeeScript extension is now .coffee instead of
.cs, which properly belongs to
C#.
@@ -1883,7 +1883,7 @@ Expressions
- <%= releaseHeader('2009-12-25', '0.1.3') %>
+ <%= releaseHeader('2009-12-25', '0.1.3', '0.1.2') %>
The coffee command now includes --interactive,
which launches an interactive CoffeeScript session, and --run,
which directly compiles and executes a script. Both options depend on a
@@ -1897,7 +1897,7 @@ Expressions
- <%= releaseHeader('2009-12-24', '0.1.2') %>
+ <%= releaseHeader('2009-12-24', '0.1.2', '0.1.1') %>
Fixed a bug with calling super() through more than one level of
inheritance, with the re-addition of the extends keyword.
Added experimental Narwhal
@@ -1909,7 +1909,7 @@ Expressions
- <%= releaseHeader('2009-12-24', '0.1.1') %>
+ <%= releaseHeader('2009-12-24', '0.1.1', '0.1.0') %>
Added instanceof and typeof as operators.
From a323160d147785221b5af2c5476754d91aaa55c1 Mon Sep 17 00:00:00 2001
From: Sean Hussey
Date: Mon, 17 Feb 2014 18:37:10 -0500
Subject: [PATCH 11/56] Rudimentary fix for jashkenas/coffee-script#3379.
---
lib/coffee-script/lexer.js | 2 +-
src/lexer.coffee | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/coffee-script/lexer.js b/lib/coffee-script/lexer.js
index ed5ce97586..8952b9d0c1 100644
--- a/lib/coffee-script/lexer.js
+++ b/lib/coffee-script/lexer.js
@@ -169,7 +169,7 @@
var octalEsc, quote, string, trimmed;
switch (quote = this.chunk.charAt(0)) {
case "'":
- string = SIMPLESTR.exec(this.chunk)[0];
+ string = (SIMPLESTR.exec(this.chunk) || [])[0];
break;
case '"':
string = this.balancedString(this.chunk, '"');
diff --git a/src/lexer.coffee b/src/lexer.coffee
index 23ae12ecf3..f736ec8fce 100644
--- a/src/lexer.coffee
+++ b/src/lexer.coffee
@@ -187,7 +187,7 @@ exports.Lexer = class Lexer
# are balanced within the string's contents, and within nested interpolations.
stringToken: ->
switch quote = @chunk.charAt 0
- when "'" then [string] = SIMPLESTR.exec @chunk
+ when "'" then [string] = SIMPLESTR.exec(@chunk) || []
when '"' then string = @balancedString @chunk, '"'
return 0 unless string
trimmed = @removeNewlines string[1...-1]
From 81e2253a55c15fb7f6630d9981857ed7268e81cc Mon Sep 17 00:00:00 2001
From: David Chambers
Date: Mon, 17 Feb 2014 21:45:49 -0800
Subject: [PATCH 12/56] changelog: replace inline CSS
---
Cakefile | 2 +-
documentation/css/docs.css | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Cakefile b/Cakefile
index 217d2a0e40..1124cf9039 100644
--- a/Cakefile
+++ b/Cakefile
@@ -86,7 +86,7 @@ formatDate = (date) ->
releaseHeader = (date, version, prevVersion) -> """
-