first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler.

This commit is contained in:
Jeremy Ashkenas
2010-08-07 08:02:16 -04:00
parent b1f7d5e33b
commit 9df3e6a538
28 changed files with 284 additions and 300 deletions

View File

@@ -34,7 +34,7 @@ exports.compile = compile = (code, options) ->
try
(parser.parse lexer.tokenize code).compile options
catch err
err.message = "In #options.fileName, #err.message" if options.fileName
err.message = "In #{options.fileName}, #{err.message}" if options.fileName
throw err
# Tokenize a string of CoffeeScript code, and return the array of tokens.