From a253a5d32011fc62e50b355a3721af6965f73dec Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 28 Aug 2015 16:41:14 +0200 Subject: [PATCH] do not halt on single-line comments --- lib/V8/V8LineEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/V8/V8LineEditor.cpp b/lib/V8/V8LineEditor.cpp index e33dcc8c6a..5fad9e5f23 100644 --- a/lib/V8/V8LineEditor.cpp +++ b/lib/V8/V8LineEditor.cpp @@ -166,7 +166,7 @@ bool V8Completer::isComplete (std::string const& source, size_t lineno) { else if (state == SINGLE_COMMENT) { ++ptr; - if (ptr == end) { + if (ptr == end || *ptr == '\n') { state = NORMAL; --openComments; }