From 12944ea4d52a330b8b015af296dbbdee3fb4abbd Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 24 Mar 2017 15:45:37 +0100 Subject: Fixed bad \n parsing --- src/llex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/llex.js b/src/llex.js index bf7463c..96e9e00 100644 --- a/src/llex.js +++ b/src/llex.js @@ -452,7 +452,7 @@ const read_string = function(ls, del, seminfo) { case 'x': c = readhexaesc(ls); will = 'read_save'; break; case 'u': utf8esc(ls); will = 'read_save'; break; case '\n': case '\r': - inclinenumber(ls); c = '\n'; will = 'read_save'; break; + inclinenumber(ls); c = '\n'; will = 'only_save'; break; case '\\': case '\"': case '\'': c = ls.current; will = 'read_save'; break; case -1: will = 'read_save'; break; /* will raise an error next loop */ -- cgit v1.2.3-70-g09d2