mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 21:37:36 +00:00
Fixed line numbers being off in multi-line comments.
Change-Id: I4c27892c249527980d8f52a2cca801dace70289f
This commit is contained in:
@@ -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_++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user