diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-22 01:09:07 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-22 01:09:07 -0800 |
commit | 90495f3ac544ba89a3f7063de6e1fb4cd74872a7 (patch) | |
tree | 1e403005b5a46e7e271339ddb4e856cec4a02b91 /tokenizer.cpp | |
parent | 6fc9e6f21ed8e6ebc2c6254426d1dc33f6bce636 (diff) |
Implement new newline-escaping behavior. Backslashes at the end of lines now essentially delete the newline, within normal text or double quotes. Backslashes are retained within single quotes.
Fixes https://github.com/fish-shell/fish-shell/issues/347
Fixes https://github.com/fish-shell/fish-shell/issues/52
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r-- | tokenizer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp index 84702b55..e2e515bf 100644 --- a/tokenizer.cpp +++ b/tokenizer.cpp @@ -255,14 +255,6 @@ static void read_string(tokenizer_t *tok) tok->buff--; do_loop = 0; } - - - } - else if (*tok->buff == L'\n' && mode == mode_regular_text) - { - tok->buff--; - do_loop = 0; - break; } tok->buff++; |