1
0
Fork 0

do not halt on single-line comments

This commit is contained in:
Jan Steemann 2015-08-28 16:41:14 +02:00
parent dfa749ecbc
commit a253a5d320
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}