diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 06948bce4..c9fa1b0dc 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -352,6 +352,7 @@ CheckedError Parser::Next() { cursor_++; // TODO: make nested. while (*cursor_ != '*' || cursor_[1] != '/') { + if (*cursor_ == '\n') line_++; if (!*cursor_) return Error("end of file in comment"); cursor_++; }