diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-16 09:45:50 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-16 15:10:30 +0100 |
commit | 4161f6756dadef6cd5a5c2e1e75804122e892949 (patch) | |
tree | f229a3b3fee394fe9cc2c8a977196d62c09132e7 /src/llex.js | |
parent | 8388f1d2eb85bfc5fdbe1cfeb62e85a7d88403b5 (diff) | |
download | fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.tar.gz fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.tar.bz2 fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.zip |
string.format
Diffstat (limited to 'src/llex.js')
-rw-r--r-- | src/llex.js | 8 |
1 files changed, 5 insertions, 3 deletions
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); |