From 4161f6756dadef6cd5a5c2e1e75804122e892949 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 16 Mar 2017 09:45:50 +0100 Subject: string.format --- src/llex.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/llex.js') diff --git a/src/llex.js b/src/llex.js index e747fdd..4f5b97e 100644 --- a/src/llex.js +++ b/src/llex.js @@ -467,11 +467,13 @@ const read_string = function(ls, del, seminfo) { if (will === 'read_save') next(ls); - else if (will === 'only_save') { + + if (will === 'read_save' || will === 'only_save') { ls.buff.n -= 1; /* remove '\\' */ save(ls, c); - } else if (will === 'no_save') - break; + } + + break; } default: save_and_next(ls); -- cgit v1.2.3-70-g09d2