Skip to content

Commit

Permalink
support multiline coffeescript evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
wuub committed Sep 17, 2013
1 parent 1b6d071 commit 3f82654
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions text_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ def wrap(func):
return wrap


@sender("coffee")
def coffee(repl, text, view=None):
"""
use CoffeeScript multiline hack
http://coffeescript.org/documentation/docs/repl.html
"""
default_sender(repl, text.replace("\n", u'\uFF00') + "\n", view)

@sender("python")
def python_sender(repl, text, view=None):
text_wo_encoding = re.sub(
Expand Down

0 comments on commit 3f82654

Please sign in to comment.