Demian Ferreiro
d57b1aab10
Add power operator to the list of tokens that force a line continuation if they appear at the end of a line
2013-03-25 20:41:14 -03:00
Demian Ferreiro
22e8856b4d
Add floor division // and modulo %% operators, and compound forms of the new operators
...
Also kill the empty regex :(
2013-03-25 03:19:05 -03:00
Demian Ferreiro
08b59aef8a
Make power operator have higher precedence than unary operators: +, -, ~, !
2013-03-25 00:05:04 -03:00
Demian Ferreiro
fbc019171c
Make power operator compilation use proper AST nodes
2013-03-25 00:02:21 -03:00
Demian Ferreiro
e237abff84
Merge branch 'power-operator' of git://github.com/charliesome/coffee-script into more-math-operators
...
Conflicts:
src/nodes.coffee
test/operators.coffee
2013-03-24 22:47:46 -03:00
Michael Ficarra
e26f982c24
Merge pull request #2869 from marchaefner/master
...
Fix Windows path separator issue in `baseFileName`.
2013-03-20 17:25:54 -07:00
Marc Häfner
1b2fe69a18
Fix Windows path separator issue in baseFileName.
...
Windows accepts forward and backward slashes as path separator.
2013-03-20 22:38:29 +01:00
Jeremy Ashkenas
c159a64b58
Merge pull request #2865 from hden/inline
...
quick-fix
2013-03-20 00:46:32 -07:00
Hao-kang Den
e091c9d6b4
quick-fix with a different approach
2013-03-20 15:23:33 +08:00
Jeremy Ashkenas
57d3cfd67f
Merge pull request #2851 from toots/master
...
More explicit window context.
2013-03-18 18:52:31 -07:00
Romain Beauxis
6dd61626d2
Rebuild.
2013-03-18 14:16:05 -05:00
Romain Beauxis
1e99f887e7
More explicit window context in src/browser.coffee.
2013-03-18 11:16:26 -05:00
Jeremy Ashkenas
78d10f30a0
removing sourceColumn reset
2013-03-18 21:50:40 +08:00
Jeremy Ashkenas
7f0610d0bd
better docs for source maps
2013-03-18 19:46:43 +08:00
Jeremy Ashkenas
4bef435e0e
better docs for source maps
2013-03-18 19:46:30 +08:00
Jeremy Ashkenas
194baa0bd7
better docs for source maps
2013-03-18 19:46:19 +08:00
Jeremy Ashkenas
c8b8beb500
slimming SourceMap slightly further
2013-03-18 19:36:34 +08:00
Jeremy Ashkenas
6786bab2ba
Big refactor of SourceMap class. Literate CoffeeScript. Purdy.
2013-03-18 19:23:05 +08:00
Jeremy Ashkenas
566a7dabb2
Fixing erroneous whitespace fix in generated JS
2013-03-18 17:47:55 +08:00
Jeremy Ashkenas
a3e8de338a
CoffeeScript 1.6.2
2013-03-18 13:06:33 +08:00
Jeremy Ashkenas
4f815ea978
Fixes #2737 , fix fork() for both .js and .coffee, revised.
2013-03-18 11:46:54 +08:00
Michael Ficarra
417008a030
be a little more descriptive, as per @epidemian's suggestion
2013-03-17 21:53:46 -05:00
Michael Ficarra
84c44c0099
small stylistic change and optimisation to code from #2847
2013-03-17 21:50:20 -05:00
Jeremy Ashkenas
2d6a856d61
Merge pull request #2847 from hden/browser-source-map
...
Browser source map
2013-03-17 19:39:36 -07:00
Hao-kang Den
011d7dc245
better naming by @michaelficarra
2013-03-18 10:23:33 +08:00
Hao-kang Den
b2aa1798b1
safer browser check
2013-03-18 09:31:12 +08:00
Hao-kang Den
5fb047930e
fixed lineno
2013-03-18 09:31:12 +08:00
Hao-kang Den
c24e957f17
use btoa as base64 encoder, inspired by @ashtuchkin
2013-03-18 09:31:12 +08:00
Jeremy Ashkenas
fd0b1ffc4d
Fixes #2478 -- mention js2coffee in docs
2013-03-17 19:34:00 +08:00
Jeremy Ashkenas
0bfe6394a4
whitespace
2013-03-17 19:31:06 +08:00
Jeremy Ashkenas
9d025df9e3
Merge pull request #2827 from hden/lineno
...
Lineno
2013-03-17 04:29:44 -07:00
Jeremy Ashkenas
2f5b11b295
Fixes #2555
2013-03-17 19:27:16 +08:00
Jeremy Ashkenas
c44826acc7
Merge pull request #2838 from marchaefner/master
...
Improve literal mode.
2013-03-17 03:49:06 -07:00
Jeremy Ashkenas
4386f2abc7
Merge pull request #2840 from MattKunze/windows_paths
...
fix path handling on Windows
2013-03-17 03:09:28 -07:00
Matt Kunze
f217a10721
fix path handling on Windows
2013-03-15 16:13:04 -06:00
Marc Häfner
b8d695a4e1
Compiled JavaScript files for improved literal mode.
2013-03-15 03:26:12 +01:00
Marc Häfner
44c2b4aa7f
Test case for literal mode: Code blocks must be preceded by blank line.
2013-03-15 03:23:09 +01:00
Marc Häfner
52ca531b7c
Improve literate mode.
...
* Expect a blank line as delimiter between text and code (#2821 ).
* Don't change indentation of code. It is not necessary and leads to
erroneous locationData. (#2835 )
* Don't modify blank lines and reverse the change in the lexer.
* Don't ignore indentation with mixed whitespace.
2013-03-15 00:17:10 +01:00
Hao-kang Den
d4254a40a9
Apply modifications by @jwalton
2013-03-14 08:36:07 +08:00
Hao-kang Den
052e3cc8eb
found a linear shift of lineno, dirty patch for now
...
It seems that js -> coffee line mapping has a linear shifting.
Dirty patch by applying linear correction.
Dumb, but maybe a hint.
2013-03-14 08:36:07 +08:00
Jeremy Ashkenas
56413ba3b4
Merge pull request #2817 from epidemian/keep-repl-running
...
Keep REPL running on runtime errors
2013-03-13 01:56:33 -07:00
Jeremy Ashkenas
71bb6108fb
Merge pull request #2819 from hden/fix-path
...
Quick fix for node v0.10 path
2013-03-13 01:03:57 -07:00
Hao-kang Den
7d08dbb86c
build
2013-03-13 16:00:57 +08:00
Hao-kang Den
a8b65565dd
roll back to options.filename
2013-03-13 15:58:39 +08:00
Jeremy Ashkenas
54258e441d
Merge pull request #2826 from epidemian/bump-engines-node
...
Bump engines.node version on package.json to 0.8
2013-03-13 00:40:56 -07:00
Michael Ficarra
4ac223b684
minor cleanup of parent commit
2013-03-12 21:11:48 -05:00
Michael Ficarra
707655daef
Merge pull request #2824 from iamwilhelm/master
...
added warning that repl needs node.js >= 0.8
2013-03-12 18:46:19 -07:00
Wil Chung
70e83030a7
added warning that we need node 0.8+ to run repl
...
remove unnecessary parens and else statement in repl
we do this by convention of the main coffee source
fix: exit should be process.exit
compiled and build full
2013-03-12 18:28:48 -07:00
Demian Ferreiro
9787ce543d
Bump engines.node version on package.json to 0.8
2013-03-12 21:46:48 -03:00
Hao-kang Den
22595424a8
manually add the newline at EOF
2013-03-12 21:28:48 +08:00