mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
scrubbing all carriage returns from CoffeeScript source before compiling for the benefit of Windows users.
This commit is contained in:
@@ -35,8 +35,9 @@ exports.Lexer: class Lexer
|
||||
# Before returning the token stream, run it through the [Rewriter](rewriter.html)
|
||||
# unless explicitly asked not to.
|
||||
tokenize: (code, options) ->
|
||||
code : code.replace(/\r/g, '')
|
||||
o : options or {}
|
||||
@code : code or '' # The remainder of the source code.
|
||||
@code : code # The remainder of the source code.
|
||||
@i : 0 # Current character position we're parsing.
|
||||
@line : o.line or 0 # The current line.
|
||||
@indent : 0 # The current indentation level.
|
||||
|
||||
Reference in New Issue
Block a user