mirror of https://gitee.com/bigwinds/arangodb
do not halt on single-line comments
This commit is contained in:
parent
dfa749ecbc
commit
a253a5d320
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue