aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli/run_command.zig18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig
index 24304f169..0c9145db1 100644
--- a/src/cli/run_command.zig
+++ b/src/cli/run_command.zig
@@ -192,6 +192,24 @@ pub const RunCommand = struct {
delimiter = 0;
},
+ // TODO: handle escape sequences properly
+ // https://github.com/oven-sh/bun/issues/53
+ '\\' => {
+ delimiter = 0;
+
+ if (entry_i + 1 < script.len) {
+ switch (script[entry_i + 1]) {
+ '"', '\'' => {
+ entry_i += 1;
+ continue;
+ },
+ '\\' => {
+ entry_i += 1;
+ },
+ else => {},
+ }
+ }
+ },
else => {
delimiter = 0;
},