Michael Ficarra
38b6a43e26
reverting to 26a28abcb5 behaviour
...
This is only slightly problematic for the most pathological of cases
where a prelude is followed by a set of statements, none of which
generate top-level variables or attempt to return. In these cases, the
non-prelude statements will be indented. See related discussion at
e4b3e838e2 .
2011-12-15 22:11:42 -05:00
Jeremy Ashkenas
121009dec4
Fixes #1813
2011-12-15 16:03:01 -05:00
Jeremy Ashkenas
510fb59e29
Fixes #1871 , allows single-line implicit ends to close implicit objects.
2011-12-15 15:43:38 -05:00
Jeremy Ashkenas
e4b3e838e2
removing the closure-wrapping-removal optimization, because it was incorrectly formatting the code it optimized.
2011-12-15 15:21:58 -05:00
Jeremy Ashkenas
4b70a16cf9
refactoring rewriter to make the methods read consistently.
2011-12-15 13:33:47 -05:00
Jeremy Ashkenas
af0ee70ea3
Fixes #1903
2011-12-15 12:29:03 -05:00
Jeremy Ashkenas
686ef9e7f4
Fixes #1838
2011-12-14 18:31:20 -05:00
Jeremy Ashkenas
fac615108c
Fixes #1861
2011-12-14 12:44:27 -05:00
Jeremy Ashkenas
ddfe89d916
cleaning up super assignment.
2011-12-14 12:38:19 -05:00
Jeremy Ashkenas
b0948f81dd
Fixes #1876
2011-12-14 12:17:21 -05:00
Jeremy Ashkenas
00f9e244f2
Fixes #1922
2011-12-14 11:32:40 -05:00
Jeremy Ashkenas
85286b8ca5
Fixes #1842
2011-12-14 11:02:10 -05:00
Jeremy Ashkenas
74944da211
fixing extra newline in the prelude
2011-12-14 10:41:17 -05:00
Jeremy Ashkenas
c9a0a33fa2
reverting 63ab88
2011-12-14 10:39:20 -05:00
Michael Ficarra
26a28abcb5
fixes #1509 : compile initial comments/literals outside of safety wrapper
2011-12-12 02:49:21 -05:00
Michael Ficarra
621e5648e3
fixed #1858 for real now
2011-12-10 22:40:08 -05:00
Michael Ficarra
f0728fcf8f
fixes #1858 : top-level returns should force safety wrapper
2011-12-10 22:06:38 -05:00
Michael Ficarra
63ab886e9f
removed excessive spacing
2011-12-10 21:19:59 -05:00
Michael Ficarra
7b4f1b165d
fixes #1924 : CoffeeScript.compile shouldn't modify options object
2011-12-10 21:00:28 -05:00
Michael Ficarra
0ce332edca
fixes #1911 : remove spacing around initial skipped comments/JS
2011-12-04 16:43:26 -05:00
Jeremy Ashkenas
b122406683
huh.
2011-11-25 08:49:51 -05:00
Jeremy Ashkenas
35dc56d785
making debugger an expression.
2011-11-25 08:35:20 -05:00
Marijn Haverbeke
26d5c99570
Fix bug in lexer's reserved word error message
2011-11-25 12:46:40 +01:00
Marijn Haverbeke
24836ccf6d
Stop treating debugger statements as jumps
...
Since in most debuggers you can continue past them.
No tests added, since I wasn't sure how to test code with `debugger`
in it.
2011-11-25 12:46:39 +01:00
Jeremy Ashkenas
2c92904109
Reverting conclusion of #1001 -- Throw should be able to be used as part of an expression.
2011-11-24 09:36:16 -05:00
Jeremy Ashkenas
2fb6d0beb9
Revert "Closes #1001 . Throw cannot be directly used as an expression with parens, but can appear as a statement in an expression."
...
This reverts commit 96b22a16eb .
2011-11-24 09:33:45 -05:00
Gerald Lewis
8762e37e58
Merge branch '1840' into 1840_invocation_prototype_prop_access
2011-11-14 11:43:30 -05:00
Gerald Lewis
bde1c6282e
rebuilt jison parser for 1840
2011-11-14 11:36:58 -05:00
Gerald Lewis
a24451b6d3
fixes #1840 : invocations followed by prototype property access now correctly compile
2011-11-14 11:35:54 -05:00
Michael Ficarra
d0b8cded6b
1e25c9da306f38ddf7bd3c63ed7c9540b75384e0#commitcomment-719177
2011-11-14 11:18:45 -05:00
Jeremy Ashkenas
1e25c9da30
Merge pull request #1851 from michaelficarra/issue1844
...
fixes #1844 : bound functions in nested comprehensions causing empty var statements
2011-11-14 07:49:51 -08:00
Trevor Burnham
73acfa18a3
Just showing the error thrown by OptionParser rather than parsing it
2011-11-13 16:20:51 -05:00
Trevor Burnham
266d97f8f5
On second thought, just saying 'run cake' on error rather than listing all options
2011-11-13 15:28:56 -05:00
Trevor Burnham
a70753e6d3
Prefacing task list with the relative Cakefile path
2011-11-13 15:13:05 -05:00
Trevor Burnham
97dbb7bb49
Showing task list on error
2011-11-13 15:12:12 -05:00
Trevor Burnham
79945ad473
Using console.error for errors instead of console.log
2011-11-13 15:11:26 -05:00
Trevor Burnham
1d7a3b4d0f
Adding 'No such option' output to parallel 'No such task' ( fixes #1862 )
2011-11-13 14:53:41 -05:00
satyr
5bf8b422f8
nodes: added missing jump-guard in While::makeReturn, fixing #1850
2011-11-11 06:56:49 +09:00
Trevor Burnham
9633816d7a
Warning when fs.watch is unavailable, rather than throwing errors
2011-11-10 15:11:27 +01:00
Trevor Burnham
cc8708493e
Forgot to build on previous commit
2011-11-10 15:04:33 +01:00
Trevor Burnham
b41a69da2d
Merge pull request #1847 from TrevorBurnham/rewatch
...
Re-fs.watching files on rename event (fixes #1803 )
2011-11-10 05:49:38 -08:00
Trevor Burnham
1ce92d1aeb
Ignoring exception thrown when trying to re-watch a file after rename
2011-11-10 14:44:48 +01:00
Michael Ficarra
424bb17224
cleaning up tab calculation in last commit
2011-11-10 03:14:41 -05:00
Michael Ficarra
6d6a5f609a
fixes #1844 : bound functions in nested comprehensions
...
causing empty var statements
2011-11-10 03:08:38 -05:00
Michael Ficarra
a296957771
fixes #1848 : line number reported as NaN in interpolation parse errors
2011-11-10 01:09:43 -05:00
Michael Ficarra
fbe84e376c
forgot to build 11544f2717
2011-11-10 01:09:21 -05:00
Trevor Burnham
d30aa6d621
Ensuring that fs.watch duplication does not occur
2011-11-09 19:54:43 +01:00
Trevor Burnham
966063db0c
"Re-fs.watching files on rename event"
...
See discussion at #1803 , #1846 , and at
https://github.com/joyent/node/issues/2062
2011-11-09 19:49:14 +01:00
Jeremy Ashkenas
3e41659095
CoffeeScript 1.1.3
2011-11-08 18:01:45 -05:00
Jeremy Ashkenas
d592d2c9cb
Fixes #1803 -- use fs.watch instead of fs.watchFile ... more of a PITA, but hey.
2011-11-08 16:13:45 -05:00