Simon Lydell
6c6c8d48bf
Ensure that all source files end with a single \n
...
This was done by first checking all files in the repository root by hand, and
then by doing the following:
$ npm i get-stdin@4
$ cat clean.coffee
fs = require 'fs'
stdin = require 'get-stdin'
stdin (text) ->
for file in text.trim().split('\n')
contents = fs.readFileSync file
.toString().replace /\s*$/, '\n'
fs.writeFileSync file, contents
return
$ ls !(node_modules)/**/*.coffee | coffee clean.coffee
2015-09-03 19:20:12 +02:00
xixixao
b859d92d2c
Back to non-naked constructor, @, preincrement, comprehension bracketing, idioms: calls, comprehensions, interpolations
2013-12-09 22:28:34 +00:00
Jeremy Ashkenas
2aedbc2e42
Back to naked constructors.
2010-11-13 15:22:18 -05:00
Jeremy Ashkenas
13f6b037e2
Working towards new versions of the examples.
2010-10-24 21:11:15 -04:00
Jeremy Ashkenas
b18d7fb550
removing the last traces of half-assignments. Issue #541 .
2010-07-29 21:23:49 -04:00
Jeremy Ashkenas
da6ea27454
most of the examples converted to symbology.
2010-07-29 00:03:42 -04:00
Jeremy Ashkenas
7d79d73b58
allowing paren-less instance creation, a la 'new Class'
2010-06-29 21:03:50 -04:00
Jeremy Ashkenas
0222d90fa3
adding a 'loop' keyword to CoffeeScript. Takes an expression or a block. Runs it until you break or return out.
2010-06-12 12:15:53 -04:00
Jeremy Ashkenas
b5c9d779bd
updating the Lexer to use classes and some of the older documentation
2010-02-27 19:40:53 -05:00
Jeremy Ashkenas
a9f016e292
trying out new arrows for function literals -> is a function, => is a bound function
2010-01-26 10:52:05 -05:00
Jeremy Ashkenas
29e4043f26
tests passing with smarter block syntax with optional parens
2010-01-26 02:15:08 -05:00
Jeremy Ashkenas
460b3f6d8e
first draft of mandatory parentheses around function definition param lists -- all tests pass
2010-01-26 00:40:58 -05:00
Jeremy Ashkenas
63b44a2b03
odd and even were backwards
2010-01-25 22:44:36 -05:00
Jeremy Ashkenas
ad18378f7e
adding '::' as shorthand for '.prototype.'
2010-01-10 16:16:59 -05:00
Jeremy Ashkenas
bd2597c6b8
change lexical scoping example to use var names that haven't been already defined
2010-01-03 18:27:26 -05:00
Jeremy Ashkenas
34add7d7bf
adding consistent highlighting to variable assignment, whether functions or values
2010-01-01 17:11:48 -05:00
Jeremy Ashkenas
cd68f02981
big milestone. examples/code.coffee now compiles correctly under the new whitespace regime
2009-12-30 18:59:33 -05:00
Jeremy Ashkenas
5659d1bd49
adding ')' as a SINGLE_CLOSER, although it's probably unsafe
2009-12-30 18:09:43 -05:00
Jeremy Ashkenas
1ba7c77136
reorganizing test fixtures and adding range literals for array slices
2009-12-25 16:20:28 -08:00
Jeremy Ashkenas
d46bf8ee71
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
2009-12-25 14:18:05 -08:00