detailed scan_tokens so that the calling function can indicate the number of spaces to move forward (or backward) in the token stream

This commit is contained in:
Jeremy Ashkenas
2009-12-31 13:43:24 -05:00
parent 2231d67cef
commit edf1fc769f
2 changed files with 48 additions and 37 deletions

View File

@@ -51,7 +51,7 @@ module CoffeeScript
end
puts "original stream: #{@tokens.inspect}" if ENV['VERBOSE']
close_indentation
Rewriter.new(self).rewrite(@tokens)
Rewriter.new.rewrite(@tokens)
end
# At every position, run this list of match attempts, short-circuiting if