support bracketed paste
Freed-Wu opened this issue · comments
wzy commented
See https://en.wikipedia.org/wiki/Bracketed-paste.
Now cling doesn't support it.
[cling]$ 200~#include <stdarg.h>201~
input_line_3:2:5: error: expected ';' after expression
200~#include <stdarg.h>201~
^
;
input_line_3:2:6: error: expected expression
200~#include <stdarg.h>201~
^
Léonard Gomez commented
Is there a way to declare a multiline statement?
ferdymercury commented
Is there a way to declare a multiline statement?
Did you try like in C++, using a \
+ enter ?
Léonard Gomez commented
I haven't. I've only used cling a couple times to do bit manipulation stuff since then. I wanted to use it as a dev repl when I first found out about it but I couldn't get it working well enough.